android_kernel_xiaomi_sm7250/kernel/events
Sultan Alsawaf 3e0eb86439 perf/core: Fix risky smp_processor_id() usage in perf_event_read_local()
There's no requirement that perf_event_read_local() be used from a
context where CPU migration isn't possible, yet smp_processor_id() is
used with the assumption that the caller guarantees CPU migration can't
occur. Since IRQs are disabled here anyway, the smp_processor_id() can
simply be moved to the IRQ-disabled section to guarantee its safety.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2022-11-12 11:24:20 +00:00
..
callchain.c
core.c perf/core: Fix risky smp_processor_id() usage in perf_event_read_local() 2022-11-12 11:24:20 +00:00
hw_breakpoint.c
internal.h
Makefile
ring_buffer.c
uprobes.c mm/mmap.c: use IS_ERR_VALUE to check return value of get_unmapped_area 2022-11-12 11:21:20 +00:00