Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146038
b: refs/heads/master
c: 9ae5b87
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 20, 2009
1 parent a25d87a commit 46cd5c6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3b9aae16219aaeca2dd5a9ca69f7a10faa063df
refs/heads/master: 9ae5b8790037d05d32746f521af146c32089bfec
39 changes: 33 additions & 6 deletions trunk/kernel/trace/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,36 @@ config BOOT_TRACER
to enable this on bootup.

config TRACE_BRANCH_PROFILING
bool "Trace likely/unlikely profiler"
bool
select TRACING

choice
prompt "Branch Profiling"
default BRANCH_PROFILE_NONE
help
The branch profiling is a software profiler. It will add hooks
into the C conditionals to test which path a branch takes.

The likely/unlikely profiler only looks at the conditions that
are annotated with a likely or unlikely macro.

The "all branch" profiler will profile every if statement in the
kernel. This profiler will also enable the likely/unlikely
profiler as well.

Either of the above profilers add a bit of overhead to the system.
If unsure choose "No branch profiling".

config BRANCH_PROFILE_NONE
bool "No branch profiling"
help
No branch profiling. Branch profiling adds a bit of overhead.
Only enable it if you want to analyse the branching behavior.
Otherwise keep it disabled.

config PROFILE_ANNOTATED_BRANCHES
bool "Trace likely/unlikely profiler"
select TRACE_BRANCH_PROFILING
help
This tracer profiles all the the likely and unlikely macros
in the kernel. It will display the results in:
Expand All @@ -223,23 +251,22 @@ config TRACE_BRANCH_PROFILING
Note: this will add a significant overhead, only turn this
on if you need to profile the system's use of these macros.

Say N if unsure.

config PROFILE_ALL_BRANCHES
bool "Profile all if conditionals"
depends on TRACE_BRANCH_PROFILING
select TRACE_BRANCH_PROFILING
help
This tracer profiles all branch conditions. Every if ()
taken in the kernel is recorded whether it hit or miss.
The results will be displayed in:

/debugfs/tracing/profile_branch

This option also enables the likely/unlikely profiler.

This configuration, when enabled, will impose a great overhead
on the system. This should only be enabled when the system
is to be analyzed

Say N if unsure.
endchoice

config TRACING_BRANCHES
bool
Expand Down

0 comments on commit 46cd5c6

Please sign in to comment.