mirror_zfs/module/os/linux/zfs
Prakash Surya e5d1c27e30 Enable use of DTRACE_PROBE* macros in "spl" module
This change modifies some of the infrastructure for enabling the use of
the DTRACE_PROBE* macros, such that we can use tehm in the "spl" module.

Currently, when the DTRACE_PROBE* macros are used, they get expanded to
create new functions, and these dynamically generated functions become
part of the "zfs" module.

Since the "spl" module does not depend on the "zfs" module, the use of
DTRACE_PROBE* in the "spl" module would result in undefined symbols
being used in the "spl" module. Specifically, DTRACE_PROBE* would turn
into a function call, and the function being called would be a symbol
only contained in the "zfs" module; which results in a linker and/or
runtime error.

Thus, this change adds the necessary logic to the "spl" module, to
mirror the tracing functionality available to the "zfs" module. After
this change, we'll have a "trace_zfs.h" header file which defines the
probes available only to the "zfs" module, and a "trace_spl.h" header
file which defines the probes available only to the "spl" module.

Reviewed by: Brad Lewis <brad.lewis@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Prakash Surya <prakash.surya@delphix.com>
Closes #9525
2019-11-01 13:13:43 -07:00
..
abd.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
arc_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
Makefile.in Factor Linux specific code out of spa_misc.c 2019-10-31 09:52:22 -07:00
mmp_os.c Move linux specific mmp module_param_call handler to platform code 2019-10-16 18:37:31 -07:00
policy.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
qat_compress.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
qat_crypt.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
qat.c QAT related bug fixes 2019-09-12 13:33:44 -07:00
spa_misc_os.c Factor Linux specific code out of spa_misc.c 2019-10-31 09:52:22 -07:00
spa_stats.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
trace.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
vdev_disk.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
vdev_file.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_acl.c Return an error code from zfs_acl_chmod_setattr 2019-11-01 10:19:11 -07:00
zfs_ctldir.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
zfs_debug.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zfs_dir.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_ioctl_os.c Wrap Linux module macros 2019-11-01 10:41:03 -07:00
zfs_onexit_os.c Make zfsdev_getminor signature cross platform 2019-10-16 18:43:52 -07:00
zfs_sysfs.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_vfsops.c Move get_temporary_prop to platform code 2019-10-10 15:59:34 -07:00
zfs_vnops.c Prefix struct rangelock 2019-11-01 10:37:33 -07:00
zfs_znode.c Prefix struct rangelock 2019-11-01 10:37:33 -07:00
zio_crypt.c Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
zio_os.c Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
zpl_ctldir.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_export.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_file.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_inode.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_super.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_xattr.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
zvol_os.c Prefix struct rangelock 2019-11-01 10:37:33 -07:00