Skip to content

trace: profiling branches

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4trace: remove extra assign in branch checkinclude/linux/compiler.h+0 -20 replies
2/4trace: consolidate unlikely and likely profilerinclude/asm-generic/vmlinux.lds.h include/linux/compiler.h kernel/trace/Kconfig +1 more+22 -530 replies
3/4trace: branch profiling should not print percent without datakernel/trace/trace_branch.c+7 -30 replies
4/4trace: profile all if conditionalsinclude/asm-generic/vmlinux.lds.h include/linux/compiler.h kernel/trace/Kconfig +1 more+93 -511 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] trace: profiling branches

Ingo,

The following patches clean up the unlikely/likely tracer. Namely it consolidates it into a single file called "profile_annotated_branch".

It also adds a new profiler. A true branch profiler that profiles all if() statements where the conditional is not a constant. It puts a bit of overhead on the system, but the results seem pretty interesting. The results are placed in "profile_branch".

Anyway, enjoy ;-)

The following patches are in:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git

branch: tip/devel

Steven Rostedt (4):
trace: remove extra assign in branch check
trace: consolidate unlikely and likely profiler
trace: branch profiling should not print percent without data
trace: profile all if conditionals

----

 include/asm-generic/vmlinux.lds.h |   20 +++++++----
 include/linux/compiler.h          |   64 +++++++++++++++++++++------------
 kernel/trace/Kconfig              |   19 +++++++++-
 kernel/trace/trace_branch.c       |   72 +++++++++++++++++++++++-------------
 4 files changed, 117 insertions(+), 58 deletions(-)