zfs/lib
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
..
libavl OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libefi OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libicp OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libnvpair Use correct format string when printing int8 2019-10-20 20:37:30 -07:00
libshare Modify sharenfs=on default behavior 2019-10-13 19:13:26 -07:00
libspl Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
libtpool OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libunicode OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libuutil Remove unused headers from uu_string.c 2019-10-25 13:53:50 -07:00
libzfs Fix zpool history unbounded memory usage 2019-10-28 09:49:44 -07:00
libzfs_core OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libzpool Remove unneeded header from libzpool/kernel.c 2019-10-26 10:07:59 -07:00
libzutil Add wrapper for Linux BLKFLSBUF ioctl 2019-10-28 09:53:39 -07:00
Makefile.am Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00