]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Add INTEL_FLAGS_UEVENT_CONSTRAINT
authorAndi Kleen <ak@linux.intel.com>
Wed, 24 Sep 2014 14:34:46 +0000 (07:34 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 10:41:54 +0000 (11:41 +0100)
commitb5313ef3362b9ca31270c26f9a9bf70359f89cd9
treefe7f49a866cf71ac34fb8d97ce06eef51875f371
parent55f772f484aa29c2b03577202151fa7f6bcb8bc3
perf/x86: Add INTEL_FLAGS_UEVENT_CONSTRAINT

Add a FLAGS_UEVENT_CONSTRAINT macro that allows us to
match on event+umask, and in additional all flags.

This is needed to ensure the INV and CMASK fields
are zero for specific events, as this can cause undefined
behavior.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Maria Dimakopoulou <maria.n.dimakopoulou@gmail.com>
Cc: Mark Davies <junk@eslaf.co.uk>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1411569288-5627-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.h