diff options
author | Thomas Gleixner <[email protected]> | 2020-03-10 23:47:39 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-06-11 15:14:36 +0200 |
commit | 126f21f0e8d46e2c0e9daafb67546dbfb316d325 (patch) | |
tree | 409cadd1911f2e4e16b70e83d656222fa124ec12 /tools/perf/scripts/python/syscall-counts.py | |
parent | 0372007f5a79d61d3cb48a507717b9afb5d6addd (diff) |
lib/smp_processor_id: Move it into noinstr section
That code is already not traceable. Move it into the noinstr section so the
objtool section validation does not trigger.
Annotate the warning code as "safe". While it might be not under all
circumstances, getting the information out is important enough.
Should this ever trigger from the sensitive code which is shielded against
instrumentation, e.g. low level entry, then the printk is the least of the
worries.
Addresses the objtool warnings:
vmlinux.o: warning: objtool: context_tracking_recursion_enter()+0x7: call to __this_cpu_preempt_check() leaves .noinstr.text section
vmlinux.o: warning: objtool: __context_tracking_exit()+0x17: call to __this_cpu_preempt_check() leaves .noinstr.text section
vmlinux.o: warning: objtool: __context_tracking_enter()+0x2a: call to __this_cpu_preempt_check() leaves .noinstr.text section
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions