diff options
author | Matthew Macy <[email protected]> | 2019-09-11 14:25:53 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-09-11 14:25:53 -0700 |
commit | d66620681d85105256203b4f4407f0092e5a7fe7 (patch) | |
tree | 688d620ec8af54e0db19a1c7bc87fab80a337c69 /module | |
parent | 5815f7ac30e108fcbf4c6487328c28d818e9e014 (diff) |
OpenZFS restructuring - move linux tracing code to platform directories
Move Linux specific tracing headers and source to platform directories
and update the build system.
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed by: Brad Lewis <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9290
Diffstat (limited to 'module')
-rw-r--r-- | module/os/linux/zfs/Makefile.in | 1 | ||||
-rw-r--r-- | module/os/linux/zfs/trace.c (renamed from module/zfs/trace.c) | 4 | ||||
-rw-r--r-- | module/zfs/Makefile.in | 1 | ||||
-rw-r--r-- | module/zfs/arc.c | 2 | ||||
-rw-r--r-- | module/zfs/dbuf.c | 2 | ||||
-rw-r--r-- | module/zfs/dmu.c | 2 | ||||
-rw-r--r-- | module/zfs/dmu_tx.c | 2 | ||||
-rw-r--r-- | module/zfs/dnode.c | 2 | ||||
-rw-r--r-- | module/zfs/dsl_pool.c | 2 | ||||
-rw-r--r-- | module/zfs/multilist.c | 2 | ||||
-rw-r--r-- | module/zfs/rrwlock.c | 2 | ||||
-rw-r--r-- | module/zfs/txg.c | 2 | ||||
-rw-r--r-- | module/zfs/vdev_removal.c | 2 | ||||
-rw-r--r-- | module/zfs/zil.c | 2 | ||||
-rw-r--r-- | module/zfs/zio.c | 2 | ||||
-rw-r--r-- | module/zfs/zrlock.c | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/module/os/linux/zfs/Makefile.in b/module/os/linux/zfs/Makefile.in index 84900bd2c..2165e7f74 100644 --- a/module/os/linux/zfs/Makefile.in +++ b/module/os/linux/zfs/Makefile.in @@ -11,6 +11,7 @@ ccflags-y += -I@abs_top_srcdir@/module/os/linux/zfs $(MODULE)-objs += ../os/linux/zfs/abd.o $(MODULE)-objs += ../os/linux/zfs/policy.o +$(MODULE)-objs += ../os/linux/zfs/trace.o $(MODULE)-objs += ../os/linux/zfs/qat.o $(MODULE)-objs += ../os/linux/zfs/qat_compress.o $(MODULE)-objs += ../os/linux/zfs/qat_crypt.o diff --git a/module/zfs/trace.c b/module/os/linux/zfs/trace.c index fe503776b..7b2f981ee 100644 --- a/module/zfs/trace.c +++ b/module/os/linux/zfs/trace.c @@ -33,11 +33,10 @@ #include <sys/dsl_dataset.h> #include <sys/dmu_tx.h> #include <sys/dnode.h> -#include <sys/multilist.h> #include <sys/zfs_znode.h> #include <sys/zil_impl.h> -#include <sys/zrlock.h> +#ifdef _KERNEL #define CREATE_TRACE_POINTS #include <sys/trace.h> #include <sys/trace_acl.h> @@ -52,3 +51,4 @@ #include <sys/trace_zil.h> #include <sys/trace_zio.h> #include <sys/trace_zrlock.h> +#endif diff --git a/module/zfs/Makefile.in b/module/zfs/Makefile.in index 7c560fad7..b60b799b5 100644 --- a/module/zfs/Makefile.in +++ b/module/zfs/Makefile.in @@ -80,7 +80,6 @@ $(MODULE)-objs += spa_log_spacemap.o $(MODULE)-objs += spa_misc.o $(MODULE)-objs += space_map.o $(MODULE)-objs += space_reftree.o -$(MODULE)-objs += trace.o $(MODULE)-objs += txg.o $(MODULE)-objs += uberblock.o $(MODULE)-objs += unique.o diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 21f3dee07..709a565b1 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -302,7 +302,7 @@ #include <sys/zthr.h> #include <zfs_fletcher.h> #include <sys/arc_impl.h> -#include <sys/trace_arc.h> +#include <sys/trace_defs.h> #include <sys/aggsum.h> #include <sys/cityhash.h> diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index dd33ae97c..ca6032ed2 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -44,7 +44,7 @@ #include <sys/zfeature.h> #include <sys/blkptr.h> #include <sys/range_tree.h> -#include <sys/trace_dbuf.h> +#include <sys/trace_defs.h> #include <sys/callb.h> #include <sys/abd.h> #include <sys/vdev.h> diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index 861858e3a..895cac58e 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -49,7 +49,7 @@ #include <sys/sa.h> #include <sys/zfeature.h> #include <sys/abd.h> -#include <sys/trace_dmu.h> +#include <sys/trace_defs.h> #include <sys/zfs_rlock.h> #ifdef _KERNEL #include <sys/vmsystm.h> diff --git a/module/zfs/dmu_tx.c b/module/zfs/dmu_tx.c index fcbe30287..66dbb583a 100644 --- a/module/zfs/dmu_tx.c +++ b/module/zfs/dmu_tx.c @@ -37,7 +37,7 @@ #include <sys/sa.h> #include <sys/sa_impl.h> #include <sys/zfs_context.h> -#include <sys/trace_dmu.h> +#include <sys/trace_defs.h> typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn, uint64_t arg1, uint64_t arg2); diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index 4ee192ed5..95132344c 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -37,7 +37,7 @@ #include <sys/zio.h> #include <sys/dmu_zfetch.h> #include <sys/range_tree.h> -#include <sys/trace_dnode.h> +#include <sys/trace_defs.h> #include <sys/zfs_project.h> dnode_stats_t dnode_stats = { diff --git a/module/zfs/dsl_pool.c b/module/zfs/dsl_pool.c index 09045bb47..4fffe4cb5 100644 --- a/module/zfs/dsl_pool.c +++ b/module/zfs/dsl_pool.c @@ -48,7 +48,7 @@ #include <sys/zfeature.h> #include <sys/zil_impl.h> #include <sys/dsl_userhold.h> -#include <sys/trace_txg.h> +#include <sys/trace_defs.h> #include <sys/mmp.h> /* diff --git a/module/zfs/multilist.c b/module/zfs/multilist.c index 6f935917c..73cf8cbbc 100644 --- a/module/zfs/multilist.c +++ b/module/zfs/multilist.c @@ -18,7 +18,7 @@ #include <sys/zfs_context.h> #include <sys/multilist.h> -#include <sys/trace_multilist.h> +#include <sys/trace_defs.h> /* needed for spa_get_random() */ #include <sys/spa.h> diff --git a/module/zfs/rrwlock.c b/module/zfs/rrwlock.c index 32d45f674..c48a5d3ed 100644 --- a/module/zfs/rrwlock.c +++ b/module/zfs/rrwlock.c @@ -28,7 +28,7 @@ #include <sys/refcount.h> #include <sys/rrwlock.h> -#include <sys/trace_rrwlock.h> +#include <sys/trace_defs.h> /* * This file contains the implementation of a re-entrant read diff --git a/module/zfs/txg.c b/module/zfs/txg.c index 2a5f4f689..ae96f5ec0 100644 --- a/module/zfs/txg.c +++ b/module/zfs/txg.c @@ -33,7 +33,7 @@ #include <sys/dsl_scan.h> #include <sys/zil.h> #include <sys/callb.h> -#include <sys/trace_txg.h> +#include <sys/trace_defs.h> /* * ZFS Transaction Groups diff --git a/module/zfs/vdev_removal.c b/module/zfs/vdev_removal.c index 3ba06e4ac..c9156054c 100644 --- a/module/zfs/vdev_removal.c +++ b/module/zfs/vdev_removal.c @@ -46,7 +46,7 @@ #include <sys/abd.h> #include <sys/vdev_initialize.h> #include <sys/vdev_trim.h> -#include <sys/trace_vdev.h> +#include <sys/trace_defs.h> /* * This file contains the necessary logic to remove vdevs from a diff --git a/module/zfs/zil.c b/module/zfs/zil.c index 9df5820e5..30a73515c 100644 --- a/module/zfs/zil.c +++ b/module/zfs/zil.c @@ -41,7 +41,7 @@ #include <sys/dmu_tx.h> #include <sys/dsl_pool.h> #include <sys/metaslab.h> -#include <sys/trace_zil.h> +#include <sys/trace_defs.h> #include <sys/abd.h> /* diff --git a/module/zfs/zio.c b/module/zfs/zio.c index f966023aa..1e341e224 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -44,7 +44,7 @@ #include <sys/dsl_scan.h> #include <sys/metaslab_impl.h> #include <sys/time.h> -#include <sys/trace_zio.h> +#include <sys/trace_defs.h> #include <sys/abd.h> #include <sys/dsl_crypt.h> #include <sys/cityhash.h> diff --git a/module/zfs/zrlock.c b/module/zfs/zrlock.c index 014a5cc6c..fe9044f2c 100644 --- a/module/zfs/zrlock.c +++ b/module/zfs/zrlock.c @@ -39,7 +39,7 @@ * function calls. */ #include <sys/zrlock.h> -#include <sys/trace_zrlock.h> +#include <sys/trace_defs.h> /* * A ZRL can be locked only while there are zero references, so ZRL_LOCKED is |