Skip to content

Commit

Permalink
perf: Mark LLCC PMU events as readable from any cpu
Browse files Browse the repository at this point in the history
Currently, when trying to read from the LLCC PMU, the read will be ignored
by the perf framework if the intended core of the read is idle. However,
the LLCC PMU can be read regardless. Add a mask to LLCC PMU events
indicating they can be read from any CPU.

Change-Id: I841f96ffa9421961db995d55ae4e6266be77f5c0
Signed-off-by: Jonathan Avila <avilaj@codeaurora.org>
  • Loading branch information
Jonathan Avila committed Mar 6, 2018
1 parent d8939b6 commit 65d37dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/perf/qcom_llcc_pmu.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
Expand Down Expand Up @@ -56,6 +56,7 @@ static int qcom_llcc_event_init(struct perf_event *event)

if (config == LLCC_RD_EV) {
event->hw.config_base = event->attr.config;
event->readable_on_cpus = CPU_MASK_ALL;
return 0;
} else
return -ENOENT;
Expand Down

0 comments on commit 65d37dd

Please sign in to comment.