diff options
Diffstat (limited to 'plugin_hrtimer.c')
-rw-r--r-- | plugin_hrtimer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin_hrtimer.c b/plugin_hrtimer.c index 76c9580..69529c6 100644 --- a/plugin_hrtimer.c +++ b/plugin_hrtimer.c | |||
@@ -50,6 +50,7 @@ static int timer_start_handler(struct trace_seq *s, void *data, int size, | |||
50 | struct event *event, int cpu, | 50 | struct event *event, int cpu, |
51 | unsigned long long nsecs) | 51 | unsigned long long nsecs) |
52 | { | 52 | { |
53 | struct pevent *pevent = event->pevent; | ||
53 | struct format_field *fn = pevent_find_field(event, "function"); | 54 | struct format_field *fn = pevent_find_field(event, "function"); |
54 | 55 | ||
55 | trace_seq_printf(s, "hrtimer="); | 56 | trace_seq_printf(s, "hrtimer="); |
@@ -66,7 +67,7 @@ static int timer_start_handler(struct trace_seq *s, void *data, int size, | |||
66 | if (pevent_read_number_field(fn, data, &function)) | 67 | if (pevent_read_number_field(fn, data, &function)) |
67 | trace_seq_printf(s, " function=INVALID"); | 68 | trace_seq_printf(s, " function=INVALID"); |
68 | 69 | ||
69 | func = pevent_find_function(function); | 70 | func = pevent_find_function(pevent, function); |
70 | 71 | ||
71 | trace_seq_printf(s, " function=%s", func); | 72 | trace_seq_printf(s, " function=%s", func); |
72 | } | 73 | } |
@@ -80,12 +81,12 @@ static int timer_start_handler(struct trace_seq *s, void *data, int size, | |||
80 | return 0; | 81 | return 0; |
81 | } | 82 | } |
82 | 83 | ||
83 | int PEVENT_PLUGIN_LOADER(void) | 84 | int PEVENT_PLUGIN_LOADER(struct pevent *pevent) |
84 | { | 85 | { |
85 | pevent_register_event_handler(-1, "timer", "hrtimer_expire_entry", | 86 | pevent_register_event_handler(pevent, -1, "timer", "hrtimer_expire_entry", |
86 | timer_expire_handler); | 87 | timer_expire_handler); |
87 | 88 | ||
88 | pevent_register_event_handler(-1, "timer", "hrtimer_start", | 89 | pevent_register_event_handler(pevent, -1, "timer", "hrtimer_start", |
89 | timer_start_handler); | 90 | timer_start_handler); |
90 | 91 | ||
91 | return 0; | 92 | return 0; |