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