aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/trace
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/trace')
-rw-r--r--Documentation/trace/kprobetrace.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/trace/kprobetrace.txt b/Documentation/trace/kprobetrace.txt
index 6521681e7838..9b8f7c6040a7 100644
--- a/Documentation/trace/kprobetrace.txt
+++ b/Documentation/trace/kprobetrace.txt
@@ -122,8 +122,15 @@ print fmt: "(%lx) dfd=%lx filename=%lx flags=%lx mode=%lx", REC->ip, REC->dfd, R
122 122
123 echo > /sys/kernel/debug/tracing/kprobe_events 123 echo > /sys/kernel/debug/tracing/kprobe_events
124 124
125 This clears all probe points. and you can see the traced information via 125 This clears all probe points.
126/sys/kernel/debug/tracing/trace. 126
127 Right after definition, each event is disabled by default. For tracing these
128events, you need to enable it.
129
130 echo 1 > /sys/kernel/debug/tracing/events/kprobes/myprobe/enable
131 echo 1 > /sys/kernel/debug/tracing/events/kprobes/myretprobe/enable
132
133 And you can see the traced information via /sys/kernel/debug/tracing/trace.
127 134
128 cat /sys/kernel/debug/tracing/trace 135 cat /sys/kernel/debug/tracing/trace
129# tracer: nop 136# tracer: nop