diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-12-08 05:50:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-12-08 05:50:24 -0500 |
commit | 2a2662bf88e693d477ef08351d03934f7bc0b51c (patch) | |
tree | cef243df159cc12ada7e97998a253df7c0abb2a2 /tools/perf/builtin-trace.c | |
parent | b2776bf7149bddd1f4161f14f79520f17fc1d71d (diff) | |
parent | 36748b9518a2437beffe861b47dff6d12b736b3f (diff) |
Merge branch 'perf/core-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks into perf/hw_breakpoints
Pull AMD range breakpoints support from Frederic Weisbecker:
" - Extend breakpoint tools and core to support address range through perf
event with initial backend support for AMD extended breakpoints.
Syntax is:
perf record -e mem:addr/len:type
For example set write breakpoint from 0x1000 to 0x1200 (0x1000 + 512)
perf record -e mem:0x1000/512:w
- Clean up a bit breakpoint code validation
It has been acked by Jiri and Oleg. "
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index fb126459b134..83a4835c8118 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -1846,7 +1846,7 @@ static int trace__pgfault(struct trace *trace, | |||
1846 | if (trace->summary_only) | 1846 | if (trace->summary_only) |
1847 | return 0; | 1847 | return 0; |
1848 | 1848 | ||
1849 | thread__find_addr_location(thread, trace->host, cpumode, MAP__FUNCTION, | 1849 | thread__find_addr_location(thread, cpumode, MAP__FUNCTION, |
1850 | sample->ip, &al); | 1850 | sample->ip, &al); |
1851 | 1851 | ||
1852 | trace__fprintf_entry_head(trace, thread, 0, sample->time, trace->output); | 1852 | trace__fprintf_entry_head(trace, thread, 0, sample->time, trace->output); |
@@ -1859,11 +1859,11 @@ static int trace__pgfault(struct trace *trace, | |||
1859 | 1859 | ||
1860 | fprintf(trace->output, "] => "); | 1860 | fprintf(trace->output, "] => "); |
1861 | 1861 | ||
1862 | thread__find_addr_location(thread, trace->host, cpumode, MAP__VARIABLE, | 1862 | thread__find_addr_location(thread, cpumode, MAP__VARIABLE, |
1863 | sample->addr, &al); | 1863 | sample->addr, &al); |
1864 | 1864 | ||
1865 | if (!al.map) { | 1865 | if (!al.map) { |
1866 | thread__find_addr_location(thread, trace->host, cpumode, | 1866 | thread__find_addr_location(thread, cpumode, |
1867 | MAP__FUNCTION, sample->addr, &al); | 1867 | MAP__FUNCTION, sample->addr, &al); |
1868 | 1868 | ||
1869 | if (al.map) | 1869 | if (al.map) |