perf: llcc: Preserve events across CPU hotplugs
By default, the perf core detaches the event from the PMU when it's associated CPU hotplugs out. Set flag "events_across_hotplug" to preserve the events created for LLCC PMU to be preserved across hotplugs. Change-Id: Ia4bd4962370dd18fcd4b221905186faadc618ce0 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org> Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>
This commit is contained in:
@@ -149,6 +149,7 @@ static int qcom_llcc_pmu_probe(struct platform_device *pdev)
|
|||||||
.start = qcom_llcc_event_start,
|
.start = qcom_llcc_event_start,
|
||||||
.stop = qcom_llcc_event_stop,
|
.stop = qcom_llcc_event_stop,
|
||||||
.read = qcom_llcc_event_read,
|
.read = qcom_llcc_event_read,
|
||||||
|
.events_across_hotplug = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lagg-base");
|
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lagg-base");
|
||||||
|
|||||||
Reference in New Issue
Block a user