projects
/
deliverable
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename LTTng instrumentation macros
[deliverable/lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
jbd2.h
diff --git
a/instrumentation/events/lttng-module/jbd2.h
b/instrumentation/events/lttng-module/jbd2.h
index 872cf9e32707c56ffba60fc01c300a7bb8a7ca72..491a15a97d70683635c8cc1e2f4b4b4008ea687a 100644
(file)
--- a/
instrumentation/events/lttng-module/jbd2.h
+++ b/
instrumentation/events/lttng-module/jbd2.h
@@
-1,11
+1,11
@@
#undef TRACE_SYSTEM
#define TRACE_SYSTEM jbd2
#undef TRACE_SYSTEM
#define TRACE_SYSTEM jbd2
-#if !defined(_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ)
-#define _TRACE_JBD2_H
+#if !defined(
LTTNG
_TRACE_JBD2_H) || defined(TRACE_HEADER_MULTI_READ)
+#define
LTTNG
_TRACE_JBD2_H
+#include "../../../probes/lttng-tracepoint-event.h"
#include <linux/jbd2.h>
#include <linux/jbd2.h>
-#include <linux/tracepoint.h>
#include <linux/version.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
#include <linux/version.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
@@
-16,7
+16,7
@@
struct transaction_run_stats_s;
#endif
#endif
#endif
#endif
-
TRACE
_EVENT(jbd2_checkpoint,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_checkpoint,
TP_PROTO(journal_t *journal, int result),
TP_PROTO(journal_t *journal, int result),
@@
-36,7
+36,7
@@
TRACE_EVENT(jbd2_checkpoint,
MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result)
)
MAJOR(__entry->dev), MINOR(__entry->dev), __entry->result)
)
-
DECLARE
_EVENT_CLASS(jbd2_commit,
+
LTTNG_TRACEPOINT
_EVENT_CLASS(jbd2_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@
-59,28
+59,28
@@
DECLARE_EVENT_CLASS(jbd2_commit,
__entry->transaction, __entry->sync_commit)
)
__entry->transaction, __entry->sync_commit)
)
-
DEFINE_EVENT
(jbd2_commit, jbd2_start_commit,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(jbd2_commit, jbd2_start_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
-
DEFINE_EVENT
(jbd2_commit, jbd2_commit_locking,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(jbd2_commit, jbd2_commit_locking,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
-
DEFINE_EVENT
(jbd2_commit, jbd2_commit_flushing,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(jbd2_commit, jbd2_commit_flushing,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction)
)
-
DEFINE_EVENT
(jbd2_commit, jbd2_commit_logging,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(jbd2_commit, jbd2_commit_logging,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@
-88,7
+88,7
@@
DEFINE_EVENT(jbd2_commit, jbd2_commit_logging,
)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-
DEFINE_EVENT
(jbd2_commit, jbd2_drop_transaction,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(jbd2_commit, jbd2_drop_transaction,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
@@
-96,7
+96,7
@@
DEFINE_EVENT(jbd2_commit, jbd2_drop_transaction,
)
#endif
)
#endif
-
TRACE
_EVENT(jbd2_end_commit,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_end_commit,
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction),
TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
TP_ARGS(journal, commit_transaction),
@@
-120,7
+120,7
@@
TRACE_EVENT(jbd2_end_commit,
__entry->transaction, __entry->sync_commit, __entry->head)
)
__entry->transaction, __entry->sync_commit, __entry->head)
)
-
TRACE
_EVENT(jbd2_submit_inode_data,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_submit_inode_data,
TP_PROTO(struct inode *inode),
TP_ARGS(inode),
TP_PROTO(struct inode *inode),
TP_ARGS(inode),
@@
-141,7
+141,7
@@
TRACE_EVENT(jbd2_submit_inode_data,
)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
-
TRACE
_EVENT(jbd2_run_stats,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_run_stats,
TP_PROTO(dev_t dev, unsigned long tid,
struct transaction_run_stats_s *stats),
TP_PROTO(dev_t dev, unsigned long tid,
struct transaction_run_stats_s *stats),
@@
-185,7
+185,7
@@
TRACE_EVENT(jbd2_run_stats,
__entry->blocks_logged)
)
__entry->blocks_logged)
)
-
TRACE
_EVENT(jbd2_checkpoint_stats,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_checkpoint_stats,
TP_PROTO(dev_t dev, unsigned long tid,
struct transaction_chp_stats_s *stats),
TP_PROTO(dev_t dev, unsigned long tid,
struct transaction_chp_stats_s *stats),
@@
-219,9
+219,9
@@
TRACE_EVENT(jbd2_checkpoint_stats,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-
TRACE
_EVENT(jbd2_update_log_tail,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_update_log_tail,
#else
#else
-
TRACE
_EVENT(jbd2_cleanup_journal_tail,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_cleanup_journal_tail,
#endif
TP_PROTO(journal_t *journal, tid_t first_tid,
#endif
TP_PROTO(journal_t *journal, tid_t first_tid,
@@
-253,7
+253,7
@@
TRACE_EVENT(jbd2_cleanup_journal_tail,
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-
TRACE
_EVENT(jbd2_write_superblock,
+
LTTNG_TRACEPOINT
_EVENT(jbd2_write_superblock,
TP_PROTO(journal_t *journal, int write_op),
TP_PROTO(journal_t *journal, int write_op),
@@
-274,7
+274,7
@@
TRACE_EVENT(jbd2_write_superblock,
)
#endif
)
#endif
-#endif /* _TRACE_JBD2_H */
+#endif /*
LTTNG
_TRACE_JBD2_H */
/* This part must be outside protection */
#include "../../../probes/define_trace.h"
/* This part must be outside protection */
#include "../../../probes/define_trace.h"
This page took
0.026994 seconds
and
5
git commands to generate.