explain dependencies

This commit is contained in:
Brendan Gregg
2014-07-24 09:01:30 -07:00
parent facfb77c7c
commit de57ecdbd1
2 changed files with 6 additions and 3 deletions

View File

@@ -15,6 +15,8 @@
# WARNING: This uses dynamic tracing of kernel functions, and could cause
# kernel panics or freezes. Test, and know what you are doing, before use.
#
# REQUIREMENTS: CONFIG_FUNCTION_PROFILER, awk.
#
# From perf-tools: https://github.com/brendangregg/perf-tools
#
# COPYRIGHT: Copyright (c) 2014 Brendan Gregg.
@@ -109,7 +111,8 @@ echo "$funcs" > set_ftrace_filter || die "ERROR: enabling \"$funcs\". Exiting."
warn "echo nop > current_tracer"
if ! echo 1 > function_profile_enabled; then
echo > set_ftrace_filter
die "ERROR: enabling function profiling. Exiting."
die "ERROR: enabling function profiling."\
"Have CONFIG_FUNCTION_PROFILER? Exiting."
fi
### summarize

View File

@@ -14,8 +14,8 @@ before use.
Since this uses ftrace, only the root user can use this tool.
.SH REQUIREMENTS
FTRACE CONFIG, which you may already have enabled and available on recent
kernels, and awk.
CONFIG_FUNCTION_PROFILER, which you may already have enabled and available on
recent kernels, and awk.
.SH OPTIONS
\-d seconds
Total duration of the trace.