perf/aux: Make perf_event accessible to setup_aux()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 5 Feb 2019 23:24:56 +0000 (16:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2019 11:27:36 +0000 (12:27 +0100)
commite11a5795cb7cd1e25bbd1697baa109943938c0f6
tree564b6fa97ad51337724164b90d0ace34b3b8f2cc
parentc2bc02f8828d2efef2852249ce61acb8967d4f4a
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 <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/perf_cpum_sf.c
arch/x86/events/intel/bts.c
arch/x86/events/intel/pt.c
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/perf/arm_spe_pmu.c
include/linux/perf_event.h
kernel/events/ring_buffer.c