]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf record: Add support for arch_sdt_arg_parse_op() on s390
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 19 Mar 2026 08:47:54 +0000 (09:47 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Mar 2026 21:38:54 +0000 (14:38 -0700)
commit46a009cf0d85cba05d4667214db18a4c20dd6b8e
treeb8c48d37017d29a05623e382aa68202865bf2b21
parent5c980ab238c8a9e2b24221603f11eadc98a7f45e
perf record: Add support for arch_sdt_arg_parse_op() on s390

commit e5e66adfe45a6 ("perf regs: Remove __weak attributive arch_sdt_arg_parse_op() function")
removes arch_sdt_arg_parse_op() functions and reveals missing s390 support.
The following warning is printed:

  Unknown ELF machine 22, standard arguments parse will be skipped.

ELF machine 22 is the EM_S390 host. This happens with command
  # ./perf record -v -- stress-ng -t 1s --matrix 0
when the event is not specified.

Add s390 specific __perf_sdt_arg_parse_op_s390() function to support
-architecture calls to arch_sdt_arg_parse_op() for s390.
The warning disappears.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Jan Polensky <japo@linux.ibm.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/perf-regs-arch/perf_regs_s390.c
tools/perf/util/perf_regs.c
tools/perf/util/perf_regs.h