3e0eb86439
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> |
||
---|---|---|
.. | ||
callchain.c | ||
core.c | ||
hw_breakpoint.c | ||
internal.h | ||
Makefile | ||
ring_buffer.c | ||
uprobes.c |