]> git.baikalelectronics.ru Git - kernel.git/commit
jump_label: Do not profile branch annotations
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 11 Dec 2020 21:37:54 +0000 (16:37 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Jan 2021 10:08:56 +0000 (11:08 +0100)
commit6a3358a349001fcd4bb626154bdca1514c5303e5
tree828a30d85916fdf4a99202b3e89d37416d8684c1
parent069d3c08007b2d4aad1145fea0f48e9e571a22b3
jump_label: Do not profile branch annotations

While running my branch profiler that checks for incorrect "likely" and
"unlikely"s around the kernel, there's a large number of them that are
incorrect due to being "static_branches".

As static_branches are rather special, as they are likely or unlikely for
other reasons than normal annotations are used for, there's no reason to
have them be profiled.

Expose the "unlikely_notrace" and "likely_notrace" so that the
static_branch can use them, and have them be ignored by the branch
profilers.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201211163754.585174b9@gandalf.local.home
include/linux/compiler.h
include/linux/jump_label.h