X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fjbd.h;h=0f45c82fd42ca184ecb0c35fe8280774a4e85ea6;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=a4abcfc7c56a61002d8d187eee47f904822466e0;hpb=c94b360dc7071538862b58761c8850c52814dfa6;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/jbd.h b/instrumentation/events/lttng-module/jbd.h index a4abcfc7..0f45c82f 100644 --- a/instrumentation/events/lttng-module/jbd.h +++ b/instrumentation/events/lttng-module/jbd.h @@ -1,12 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM jbd #if !defined(LTTNG_TRACE_JBD_H) || defined(TRACE_HEADER_MULTI_READ) #define LTTNG_TRACE_JBD_H -#include "../../../probes/lttng-tracepoint-event.h" +#include #include -#include +#include LTTNG_TRACEPOINT_EVENT(jbd_checkpoint, @@ -28,7 +29,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(jbd_commit, TP_FIELDS( ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev) -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0)) ctf_integer(char, sync_commit, commit_transaction->t_synchronous_commit) #endif ctf_integer(int, transaction, commit_transaction->t_tid) @@ -71,7 +72,7 @@ LTTNG_TRACEPOINT_EVENT(jbd_drop_transaction, TP_FIELDS( ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev) -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0)) ctf_integer(char, sync_commit, commit_transaction->t_synchronous_commit) #endif ctf_integer(int, transaction, commit_transaction->t_tid) @@ -85,7 +86,7 @@ LTTNG_TRACEPOINT_EVENT(jbd_end_commit, TP_FIELDS( ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev) -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0)) ctf_integer(char, sync_commit, commit_transaction->t_synchronous_commit) #endif ctf_integer(int, transaction, commit_transaction->t_tid) @@ -100,7 +101,7 @@ LTTNG_TRACEPOINT_EVENT(jbd_do_submit_data, TP_FIELDS( ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev) -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0)) ctf_integer(char, sync_commit, commit_transaction->t_synchronous_commit) #endif ctf_integer(int, transaction, commit_transaction->t_tid) @@ -123,7 +124,7 @@ LTTNG_TRACEPOINT_EVENT(jbd_cleanup_journal_tail, ) ) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,5,0)) LTTNG_TRACEPOINT_EVENT_MAP(journal_write_superblock, jbd_journal_write_superblock, @@ -153,4 +154,4 @@ LTTNG_TRACEPOINT_EVENT(jbd_update_superblock_end, #endif /* LTTNG_TRACE_JBD_H */ /* This part must be outside protection */ -#include "../../../probes/define_trace.h" +#include