]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/ibs: Check syscall attribute flags
authorRobert Richter <robert.richter@amd.com>
Wed, 25 Jul 2012 17:12:45 +0000 (19:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 Sep 2012 14:59:48 +0000 (16:59 +0200)
commit54f905b2a2b230476cc0f2ba4c3a0a81b4d6de86
tree26f49a2e0824a6e6a7830e12faaeaf201b16d99b
parent0cb735abd461bd1b56a47d9317fa873e24fe7c82
perf/x86/ibs: Check syscall attribute flags

Current implementation simply ignores attribute flags. Thus, there is
no notification to userland of unsupported features. Check syscall's
attribute flags to let userland know if a feature is supported by the
kernel. This is also needed to distinguish between future kernels what
might support a feature.

Cc: <stable@vger.kernel.org> v3.5..
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120910093018.GO8285@erda.amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_amd_ibs.c
include/linux/perf_event.h