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)
commitbad9ac2d7f878a31cf1ae8c1ee3768077d222bcb
tree26f49a2e0824a6e6a7830e12faaeaf201b16d99b
parent35534b201c9f115c68962c095b5a9aad204d025f
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