mirror of
https://github.com/brendangregg/perf-tools.git
synced 2025-12-01 07:26:04 +07:00
explain dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user