projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: compaction instrumentation update for 3.14.x stable kernels
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
timer.h
diff --git
a/instrumentation/events/lttng-module/timer.h
b/instrumentation/events/lttng-module/timer.h
index dd27838e96efd68a90ccf9d014ac50dd2a53d5f8..8bd67e509bd7c394ca98627935bbfeb3737e14f4 100644
(file)
--- a/
instrumentation/events/lttng-module/timer.h
+++ b/
instrumentation/events/lttng-module/timer.h
@@
-1,10
+1,10
@@
#undef TRACE_SYSTEM
#define TRACE_SYSTEM timer
#undef TRACE_SYSTEM
#define TRACE_SYSTEM timer
-#if !defined(_TRACE_TIMER_H) || defined(TRACE_HEADER_MULTI_READ)
-#define _TRACE_TIMER_H
+#if !defined(
LTTNG
_TRACE_TIMER_H) || defined(TRACE_HEADER_MULTI_READ)
+#define
LTTNG
_TRACE_TIMER_H
-#include
<linux/tracepoint.h>
+#include
"../../../probes/lttng-tracepoint-event.h"
#ifndef _TRACE_TIMER_DEF_
#define _TRACE_TIMER_DEF_
#ifndef _TRACE_TIMER_DEF_
#define _TRACE_TIMER_DEF_
@@
-15,7
+15,7
@@
struct timer_list;
#endif /* _TRACE_TIMER_DEF_ */
#endif /* _TRACE_TIMER_DEF_ */
-
DECLARE
_EVENT_CLASS(timer_class,
+
LTTNG_TRACEPOINT
_EVENT_CLASS(timer_class,
TP_PROTO(struct timer_list *timer),
TP_PROTO(struct timer_list *timer),
@@
-36,7
+36,7
@@
DECLARE_EVENT_CLASS(timer_class,
* timer_init - called when the timer is initialized
* @timer: pointer to struct timer_list
*/
* timer_init - called when the timer is initialized
* @timer: pointer to struct timer_list
*/
-
DEFINE_EVENT
(timer_class, timer_init,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(timer_class, timer_init,
TP_PROTO(struct timer_list *timer),
TP_PROTO(struct timer_list *timer),
@@
-48,7
+48,7
@@
DEFINE_EVENT(timer_class, timer_init,
* @timer: pointer to struct timer_list
* @expires: the timers expiry time
*/
* @timer: pointer to struct timer_list
* @expires: the timers expiry time
*/
-
TRACE
_EVENT(timer_start,
+
LTTNG_TRACEPOINT
_EVENT(timer_start,
TP_PROTO(struct timer_list *timer, unsigned long expires),
TP_PROTO(struct timer_list *timer, unsigned long expires),
@@
-79,7
+79,7
@@
TRACE_EVENT(timer_start,
*
* Allows to determine the timer latency.
*/
*
* Allows to determine the timer latency.
*/
-
TRACE
_EVENT(timer_expire_entry,
+
LTTNG_TRACEPOINT
_EVENT(timer_expire_entry,
TP_PROTO(struct timer_list *timer),
TP_PROTO(struct timer_list *timer),
@@
-110,7
+110,7
@@
TRACE_EVENT(timer_expire_entry,
* NOTE: Do NOT derefernce timer in TP_fast_assign. The pointer might
* be invalid. We solely track the pointer.
*/
* NOTE: Do NOT derefernce timer in TP_fast_assign. The pointer might
* be invalid. We solely track the pointer.
*/
-
DEFINE_EVENT
(timer_class, timer_expire_exit,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(timer_class, timer_expire_exit,
TP_PROTO(struct timer_list *timer),
TP_PROTO(struct timer_list *timer),
@@
-121,7
+121,7
@@
DEFINE_EVENT(timer_class, timer_expire_exit,
* timer_cancel - called when the timer is canceled
* @timer: pointer to struct timer_list
*/
* timer_cancel - called when the timer is canceled
* @timer: pointer to struct timer_list
*/
-
DEFINE_EVENT
(timer_class, timer_cancel,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(timer_class, timer_cancel,
TP_PROTO(struct timer_list *timer),
TP_PROTO(struct timer_list *timer),
@@
-134,7
+134,7
@@
DEFINE_EVENT(timer_class, timer_cancel,
* @clockid: the hrtimers clock
* @mode: the hrtimers mode
*/
* @clockid: the hrtimers clock
* @mode: the hrtimers mode
*/
-
TRACE
_EVENT(hrtimer_init,
+
LTTNG_TRACEPOINT
_EVENT(hrtimer_init,
TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
enum hrtimer_mode mode),
TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
enum hrtimer_mode mode),
@@
-164,7
+164,7
@@
TRACE_EVENT(hrtimer_init,
* hrtimer_start - called when the hrtimer is started
* @timer: pointer to struct hrtimer
*/
* hrtimer_start - called when the hrtimer is started
* @timer: pointer to struct hrtimer
*/
-
TRACE
_EVENT(hrtimer_start,
+
LTTNG_TRACEPOINT
_EVENT(hrtimer_start,
TP_PROTO(struct hrtimer *hrtimer),
TP_PROTO(struct hrtimer *hrtimer),
@@
-200,7
+200,7
@@
TRACE_EVENT(hrtimer_start,
*
* Allows to determine the timer latency.
*/
*
* Allows to determine the timer latency.
*/
-
TRACE
_EVENT(hrtimer_expire_entry,
+
LTTNG_TRACEPOINT
_EVENT(hrtimer_expire_entry,
TP_PROTO(struct hrtimer *hrtimer, ktime_t *now),
TP_PROTO(struct hrtimer *hrtimer, ktime_t *now),
@@
-222,7
+222,7
@@
TRACE_EVENT(hrtimer_expire_entry,
(unsigned long long)ktime_to_ns((ktime_t) { .tv64 = __entry->now }))
)
(unsigned long long)ktime_to_ns((ktime_t) { .tv64 = __entry->now }))
)
-
DECLARE
_EVENT_CLASS(hrtimer_class,
+
LTTNG_TRACEPOINT
_EVENT_CLASS(hrtimer_class,
TP_PROTO(struct hrtimer *hrtimer),
TP_PROTO(struct hrtimer *hrtimer),
@@
-246,7
+246,7
@@
DECLARE_EVENT_CLASS(hrtimer_class,
* When used in combination with the hrtimer_expire_entry tracepoint we can
* determine the runtime of the callback function.
*/
* When used in combination with the hrtimer_expire_entry tracepoint we can
* determine the runtime of the callback function.
*/
-
DEFINE_EVENT
(hrtimer_class, hrtimer_expire_exit,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(hrtimer_class, hrtimer_expire_exit,
TP_PROTO(struct hrtimer *hrtimer),
TP_PROTO(struct hrtimer *hrtimer),
@@
-257,7
+257,7
@@
DEFINE_EVENT(hrtimer_class, hrtimer_expire_exit,
* hrtimer_cancel - called when the hrtimer is canceled
* @hrtimer: pointer to struct hrtimer
*/
* hrtimer_cancel - called when the hrtimer is canceled
* @hrtimer: pointer to struct hrtimer
*/
-
DEFINE_EVENT
(hrtimer_class, hrtimer_cancel,
+
LTTNG_TRACEPOINT_EVENT_INSTANCE
(hrtimer_class, hrtimer_cancel,
TP_PROTO(struct hrtimer *hrtimer),
TP_PROTO(struct hrtimer *hrtimer),
@@
-271,7
+271,7
@@
DEFINE_EVENT(hrtimer_class, hrtimer_cancel,
* zero, otherwise it is started
* @expires: the itimers expiry time
*/
* zero, otherwise it is started
* @expires: the itimers expiry time
*/
-
TRACE
_EVENT(itimer_state,
+
LTTNG_TRACEPOINT
_EVENT(itimer_state,
TP_PROTO(int which, const struct itimerval *const value,
cputime_t expires),
TP_PROTO(int which, const struct itimerval *const value,
cputime_t expires),
@@
-308,7
+308,7
@@
TRACE_EVENT(itimer_state,
* @pid: pid of the process which owns the timer
* @now: current time, used to calculate the latency of itimer
*/
* @pid: pid of the process which owns the timer
* @now: current time, used to calculate the latency of itimer
*/
-
TRACE
_EVENT(itimer_expire,
+
LTTNG_TRACEPOINT
_EVENT(itimer_expire,
TP_PROTO(int which, struct pid *pid, cputime_t now),
TP_PROTO(int which, struct pid *pid, cputime_t now),
@@
-330,7
+330,7
@@
TRACE_EVENT(itimer_expire,
(int) __entry->pid, (unsigned long long)__entry->now)
)
(int) __entry->pid, (unsigned long long)__entry->now)
)
-#endif /* _TRACE_TIMER_H */
+#endif /*
LTTNG
_TRACE_TIMER_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.026115 seconds
and
4
git commands to generate.