aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorRavi Bangoria <[email protected]>2023-05-04 16:30:00 +0530
committerPeter Zijlstra <[email protected]>2023-05-08 10:58:30 +0200
commit0d6d062ca27ec7ef547712d34dcfcfb952bcef53 (patch)
tree4dd7299fe36002612a9b9b00f9f64e03e71b926e /lib/mpi/mpi-sub-ui.c
parentac9a78681b921877518763ba0e89202254349d1b (diff)
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 <[email protected]> Signed-off-by: Ravi Bangoria <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions