path: root/scripts/tracing
diff options
authorGeunSik Lim <>2009-06-02 15:01:37 +0900
committerGreg Kroah-Hartman <>2009-06-15 21:30:28 -0700
commit156f5a7801195fa2ce44aeeb62d6cf8468f3332a (patch)
treedd506816ca6f14bb650189aa364eb0a2f51ad5cc /scripts/tracing
parent1b713e00500c6f03317742981674e89a21629399 (diff)
debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem.
Many developers use "/debug/" or "/debugfs/" or "/sys/kernel/debug/" directory name to mount debugfs filesystem for ftrace according to ./Documentation/tracers/ftrace.txt file. And, three directory names(ex:/debug/, /debugfs/, /sys/kernel/debug/) is existed in kernel source like ftrace, DRM, Wireless, Documentation, Network[sky2]files to mount debugfs filesystem. debugfs means debug filesystem for debugging easy to use by greg kroah hartman. "/sys/kernel/debug/" name is suitable as directory name of debugfs filesystem. - debugfs related reference: Fix inconsistency of directory name to mount debugfs filesystem. * From Steven Rostedt - find_debugfs() and tracing_files() in this patch. Signed-off-by: GeunSik Lim <> Acked-by : Inaky Perez-Gonzalez <> Reviewed-by : Steven Rostedt <> Reviewed-by : James Smart <> CC: Jiri Kosina <> CC: David Airlie <> CC: Peter Osterlund <> CC: Ananth N Mavinakayanahalli <> CC: Anil S Keshavamurthy <> CC: Masami Hiramatsu <> Signed-off-by: Greg Kroah-Hartman <>
Diffstat (limited to 'scripts/tracing')
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/tracing/ b/scripts/tracing/
index 902f9a992620..db40fa04cd51 100644
--- a/scripts/tracing/
+++ b/scripts/tracing/
@@ -12,10 +12,9 @@ calls. Only the functions's names and the the call time are provided.
Be sure that you have CONFIG_FUNCTION_TRACER
- # mkdir /debugfs
- # mount -t debug debug /debug
- # echo function > /debug/tracing/current_tracer
- $ cat /debug/tracing/trace_pipe > ~/raw_trace_func
+ # mount -t debugfs nodev /sys/kernel/debug
+ # echo function > /sys/kernel/debug/tracing/current_tracer
+ $ cat /sys/kernel/debug/tracing/trace_pipe > ~/raw_trace_func
Wait some times but not too much, the script is a bit slow.
Break the pipe (Ctrl + Z)
$ scripts/ < raw_trace_func > draw_functrace