perf: Set the DSU PMU to be readable from any CPU
Usually, the perf core assumes that the PMU is attached to a particular processor core and ignores the event to be read if that particular CPU is idle. However, the DSU PMU isn't attached to any core. In fact, it is common for all the cores and the event can be safely read from any cpu. As a result, initialize the event to achieve the same. Change-Id: I5037e749019471476369bdf818602faa70de26a6 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org> Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
This commit is contained in:
committed by
Rishabh Bhatnagar
parent
996bd8ea64
commit
cfd13c076e
@@ -591,6 +591,7 @@ static int dsu_pmu_event_init(struct perf_event *event)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
event->hw.config_base = event->attr.config;
|
event->hw.config_base = event->attr.config;
|
||||||
|
event->readable_on_cpus = CPU_MASK_ALL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user