]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
perf/aux: Make perf_event accessible to setup_aux()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 31 Jan 2019 18:47:08 +0000 (11:47 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitcb39484b1bc8236c815bab405c2b086235b5b711
tree1a980c333174b247dc9a5fbf9a0934fb5f78f7bb
parentd505f2294297e4e84dae1f48bda257abfd33d6e6
perf/aux: Make perf_event accessible to setup_aux()

BugLink: https://bugs.launchpad.net/bugs/1838116
[ Upstream commit 840018668ce2d96783356204ff282d6c9b0e5f66 ]

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 Poulouse <suzuki.poulose@arm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-s390@vger.kernel.org
Link: http://lkml.kernel.org/r/20190131184714.20388-2-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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