Skip to contentSkip to conversation

perf test: Use existing config value for objdump path

PATCH Applied James Clark 3 participants 3 messages Nov 13, 2023 – Nov 27, 2023 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/perf/Documentation/perf-config.txt | 8 ++------
 tools/perf/tests/builtin-test.c          | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)
tools/perf/Documentation/perf-config.txt +2 -6
index 16398babd1ef..379f9d7a8ab1 100644
@@ -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]
tools/perf/tests/builtin-test.c +1 -1
index 113e92119e1d..b8c21e81a021 100644
@@ -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;
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 6 lines · James Clark

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.

Thanks,
Namhyung

Quoted 47 lines
---
 tools/perf/Documentation/perf-config.txt | 8 ++------
 tools/perf/tests/builtin-test.c          | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)
tools/perf/Documentation/perf-config.txt +2 -6
index 16398babd1ef..379f9d7a8ab1 100644
@@ -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]
tools/perf/tests/builtin-test.c +1 -2
index 113e92119e1d..b8c21e81a021 100644
@@ -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;
--

2.34.1

maintainer Applied
#2 lore raw

Em Mon, Nov 20, 2023 at 12:48:38PM -0800, Namhyung Kim escreveu:

Quoted 11 lines

Hello,

Quoted 6 lines · James Clark

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.

Thanks, applied to perf-tools-next.

- Arnaldo

Quoted 50 lines

Thanks,
Namhyung

Quoted 47 lines
---
 tools/perf/Documentation/perf-config.txt | 8 ++------
 tools/perf/tests/builtin-test.c          | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)
tools/perf/Documentation/perf-config.txt +2 -6
index 16398babd1ef..379f9d7a8ab1 100644
@@ -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]
tools/perf/tests/builtin-test.c +1 -2
index 113e92119e1d..b8c21e81a021 100644
@@ -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;
--

2.34.1

Signature · 1 line
- Arnaldo