aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorJosh Poimboeuf <[email protected]>2021-11-08 22:35:59 +0000
committerJosh Poimboeuf <[email protected]>2021-12-21 23:09:46 +0000
commitdcce50e6cc4d86a63dc0a9a6ee7d4f948ccd53a1 (patch)
tree924ef38b1c608d28308f4684364482009d39409a /tools/perf/scripts/python/sctop.py
parentuapi: Fix undefined __always_inline on non-glibc systems (diff)
downloadkernel-dcce50e6cc4d86a63dc0a9a6ee7d4f948ccd53a1.tar.gz
kernel-dcce50e6cc4d86a63dc0a9a6ee7d4f948ccd53a1.zip
compiler.h: Fix annotation macro misplacement with Clang
When building with Clang and CONFIG_TRACE_BRANCH_PROFILING, there are a lot of unreachable warnings, like: arch/x86/kernel/traps.o: warning: objtool: handle_xfd_event()+0x134: unreachable instruction Without an input to the inline asm, 'volatile' is ignored for some reason and Clang feels free to move the reachable() annotation away from its intended location. Fix that by re-adding the counter value to the inputs. Fixes: f1069a8756b9 ("compiler.h: Avoid using inline asm operand modifiers") Fixes: c199f64ff93c ("instrumentation.h: Avoid using inline asm operand modifiers") Reported-by: kernel test robot <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/0417e96909b97a406323409210de7bf13df0b170.1636410380.git.jpoimboe@redhat.com Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: Vasily Gorbik <[email protected]> Cc: Miroslav Benes <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions