Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <james.clark@arm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Fangrui Song <maskray@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yang Jihong <yangjihong1@huawei.com>
Cc: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/ZU5Cx4LTrB5q0sIG@kernel.org
Link: https://lore.kernel.org/r/20231113102327.695386-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

James Clark and committed by
Arnaldo Carvalho de Melo
ffa96259 7340c6df

+3 -7
+2 -6
tools/perf/Documentation/perf-config.txt
··· 251 251 addr2line binary to use for file names and line numbers. 252 252 253 253 annotate.objdump:: 254 - objdump binary to use for disassembly and annotations. 254 + objdump binary to use for disassembly and annotations, 255 + including in the 'perf test' command. 255 256 256 257 annotate.disassembler_style:: 257 258 Use this to change the default disassembler style to some other value ··· 722 721 723 722 Defines new record session for daemon. The value is record's 724 723 command line without the 'record' keyword. 725 - 726 - test.*:: 727 - 728 - test.objdump:: 729 - objdump binary to use for disassembly and annotations. 730 724 731 725 SEE ALSO 732 726 --------
+1 -1
tools/perf/tests/builtin-test.c
··· 518 518 static int perf_test__config(const char *var, const char *value, 519 519 void *data __maybe_unused) 520 520 { 521 - if (!strcmp(var, "test.objdump")) 521 + if (!strcmp(var, "annotate.objdump")) 522 522 test_objdump_path = value; 523 523 524 524 return 0;