acrn-kernel/arch/x86/events/intel
Sami Tolvanen ebd19fc372 perf/x86: fix sysfs type mismatches
This change switches rapl to use PMU_FORMAT_ATTR, and fixes two other
macros to use device_attribute instead of kobj_attribute to avoid
callback type mismatches that trip indirect call checking with Clang's
Control-Flow Integrity (CFI).

Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20201113183126.1239404-1-samitolvanen@google.com
2020-11-17 13:15:38 +01:00
..
Makefile perf/x86/rapl: Move RAPL support to common x86 code 2020-05-28 07:58:55 +02:00
bts.c perf/x86: Replace zero-length array with flexible-array 2020-05-19 20:34:16 +02:00
core.c perf/x86/intel: Make anythread filter support conditional 2020-11-09 18:12:36 +01:00
cstate.c perf/x86: fix sysfs type mismatches 2020-11-17 13:15:38 +01:00
ds.c perf/x86: Make dummy_iregs static 2020-11-09 18:12:35 +01:00
knc.c
lbr.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
p4.c
p6.c
pt.c perf/x86/intel/pt: Drop pointless NULL assignment. 2020-04-30 20:14:36 +02:00
pt.h perf/x86/intel/pt: Prevent redundant WRMSRs 2019-11-13 11:06:18 +01:00
uncore.c perf/x86: fix sysfs type mismatches 2020-11-17 13:15:38 +01:00
uncore.h perf/x86: fix sysfs type mismatches 2020-11-17 13:15:38 +01:00
uncore_nhmex.c
uncore_snb.c perf/x86/intel/uncore: Fix Add BW copypasta 2020-11-10 18:38:40 +01:00
uncore_snbep.c perf/x86/intel/uncore: Fix the scale of the IMC free-running events 2020-09-29 09:57:02 +02:00