android_kernel_samsung_a7y1.../arch/x86/kernel
Kim Phillips 6a133772dd perf/amd/uncore: Replace manual sampling check with CAP_NO_INTERRUPT flag
[ Upstream commit f967140dfb7442e2db0868b03b961f9c59418a1b ]

Enable the sampling check in kernel/events/core.c::perf_event_open(),
which returns the more appropriate -EOPNOTSUPP.

BEFORE:

  $ sudo perf record -a -e instructions,l3_request_g1.caching_l3_cache_accesses true
  Error:
  The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (l3_request_g1.caching_l3_cache_accesses).
  /bin/dmesg | grep -i perf may provide additional information.

With nothing relevant in dmesg.

AFTER:

  $ sudo perf record -a -e instructions,l3_request_g1.caching_l3_cache_accesses true
  Error:
  l3_request_g1.caching_l3_cache_accesses: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'

Fixes: c43ca5091a37 ("perf/x86/amd: Add support for AMD NB and L2I "uncore" counters")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200311191323.13124-1-kim.phillips@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 14:13:32 +02:00
..
acpi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apic x86/ioapic: Prevent inconsistent state when moving an interrupt 2020-04-07 13:20:50 +02:00
cpu perf/amd/uncore: Replace manual sampling check with CAP_NO_INTERRUPT flag 2020-04-07 14:13:32 +02:00
fpu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kprobes kprobes/x86: Prohibit probing on exception masking instructions 2020-04-07 12:31:23 +02:00
alternative.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd_gart_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd_nb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apb_timer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aperture_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apm_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bootflag.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
check.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpuid.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash_dump_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash_dump_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devicetree.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
doublefault.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dumpstack_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dumpstack_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dumpstack.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
e820.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_printk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early-quirks.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
espfix_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hpet.c x86/vdso: Remove direct HPET access through the vDSO 2020-04-06 20:50:21 +02:00
hw_breakpoint.c x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error 2020-04-06 15:17:29 +02:00
i386_ksyms_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i8237.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i8253.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i8259.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io_delay.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_64.c x86/irq/64: Limit IST stack overflow check to #DB stack 2020-04-06 18:18:58 +02:00
irq_work.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irqflags.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irqinit.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jump_label.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kdebugfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kexec-bzimage64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kgdb.c x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI 2020-04-07 13:42:39 +02:00
ksysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kvm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kvmclock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ldt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
livepatch.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine_kexec_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine_kexec_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcount_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmconf-fam10h_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mpparse.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nmi_selftest.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nmi.c x86/speculation/mds: Clear CPU buffers on exit to user 2020-04-06 16:55:38 +02:00
paravirt_patch_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
paravirt_patch_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
paravirt-spinlocks.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
paravirt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-calgary_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-dma.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-iommu_table.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-nommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-swiotlb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcspeaker.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_regs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pmem.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
probe_roms.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
process_32.c x86/process: Consolidate and simplify switch_to_xtra() code 2020-04-06 16:54:59 +02:00
process_64.c x86/process: Consolidate and simplify switch_to_xtra() code 2020-04-06 16:54:59 +02:00
process.c x86/speculation: Add prctl() control for indirect branch speculation 2020-04-06 16:55:11 +02:00
process.h x86/speculation: Avoid __switch_to_xtra() calls 2020-04-06 16:55:01 +02:00
ptrace.c x86/ptrace: fix up botched merge of spectrev1 fix 2020-04-06 21:33:58 +02:00
pvclock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quirks.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot_fixups_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
relocate_kernel_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
relocate_kernel_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
resource.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup_percpu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp.c x86/reboot: Always use NMI fallback when shutdown via reboot vector IPI fails 2020-04-07 07:38:01 +02:00
smpboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stacktrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
step.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sys_x86_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfb_efi.c x86/sysfb_efi: Add quirks for some devices with swapped width and height 2020-04-06 20:16:38 +02:00
sysfb_simplefb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tce_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
test_nx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
test_rodata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
time.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tls.c x86/tls: Fix possible spectre-v1 in do_get_thread_area() 2020-04-06 19:26:28 +02:00
tls.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_clock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tracepoint.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
traps.c x86/speculation/mds: Revert CPU buffer clear on double fault exit 2020-04-06 18:11:40 +02:00
tsc_msr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tsc_sync.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tsc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uprobes.c uprobes/x86: Prohibit probing on MOV SS instruction 2020-04-07 12:31:25 +02:00
verify_cpu.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vm86_32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmlinux.lds.S Revert "x86/build: Move _etext to actual end of .text" 2020-04-06 18:44:52 +02:00
vsmp_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x86_init.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x8664_ksyms_64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30