mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
perf/aux: Make perf_event accessible to setup_aux()
When pmu::setup_aux() is called the coresight PMU needs to know which sink to use for the session by looking up the information in the event's attr::config2 field. As such simply replace the cpu information by the complete perf_event structure and change all affected customers. Signed-off-by: Mathieu Poirier <[email protected]> Reviewed-by: Suzuki Poulouse <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
ebc52aee61
commit
840018668c
7 changed files with 17 additions and 14 deletions
|
|
@ -824,10 +824,10 @@ static void arm_spe_pmu_read(struct perf_event *event)
|
|||
{
|
||||
}
|
||||
|
||||
static void *arm_spe_pmu_setup_aux(int cpu, void **pages, int nr_pages,
|
||||
bool snapshot)
|
||||
static void *arm_spe_pmu_setup_aux(struct perf_event *event, void **pages,
|
||||
int nr_pages, bool snapshot)
|
||||
{
|
||||
int i;
|
||||
int i, cpu = event->cpu;
|
||||
struct page **pglist;
|
||||
struct arm_spe_pmu_buf *buf;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue