diff options
author | Jacob Shin <jacob.w.shin@gmail.com> | 2014-05-29 11:26:51 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2014-12-03 09:14:29 -0500 |
commit | 3741eb9f8c3be3ec59583881c1f49980dad844e0 (patch) | |
tree | e4744f42bbaf21c8ddf623f1b87202c1ae3e1a93 /tools/perf/Documentation | |
parent | d6d55f0b9d900673548515614b56ab55aa2c51f8 (diff) |
perf tools: allow user to specify hardware breakpoint bp_len
Currently bp_len is given a default value of 4. Allow user to override it:
$ perf stat -e mem:0x1000/8
^
bp_len
If no value is given, it will default to 4 as it did before.
Signed-off-by: Jacob Shin <jacob.w.shin@gmail.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: xiakaixu <xiakaixu@huawei.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-record.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt index af9a54ece024..81a20f21a3e6 100644 --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt | |||
@@ -33,12 +33,15 @@ OPTIONS | |||
33 | - a raw PMU event (eventsel+umask) in the form of rNNN where NNN is a | 33 | - a raw PMU event (eventsel+umask) in the form of rNNN where NNN is a |
34 | hexadecimal event descriptor. | 34 | hexadecimal event descriptor. |
35 | 35 | ||
36 | - a hardware breakpoint event in the form of '\mem:addr[:access]' | 36 | - a hardware breakpoint event in the form of '\mem:addr[/len][:access]' |
37 | where addr is the address in memory you want to break in. | 37 | where addr is the address in memory you want to break in. |
38 | Access is the memory access type (read, write, execute) it can | 38 | Access is the memory access type (read, write, execute) it can |
39 | be passed as follows: '\mem:addr[:[r][w][x]]'. | 39 | be passed as follows: '\mem:addr[:[r][w][x]]'. len is the range, |
40 | number of bytes from specified addr, which the breakpoint will cover. | ||
40 | If you want to profile read-write accesses in 0x1000, just set | 41 | If you want to profile read-write accesses in 0x1000, just set |
41 | 'mem:0x1000:rw'. | 42 | 'mem:0x1000:rw'. |
43 | If you want to profile write accesses in [0x1000~1008), just set | ||
44 | 'mem:0x1000/8:w'. | ||
42 | 45 | ||
43 | --filter=<filter>:: | 46 | --filter=<filter>:: |
44 | Event filter. | 47 | Event filter. |