diff options
Diffstat (limited to 'plugin_hrtimer.c')
-rw-r--r-- | plugin_hrtimer.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugin_hrtimer.c b/plugin_hrtimer.c index 01f8ff3..2833f1b 100644 --- a/plugin_hrtimer.c +++ b/plugin_hrtimer.c | |||
@@ -30,10 +30,11 @@ static void print_field(struct trace_seq *s, const char *fmt, | |||
30 | trace_seq_printf(s, "CAN'T FIND FIELD \"%s\"", name); | 30 | trace_seq_printf(s, "CAN'T FIND FIELD \"%s\"", name); |
31 | } | 31 | } |
32 | 32 | ||
33 | static int timer_expire_handler(struct trace_seq *s, void *data, int size, | 33 | static int timer_expire_handler(struct trace_seq *s, struct record *record, |
34 | struct event_format *event, int cpu, | 34 | struct event_format *event, int cpu) |
35 | unsigned long long nsecs) | ||
36 | { | 35 | { |
36 | void *data = record->data; | ||
37 | |||
37 | trace_seq_printf(s, "hrtimer="); | 38 | trace_seq_printf(s, "hrtimer="); |
38 | 39 | ||
39 | if (_print_field(s, "0x%llx", event, "timer", data) == -1) | 40 | if (_print_field(s, "0x%llx", event, "timer", data) == -1) |
@@ -46,12 +47,12 @@ static int timer_expire_handler(struct trace_seq *s, void *data, int size, | |||
46 | return 0; | 47 | return 0; |
47 | } | 48 | } |
48 | 49 | ||
49 | static int timer_start_handler(struct trace_seq *s, void *data, int size, | 50 | static int timer_start_handler(struct trace_seq *s, struct record *record, |
50 | struct event_format *event, int cpu, | 51 | struct event_format *event, int cpu) |
51 | unsigned long long nsecs) | ||
52 | { | 52 | { |
53 | struct pevent *pevent = event->pevent; | 53 | struct pevent *pevent = event->pevent; |
54 | struct format_field *fn = pevent_find_field(event, "function"); | 54 | struct format_field *fn = pevent_find_field(event, "function"); |
55 | void *data = record->data; | ||
55 | 56 | ||
56 | trace_seq_printf(s, "hrtimer="); | 57 | trace_seq_printf(s, "hrtimer="); |
57 | 58 | ||