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 /include | |
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 'include')
-rw-r--r-- | include/os/linux/spl/sys/Makefile.am | 1 | ||||
-rw-r--r-- | include/os/linux/spl/sys/trace.h (renamed from include/sys/trace.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/Makefile.am | 15 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_acl.h (renamed from include/sys/trace_acl.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_arc.h (renamed from include/sys/trace_arc.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_common.h (renamed from include/sys/trace_common.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_dbgmsg.h (renamed from include/sys/trace_dbgmsg.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_dbuf.h (renamed from include/sys/trace_dbuf.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_defs.h | 52 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_dmu.h (renamed from include/sys/trace_dmu.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_dnode.h (renamed from include/sys/trace_dnode.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_multilist.h (renamed from include/sys/trace_multilist.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_rrwlock.h (renamed from include/sys/trace_rrwlock.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_txg.h (renamed from include/sys/trace_txg.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_vdev.h (renamed from include/sys/trace_vdev.h) | 6 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_zil.h (renamed from include/sys/trace_zil.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_zio.h (renamed from include/sys/trace_zio.h) | 0 | ||||
-rw-r--r-- | include/os/linux/zfs/sys/trace_zrlock.h (renamed from include/sys/trace_zrlock.h) | 0 | ||||
-rw-r--r-- | include/sys/Makefile.am | 15 |
19 files changed, 71 insertions, 18 deletions
diff --git a/include/os/linux/spl/sys/Makefile.am b/include/os/linux/spl/sys/Makefile.am index de2f74d8c..934289321 100644 --- a/include/os/linux/spl/sys/Makefile.am +++ b/include/os/linux/spl/sys/Makefile.am @@ -43,6 +43,7 @@ KERNEL_H = \ $(top_srcdir)/include/os/linux/spl/sys/thread.h \ $(top_srcdir)/include/os/linux/spl/sys/time.h \ $(top_srcdir)/include/os/linux/spl/sys/timer.h \ + $(top_srcdir)/include/os/linux/spl/sys/trace.h \ $(top_srcdir)/include/os/linux/spl/sys/tsd.h \ $(top_srcdir)/include/os/linux/spl/sys/types32.h \ $(top_srcdir)/include/os/linux/spl/sys/types.h \ diff --git a/include/sys/trace.h b/include/os/linux/spl/sys/trace.h index e2cd634b4..e2cd634b4 100644 --- a/include/sys/trace.h +++ b/include/os/linux/spl/sys/trace.h diff --git a/include/os/linux/zfs/sys/Makefile.am b/include/os/linux/zfs/sys/Makefile.am index 5aa87da37..c4e2df0d7 100644 --- a/include/os/linux/zfs/sys/Makefile.am +++ b/include/os/linux/zfs/sys/Makefile.am @@ -1,5 +1,20 @@ KERNEL_H = \ $(top_srcdir)/include/os/linux/zfs/sys/policy.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_acl.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_arc.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_common.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_defs.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_dbgmsg.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_dbuf.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_dmu.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_dnode.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_multilist.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_rrwlock.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_txg.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_vdev.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_zil.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_zio.h \ + $(top_srcdir)/include/os/linux/zfs/sys/trace_zrlock.h \ $(top_srcdir)/include/os/linux/zfs/sys/zfs_ctldir.h \ $(top_srcdir)/include/os/linux/zfs/sys/zfs_dir.h \ $(top_srcdir)/include/os/linux/zfs/sys/zfs_vfsops.h \ diff --git a/include/sys/trace_acl.h b/include/os/linux/zfs/sys/trace_acl.h index 083560952..083560952 100644 --- a/include/sys/trace_acl.h +++ b/include/os/linux/zfs/sys/trace_acl.h diff --git a/include/sys/trace_arc.h b/include/os/linux/zfs/sys/trace_arc.h index 5ce5b38a3..5ce5b38a3 100644 --- a/include/sys/trace_arc.h +++ b/include/os/linux/zfs/sys/trace_arc.h diff --git a/include/sys/trace_common.h b/include/os/linux/zfs/sys/trace_common.h index 6922d1a18..6922d1a18 100644 --- a/include/sys/trace_common.h +++ b/include/os/linux/zfs/sys/trace_common.h diff --git a/include/sys/trace_dbgmsg.h b/include/os/linux/zfs/sys/trace_dbgmsg.h index b2ef529ed..b2ef529ed 100644 --- a/include/sys/trace_dbgmsg.h +++ b/include/os/linux/zfs/sys/trace_dbgmsg.h diff --git a/include/sys/trace_dbuf.h b/include/os/linux/zfs/sys/trace_dbuf.h index fb12e2854..fb12e2854 100644 --- a/include/sys/trace_dbuf.h +++ b/include/os/linux/zfs/sys/trace_dbuf.h diff --git a/include/os/linux/zfs/sys/trace_defs.h b/include/os/linux/zfs/sys/trace_defs.h new file mode 100644 index 000000000..aaff65fbc --- /dev/null +++ b/include/os/linux/zfs/sys/trace_defs.h @@ -0,0 +1,52 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +#ifndef _OS_LINUX_ZFS_TRACE_H +#define _OS_LINUX_ZFS_TRACE_H + +#include <sys/multilist.h> +#include <sys/arc_impl.h> +#include <sys/vdev_impl.h> +#include <sys/zio.h> +#include <sys/dbuf.h> +#include <sys/dmu_objset.h> +#include <sys/dsl_dataset.h> +#include <sys/dmu_tx.h> +#include <sys/dnode.h> +#include <sys/zfs_znode.h> +#include <sys/zil_impl.h> +#include <sys/zrlock.h> + +#include <sys/trace.h> +#include <sys/trace_acl.h> +#include <sys/trace_arc.h> +#include <sys/trace_dbuf.h> +#include <sys/trace_dmu.h> +#include <sys/trace_dnode.h> +#include <sys/trace_multilist.h> +#include <sys/trace_rrwlock.h> +#include <sys/trace_txg.h> +#include <sys/trace_vdev.h> +#include <sys/trace_zil.h> +#include <sys/trace_zio.h> +#include <sys/trace_zrlock.h> + +#endif diff --git a/include/sys/trace_dmu.h b/include/os/linux/zfs/sys/trace_dmu.h index 3c64a370f..3c64a370f 100644 --- a/include/sys/trace_dmu.h +++ b/include/os/linux/zfs/sys/trace_dmu.h diff --git a/include/sys/trace_dnode.h b/include/os/linux/zfs/sys/trace_dnode.h index 27ad6cba1..27ad6cba1 100644 --- a/include/sys/trace_dnode.h +++ b/include/os/linux/zfs/sys/trace_dnode.h diff --git a/include/sys/trace_multilist.h b/include/os/linux/zfs/sys/trace_multilist.h index fe68d5296..fe68d5296 100644 --- a/include/sys/trace_multilist.h +++ b/include/os/linux/zfs/sys/trace_multilist.h diff --git a/include/sys/trace_rrwlock.h b/include/os/linux/zfs/sys/trace_rrwlock.h index 4c74d6257..4c74d6257 100644 --- a/include/sys/trace_rrwlock.h +++ b/include/os/linux/zfs/sys/trace_rrwlock.h diff --git a/include/sys/trace_txg.h b/include/os/linux/zfs/sys/trace_txg.h index 23d5d358b..23d5d358b 100644 --- a/include/sys/trace_txg.h +++ b/include/os/linux/zfs/sys/trace_txg.h diff --git a/include/sys/trace_vdev.h b/include/os/linux/zfs/sys/trace_vdev.h index 13688a99e..50711446f 100644 --- a/include/sys/trace_vdev.h +++ b/include/os/linux/zfs/sys/trace_vdev.h @@ -24,8 +24,8 @@ /* * If tracepoints are available define dtrace_probe events for vdev - * related probes. Definitions in usr/include/trace.h will map - * DTRACE_PROBE* calls to tracepoints. + * related probes. Definitions in include/os/linux/spl/sys/trace.h + * will map DTRACE_PROBE* calls to tracepoints. */ #undef TRACE_SYSTEM @@ -129,7 +129,7 @@ DEFINE_REMOVE_FREE_EVENT_TXG(zfs_remove__free__inflight); * When tracepoints are not available, a DEFINE_DTRACE_PROBE* macro is * needed for each DTRACE_PROBE. These will be used to generate stub * tracing functions and prototypes for those functions. See - * include/sys/trace.h. + * include/os/linux/spl/sys/trace.h. */ DEFINE_DTRACE_PROBE3(remove__free__synced); diff --git a/include/sys/trace_zil.h b/include/os/linux/zfs/sys/trace_zil.h index 526846e66..526846e66 100644 --- a/include/sys/trace_zil.h +++ b/include/os/linux/zfs/sys/trace_zil.h diff --git a/include/sys/trace_zio.h b/include/os/linux/zfs/sys/trace_zio.h index 8655e245c..8655e245c 100644 --- a/include/sys/trace_zio.h +++ b/include/os/linux/zfs/sys/trace_zio.h diff --git a/include/sys/trace_zrlock.h b/include/os/linux/zfs/sys/trace_zrlock.h index 23f9577ba..23f9577ba 100644 --- a/include/sys/trace_zrlock.h +++ b/include/os/linux/zfs/sys/trace_zrlock.h diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am index 75033d913..897b7e1cc 100644 --- a/include/sys/Makefile.am +++ b/include/sys/Makefile.am @@ -70,21 +70,6 @@ COMMON_H = \ $(top_srcdir)/include/sys/spa_impl.h \ $(top_srcdir)/include/sys/spa_checksum.h \ $(top_srcdir)/include/sys/sysevent.h \ - $(top_srcdir)/include/sys/trace.h \ - $(top_srcdir)/include/sys/trace_acl.h \ - $(top_srcdir)/include/sys/trace_arc.h \ - $(top_srcdir)/include/sys/trace_common.h \ - $(top_srcdir)/include/sys/trace_dbgmsg.h \ - $(top_srcdir)/include/sys/trace_dbuf.h \ - $(top_srcdir)/include/sys/trace_dmu.h \ - $(top_srcdir)/include/sys/trace_dnode.h \ - $(top_srcdir)/include/sys/trace_multilist.h \ - $(top_srcdir)/include/sys/trace_rrwlock.h \ - $(top_srcdir)/include/sys/trace_txg.h \ - $(top_srcdir)/include/sys/trace_vdev.h \ - $(top_srcdir)/include/sys/trace_zil.h \ - $(top_srcdir)/include/sys/trace_zio.h \ - $(top_srcdir)/include/sys/trace_zrlock.h \ $(top_srcdir)/include/sys/txg.h \ $(top_srcdir)/include/sys/txg_impl.h \ $(top_srcdir)/include/sys/u8_textprep_data.h \ |