]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf/core: Check return value of the perf_event_read() IPI
authorDavid Carrillo-Cisneros <davidcc@google.com>
Wed, 17 Aug 2016 20:55:04 +0000 (13:55 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 18 Aug 2016 08:35:52 +0000 (10:35 +0200)
commit71e7bc2bab77e64882c031c2af943c3256c1adb0
treec8a876b227ae2fa3098c2a19d1870784b116bea3
parent99f5bc9bfa9094e7c264a8e09f9507b391a3d1d1
perf/core: Check return value of the perf_event_read() IPI

The call to smp_call_function_single in perf_event_read() may fail if
an invalid or not online CPU index is passed. Warn user if such bug is
present and return error.

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Turner <pjt@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/1471467307-61171-2-git-send-email-davidcc@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c