aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_sched_switch.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-18 13:32:10 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-18 13:38:29 -0500
commit8e5898fc7498693cab0b153eea5e37b302e307d2 (patch)
tree54bc25ec88b48a6214126b13d993bd901d7e732f /plugin_sched_switch.c
parent40a8521b53435a97e855c7d65486da41b30f9131 (diff)
parentb05f27dc7d0dab346e20795ce4d9f6d56d3e18ea (diff)
Merge branch 'trace-cmd' into trace-view
Fixed up the trace-graph and trace-cmd view to handle the new API Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'plugin_sched_switch.c')
-rw-r--r--plugin_sched_switch.c12
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
50static int sched_wakeup_handler(struct trace_seq *s, void *data, int size, 50static 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
105static int sched_switch_handler(struct trace_seq *s, void *data, int size, 105static 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, '!');