diff options
Diffstat (limited to 'plugin_sched_switch.c')
| -rw-r--r-- | plugin_sched_switch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin_sched_switch.c b/plugin_sched_switch.c index 4690f2f..0f3b857 100644 --- a/plugin_sched_switch.c +++ b/plugin_sched_switch.c | |||
| @@ -47,12 +47,12 @@ static void write_state(struct trace_seq *s, int val) | |||
| 47 | trace_seq_putc(s, 'R'); | 47 | trace_seq_putc(s, 'R'); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static int sched_wakeup_handler(struct trace_seq *s, void *data, int size, | 50 | static int sched_wakeup_handler(struct trace_seq *s, struct record *record, |
| 51 | struct event_format *event, int cpu, | 51 | struct event_format *event) |
| 52 | unsigned long long nsecs) | ||
| 53 | { | 52 | { |
| 54 | struct format_field *field; | 53 | struct format_field *field; |
| 55 | unsigned long long val; | 54 | unsigned long long val; |
| 55 | void *data = record->data; | ||
| 56 | 56 | ||
| 57 | if (get_field_val(s, data, event, "common_pid", &val, 1)) | 57 | if (get_field_val(s, data, event, "common_pid", &val, 1)) |
| 58 | return trace_seq_putc(s, '!'); | 58 | return trace_seq_putc(s, '!'); |
| @@ -102,12 +102,12 @@ static int sched_wakeup_handler(struct trace_seq *s, void *data, int size, | |||
| 102 | return 0; | 102 | return 0; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | static int sched_switch_handler(struct trace_seq *s, void *data, int size, | 105 | static int sched_switch_handler(struct trace_seq *s, struct record *record, |
| 106 | struct event_format *event, int cpu, | 106 | struct event_format *event) |
| 107 | unsigned long long nsecs) | ||
| 108 | { | 107 | { |
| 109 | struct format_field *field; | 108 | struct format_field *field; |
| 110 | unsigned long long val; | 109 | unsigned long long val; |
| 110 | void *data = record->data; | ||
| 111 | 111 | ||
| 112 | if (get_field_val(s, data, event, "prev_pid", &val, 1)) | 112 | if (get_field_val(s, data, event, "prev_pid", &val, 1)) |
| 113 | return trace_seq_putc(s, '!'); | 113 | return trace_seq_putc(s, '!'); |
