4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
24 #if defined(_KERNEL) && defined(HAVE_DECLARE_EVENT_CLASS)
27 #define TRACE_SYSTEM zfs
29 #undef TRACE_SYSTEM_VAR
30 #define TRACE_SYSTEM_VAR zfs_zio
32 #if !defined(_TRACE_ZIO_H) || defined(TRACE_HEADER_MULTI_READ)
35 #include <linux/tracepoint.h>
36 #include <sys/types.h>
37 #include <sys/trace_common.h> /* For ZIO macros */
40 TRACE_EVENT(zfs_zio__delay__miss,
41 TP_PROTO(zio_t *zio, hrtime_t now),
45 __field(hrtime_t, now)
51 TP_printk("now %llu " ZIO_TP_PRINTK_FMT, __entry->now,
55 TRACE_EVENT(zfs_zio__delay__hit,
56 TP_PROTO(zio_t *zio, hrtime_t now, hrtime_t diff),
57 TP_ARGS(zio, now, diff),
60 __field(hrtime_t, now)
61 __field(hrtime_t, diff)
68 TP_printk("now %llu diff %llu " ZIO_TP_PRINTK_FMT, __entry->now,
69 __entry->diff, ZIO_TP_PRINTK_ARGS)
72 TRACE_EVENT(zfs_zio__delay__skip,
75 TP_STRUCT__entry(ZIO_TP_STRUCT_ENTRY),
76 TP_fast_assign(ZIO_TP_FAST_ASSIGN),
77 TP_printk(ZIO_TP_PRINTK_FMT, ZIO_TP_PRINTK_ARGS)
81 #endif /* _TRACE_ZIO_H */
83 #undef TRACE_INCLUDE_PATH
84 #undef TRACE_INCLUDE_FILE
85 #define TRACE_INCLUDE_PATH sys
86 #define TRACE_INCLUDE_FILE trace_zio
87 #include <trace/define_trace.h>
89 #endif /* _KERNEL && HAVE_DECLARE_EVENT_CLASS */