diff options
author | Mark Rutland <[email protected]> | 2020-11-30 11:59:41 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-11-30 12:11:37 +0000 |
commit | 114e0a684753516ef4b71ccb55a8ebcfa8735edb (patch) | |
tree | 64675ee4d9a296076729d01728f4d3f88bc4ee90 /tools/perf/scripts/python/syscall-counts.py | |
parent | ca1314d73eed493c49bb1932c60a8605530db2e4 (diff) |
arm64: mark idle code as noinstr
Core code disables RCU when calling arch_cpu_idle(), so it's not safe
for arch_cpu_idle() or its calees to be instrumented, as the
instrumentation callbacks may attempt to use RCU or other features which
are unsafe to use in this context.
Mark them noinstr to prevent issues.
The use of local_irq_enable() in arch_cpu_idle() is similarly
problematic, and the "sched/idle: Fix arch_cpu_idle() vs tracing" patch
queued in the tip tree addresses that case.
Reported-by: Marco Elver <[email protected]>
Signed-off-by: Mark Rutland <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: James Morse <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions