diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-02 15:22:21 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-02 15:22:21 -0500 |
commit | 96ccd21cd13140221bda74a4fc4e53ffeba7c7d4 (patch) | |
tree | 28a32932731fea14d2ef8ea39dd00cde3ffd6be7 | |
parent | c5e4e19271edfdf1abd4184933d40d646da6a091 (diff) | |
download | op-kernel-dev-96ccd21cd13140221bda74a4fc4e53ffeba7c7d4.zip op-kernel-dev-96ccd21cd13140221bda74a4fc4e53ffeba7c7d4.tar.gz |
tracing: add print format to event trace format files
This patch adds the internal print format used to print the raw events
to the event trace point format file.
# cat /debug/tracing/events/sched/sched_switch/format
name: sched_switch
ID: 29
format:
field:unsigned char type; offset:0; size:1;
field:unsigned char flags; offset:1; size:1;
field:unsigned char preempt_count; offset:2; size:1;
field:int pid; offset:4; size:4;
field:int tgid; offset:8; size:4;
field:pid_t prev_pid; offset:12; size:4;
field:int prev_prio; offset:16; size:4;
field special:char next_comm[TASK_COMM_LEN]; offset:20; size:16;
field:pid_t next_pid; offset:36; size:4;
field:int next_prio; offset:40; size:4;
print fmt: "prev %d:%d ==> next %s:%d:%d"
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
-rw-r--r-- | kernel/trace/trace_events_stage_2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace_events_stage_2.h b/kernel/trace/trace_events_stage_2.h index 3a80ea4..b1cebba 100644 --- a/kernel/trace/trace_events_stage_2.h +++ b/kernel/trace/trace_events_stage_2.h @@ -122,6 +122,8 @@ ftrace_format_##call(struct trace_seq *s) \ \ tstruct; \ \ + trace_seq_printf(s, "\nprint fmt: \"%s\"\n", tpfmt); \ + \ return ret; \ } |