aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2010-01-05 17:46:41 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:11 -0500
commitec3a9039601af210fca4650d229621fe5a21df0b (patch)
treee5b3d0a926c8488e363f663e641df3d51a6acb57 /Documentation
parent56b03f3c4d641dbdbce2e52a2969712e85b0e030 (diff)
tracing/kprobe: Update example output in documentation
Update example output in documentation according to current implementation. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: systemtap <systemtap@sources.redhat.com> Cc: DLE <dle-develop@lists.sourceforge.net> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20100105224641.19431.34967.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/trace/kprobetrace.txt33
1 files changed, 17 insertions, 16 deletions
diff --git a/Documentation/trace/kprobetrace.txt b/Documentation/trace/kprobetrace.txt
index 47aabeebbdf6..c3eff6ff945f 100644
--- a/Documentation/trace/kprobetrace.txt
+++ b/Documentation/trace/kprobetrace.txt
@@ -97,23 +97,24 @@ recording return value as "myretprobe" event.
97 97
98 cat /sys/kernel/debug/tracing/events/kprobes/myprobe/format 98 cat /sys/kernel/debug/tracing/events/kprobes/myprobe/format
99name: myprobe 99name: myprobe
100ID: 75 100ID: 780
101format: 101format:
102 field:unsigned short common_type; offset:0; size:2; 102 field:unsigned short common_type; offset:0; size:2; signed:0;
103 field:unsigned char common_flags; offset:2; size:1; 103 field:unsigned char common_flags; offset:2; size:1; signed:0;
104 field:unsigned char common_preempt_count; offset:3; size:1; 104 field:unsigned char common_preempt_count; offset:3; size:1;signed:0;
105 field:int common_pid; offset:4; size:4; 105 field:int common_pid; offset:4; size:4; signed:1;
106 field:int common_tgid; offset:8; size:4; 106 field:int common_lock_depth; offset:8; size:4; signed:1;
107 107
108 field: unsigned long ip; offset:16;tsize:8; 108 field:unsigned long __probe_ip; offset:12; size:4; signed:0;
109 field: int nargs; offset:24;tsize:4; 109 field:int __probe_nargs; offset:16; size:4; signed:1;
110 field: unsigned long dfd; offset:32;tsize:8; 110 field:unsigned long dfd; offset:20; size:4; signed:0;
111 field: unsigned long filename; offset:40;tsize:8; 111 field:unsigned long filename; offset:24; size:4; signed:0;
112 field: unsigned long flags; offset:48;tsize:8; 112 field:unsigned long flags; offset:28; size:4; signed:0;
113 field: unsigned long mode; offset:56;tsize:8; 113 field:unsigned long mode; offset:32; size:4; signed:0;
114 114
115print fmt: "(%lx) dfd=%lx filename=%lx flags=%lx mode=%lx", REC->ip, REC->dfd, REC->filename, REC->flags, REC->mode 115
116 116print fmt: "(%lx) dfd=%lx filename=%lx flags=%lx mode=%lx", REC->__probe_ip,
117REC->dfd, REC->filename, REC->flags, REC->mode
117 118
118 You can see that the event has 4 arguments as in the expressions you specified. 119 You can see that the event has 4 arguments as in the expressions you specified.
119 120