]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf expr: Add #target_cpu literal
authorIan Rogers <irogers@google.com>
Tue, 11 Nov 2025 21:21:50 +0000 (13:21 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 12 Nov 2025 00:48:34 +0000 (16:48 -0800)
commit2e5140849b021889cf4dd8df5d2352e508213607
tree2f7f0bf4e86d90d12d5bca16ecb0d224eacd8ae2
parentc8035a496141b9c05dc3ce034c7a1d4b64f4eccb
perf expr: Add #target_cpu literal

For CPU nanoseconds a lot of the stat-shadow metrics use either
task-clock or cpu-clock, the latter being used when
target__has_cpu. Add a #target_cpu literal so that json metrics can
perform the same test.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/expr.c