]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf pmu: Make pmu_alias_terms weak again
authorIan Rogers <irogers@google.com>
Sun, 9 Nov 2025 00:59:58 +0000 (16:59 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 10 Nov 2025 07:07:57 +0000 (23:07 -0800)
commit0e9b51a43214f81f07813b63349b03ded35139c7
tree3336a35e8bf219d3d88eeab95246089d3fa028a4
parent6331b266935916bf050149a55bfafb45aa3d9d9e
perf pmu: Make pmu_alias_terms weak again

The terms for a json event should be weak so they don't override
command line options.

Before:
```
$ perf record -vv -c 1000 -e uops_issued.any -o /dev/null true 2>&1
|grep "{ sample_period, sample_freq }"
 { sample_period, sample_freq }   200003
 { sample_period, sample_freq }   2000003
 { sample_period, sample_freq }   1000
```

After:
```
$ perf record -vv -c 1000 -e uops_issued.any -o /dev/null true 2>&1
|grep "{ sample_period, sample_freq }"
 { sample_period, sample_freq }   1000
 { sample_period, sample_freq }   1000
 { sample_period, sample_freq }   1000
```

Fixes: 84bae3af20d0 ("perf pmu: Don't eagerly parse event terms")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/pmu.c