sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Rename remaining linux32 symbols such as linux_sysent[] andlinux_syscallnames[] from linux_* to linux32_* to avoid conflicts withlinux64.ko. While here, add support for linux64 binaries to systrac
Rename remaining linux32 symbols such as linux_sysent[] andlinux_syscallnames[] from linux_* to linux32_* to avoid conflicts withlinux64.ko. While here, add support for linux64 binaries to systrace.- Update NOPROTO entries in amd64/linux/syscalls.master to match the main table to fix systrace build.- Add a special case for union l_semun arguments to the systrace generation.- The systrace_linux32 module now only builds the systrace_linux32.ko. module on amd64.- Add a new systrace_linux module that builds on both i386 and amd64. For i386 it builds the existing systrace_linux.ko. For amd64 it builds a systrace_linux.ko for 64-bit binaries.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D3954
show more ...
Use SYSDIR to reference to the top of the sys hierarchy. Define SYSDIRrelative to .CURDIR if not already defined. This makes the makefilesmore readable but also more re-usable and adaptable.Obtai
Use SYSDIR to reference to the top of the sys hierarchy. Define SYSDIRrelative to .CURDIR if not already defined. This makes the makefilesmore readable but also more re-usable and adaptable.Obtained from: Juniper Networks, Inc.
opensolaris code: translate INVARIANTS to DEBUG and ZFS_DEBUGDo this by forcing inclusion ofsys/cddl/compat/opensolaris/sys/debug_compat.hvia -include option into all source files from OpenSolari
opensolaris code: translate INVARIANTS to DEBUG and ZFS_DEBUGDo this by forcing inclusion ofsys/cddl/compat/opensolaris/sys/debug_compat.hvia -include option into all source files from OpenSolaris.Note that this -include option must always be after -include opt_global.h.Additionally, remove forced definition of DEBUG for some modules and fixtheir build without DEBUG.Also, meaning of DEBUG was overloaded to enable WITNESS support for someOpenSolaris (primarily ZFS) locks. Now this overloading is removed andthat use of DEBUG is replaced with a new option OPENSOLARIS_WITNESS.MFC after: 17 days
Stripped '32' suffix from linux systrace module name on i386.Approved by: avg
add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAdd systrace_linux32 and systrace_freebsd32 modules which providesupport for tracing compat system calls in addition to nativ
add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAdd systrace_linux32 and systrace_freebsd32 modules which providesupport for tracing compat system calls in addition to native systemcall tracing provided by systrace module.Provided that all the systrace modules are loaded now you can selectwhat syscalls to trace in the following manner:syscall::xxx:yyy - work on all system calls that match the specificationsyscall:freebsd:xxx:yyy - only native system callssyscall:linux32:xxx:yyy - linux32 compat system callssyscall:freebsd32:xxx:yyy - freebsd32 compat system calls on amd64PR: kern/152822Submitted by: Artem Belevich <[email protected]>Reviewed by: jhb (earlier version)MFC after: 3 weeks