diff options
author | Ravi Bangoria <ravi.bangoria@amd.com> | 2023-05-04 16:30:00 +0530 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-05-08 10:58:30 +0200 |
commit | 0d6d062ca27ec7ef547712d34dcfcfb952bcef53 (patch) | |
tree | 4dd7299fe36002612a9b9b00f9f64e03e71b926e /lib/dynamic_debug.c | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) | |
download | linux-0d6d062ca27ec7ef547712d34dcfcfb952bcef53.tar.gz linux-0d6d062ca27ec7ef547712d34dcfcfb952bcef53.tar.bz2 linux-0d6d062ca27ec7ef547712d34dcfcfb952bcef53.zip |
perf/core: Rework forwarding of {task|cpu}-clock events
Currently, PERF_TYPE_SOFTWARE is treated specially since task-clock and
cpu-clock events are interfaced through it but internally gets forwarded
to their own pmus.
Rework this by overwriting event->attr.type in perf_swevent_init() which
will cause perf_init_event() to retry with updated type and event will
automatically get forwarded to right pmu. With the change, SW pmu no
longer needs to be treated specially and can be included in 'pmu_idr'
list.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230504110003.2548-2-ravi.bangoria@amd.com
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions