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 fa89f663abe4de13663f05feb6dc753f609a5e6d..8bd67e509bd7c394ca98627935bbfeb3737e14f4 100644
(file)
--- a/
instrumentation/events/lttng-module/timer.h
+++ b/
instrumentation/events/lttng-module/timer.h
@@
-1,18
+1,21
@@
#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_
#include <linux/hrtimer.h>
#include <linux/timer.h>
#ifndef _TRACE_TIMER_DEF_
#define _TRACE_TIMER_DEF_
#include <linux/hrtimer.h>
#include <linux/timer.h>
+
+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),
@@
-33,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),
@@
-45,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),
@@
-76,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),
@@
-107,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),
@@
-118,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),
@@
-131,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),
@@
-161,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),
@@
-197,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),
@@
-219,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),
@@
-243,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),
@@
-254,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),
@@
-268,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),
@@
-305,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),
@@
-327,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.027145 seconds
and
4
git commands to generate.