diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-11 10:03:26 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-11 10:03:26 -0500 |
commit | 34c070f42b6d15d0b20e7779fa10ca2b2588b7bc (patch) | |
tree | a809708e52b0f3ce5592f238634e7cabddc90852 | |
parent | 233e681fb3e062b4c220d50ae70ff0f7f41e26de (diff) |
trace-cmd: Add target CPU for sched_wakeup in sched plugin
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | plugin_sched_switch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin_sched_switch.c b/plugin_sched_switch.c index 0f3b857..d22935c 100644 --- a/plugin_sched_switch.c +++ b/plugin_sched_switch.c | |||
@@ -96,6 +96,9 @@ static int sched_wakeup_handler(struct trace_seq *s, struct record *record, | |||
96 | 96 | ||
97 | trace_seq_printf(s, "%.*s", field->size, (char *)(data + field->offset)); | 97 | trace_seq_printf(s, "%.*s", field->size, (char *)(data + field->offset)); |
98 | 98 | ||
99 | if (get_field_val(s, data, event, "target_cpu", &val, 0) == 0) | ||
100 | trace_seq_printf(s, " [%03llu]", val); | ||
101 | |||
99 | if (get_field_val(s, data, event, "success", &val, 0) == 0) | 102 | if (get_field_val(s, data, event, "success", &val, 0) == 0) |
100 | trace_seq_puts(s, val ? " Success" : " Failed"); | 103 | trace_seq_puts(s, val ? " Success" : " Failed"); |
101 | 104 | ||