]> git.baikalelectronics.ru Git - kernel.git/commit
perf/aux: Disallow aux_output for kernel events
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 30 Oct 2019 13:47:31 +0000 (15:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2019 07:16:42 +0000 (08:16 +0100)
commit0ad9f27e997b6a295760e10e71a47dcf18e5dc12
treea9326b734afcc7a9c6fa7f6150f4dc639793b377
parent2e0b17192b437f45dae58c7fa0f8f1955bac9ab6
perf/aux: Disallow aux_output for kernel events

Commit

  f403171f4e881 ("perf: Allow normal events to output AUX data")

added 'aux_output' bit to the attribute structure, which relies on AUX
events and grouping, neither of which is supported for the kernel events.
This notwithstanding, attempts have been made to use it in the kernel
code, suggesting the necessity of an explicit hard -EINVAL.

Fix this by rejecting attributes with aux_output set for kernel events.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: https://lkml.kernel.org/r/20191030134731.5437-3-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c