]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test expr: Fix system_tsc_freq for only x86
authorIan Rogers <irogers@google.com>
Thu, 5 Dec 2024 02:23:05 +0000 (18:23 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 11 Dec 2024 17:19:44 +0000 (09:19 -0800)
commita93a620c38f3763ec74cb0def9625756966f12d9
tree0dcc4320ae67a9bf88ed62e25fecb0c435191524
parentd4e17a322a8fc3266798ec8dee1fbe679078b2bc
perf test expr: Fix system_tsc_freq for only x86

The refactoring of tool PMU events to have a PMU then adding the expr
literals to the tool PMU made it so that the literal system_tsc_freq
was only supported on x86. Update the test expectations to match -
namely the parsing is x86 specific and only yields a non-zero value on
Intel.

Fixes: 609aa2667f67 ("perf tool_pmu: Switch to standard pmu functions and json descriptions")
Reported-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Closes: https://lore.kernel.org/linux-perf-users/20241022140156.98854-1-atrajeev@linux.vnet.ibm.com/
Co-developed-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: akanksha@linux.ibm.com
Cc: hbathini@linux.ibm.com
Cc: kjain@linux.ibm.com
Cc: maddy@linux.ibm.com
Cc: disgoel@linux.vnet.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20241205022305.158202-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/expr.c