aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Clark <[email protected]>2023-11-13 10:23:24 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-11-27 18:56:34 +0000
commitffa96259ca5f02bbcecd2c45831e7632cd6d3485 (patch)
treedd8d0229c4f994794762a450a2fa3b9fd36641b5
parentperf vendor events riscv: add T-HEAD C9xx JSON file (diff)
downloadkernel-ffa96259ca5f02bbcecd2c45831e7632cd6d3485.tar.gz
kernel-ffa96259ca5f02bbcecd2c45831e7632cd6d3485.zip
perf test: Use existing config value for objdump path
There is already an existing config value for changing the objdump path, so instead of having two values that do the same thing, make 'perf test' use annotate.objdump as well. Signed-off-by: James Clark <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Fangrui Song <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Yang Jihong <[email protected]> Cc: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/Documentation/perf-config.txt8
-rw-r--r--tools/perf/tests/builtin-test.c2
2 files changed, 3 insertions, 7 deletions
diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt
index 16398babd1ef..379f9d7a8ab1 100644
--- a/tools/perf/Documentation/perf-config.txt
+++ b/tools/perf/Documentation/perf-config.txt
@@ -251,7 +251,8 @@ annotate.*::
addr2line binary to use for file names and line numbers.
annotate.objdump::
- objdump binary to use for disassembly and annotations.
+ objdump binary to use for disassembly and annotations,
+ including in the 'perf test' command.
annotate.disassembler_style::
Use this to change the default disassembler style to some other value
@@ -722,11 +723,6 @@ session-<NAME>.*::
Defines new record session for daemon. The value is record's
command line without the 'record' keyword.
-test.*::
-
- test.objdump::
- objdump binary to use for disassembly and annotations.
-
SEE ALSO
--------
linkperf:perf[1]
diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c
index 113e92119e1d..b8c21e81a021 100644
--- a/tools/perf/tests/builtin-test.c
+++ b/tools/perf/tests/builtin-test.c
@@ -518,7 +518,7 @@ static int run_workload(const char *work, int argc, const char **argv)
static int perf_test__config(const char *var, const char *value,
void *data __maybe_unused)
{
- if (!strcmp(var, "test.objdump"))
+ if (!strcmp(var, "annotate.objdump"))
test_objdump_path = value;
return 0;