diff options
author | Roberto Agostino Vitillo <[email protected]> | 2012-02-09 23:21:02 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-03-09 08:26:05 +0100 |
commit | bdfebd848f2a14e639031a0b0e61d7c7ee5e5fd2 (patch) | |
tree | 8ebcc7afda6b506dcd22d44bccdbd925c02b6768 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b5387528f31d98acedf06e930554b563d87e2383 (diff) |
perf record: Add support for sampling taken branch
This patch adds a new option to enable taken branch stack
sampling, i.e., leverage the PERF_SAMPLE_BRANCH_STACK feature
of perf_events.
There is a new option to active this mode: -b.
It is possible to pass a set of filters to select the type of
branches to sample.
The following filters are available:
- any : any type of branches
- any_call : any function call or system call
- any_ret : any function return or system call return
- any_ind : any indirect branch
- u: only when the branch target is at the user level
- k: only when the branch target is in the kernel
- hv: only when the branch target is in the hypervisor
Filters can be combined by passing a comma separated list
to the option:
$ perf record -b any_call,u -e cycles:u branchy
Signed-off-by: Roberto Agostino Vitillo <[email protected]>
Signed-off-by: Stephane Eranian <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions