diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-07-05 03:10:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-07-05 03:10:37 -0400 |
commit | 524b62fdbef54e8afa37ec8bcdf3ff5723ea160f (patch) | |
tree | a472c2af295f14e0053b4515624ee89e0b848a46 | |
parent | 4422d80ed7d4bdb2d6e9fb890c66c3d9250ba694 (diff) | |
parent | 1934adf78e33fa69570a763c7ac5353212416bb0 (diff) |
Merge tag 'perf-urgent-for-mingo-4.12-20170704' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
User visible changes:
- Fix max attr.precise_ip probing to make perf use the best cycles:p
available in the processor for non root users (Arnaldo Carvalho de Melo)
- Fix processing of MMAP events for 32-bit binaries on 64-bit systems
when unwind support is not fully integrated, fixing DSO and symbol
resolution (Jiri Olsa)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | tools/perf/util/evsel.c | 1 | ||||
-rw-r--r-- | tools/perf/util/unwind-libunwind.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6f4882f8d61f..87b431886670 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -273,6 +273,7 @@ struct perf_evsel *perf_evsel__new_cycles(void) | |||
273 | struct perf_event_attr attr = { | 273 | struct perf_event_attr attr = { |
274 | .type = PERF_TYPE_HARDWARE, | 274 | .type = PERF_TYPE_HARDWARE, |
275 | .config = PERF_COUNT_HW_CPU_CYCLES, | 275 | .config = PERF_COUNT_HW_CPU_CYCLES, |
276 | .exclude_kernel = 1, | ||
276 | }; | 277 | }; |
277 | struct perf_evsel *evsel; | 278 | struct perf_evsel *evsel; |
278 | 279 | ||
diff --git a/tools/perf/util/unwind-libunwind.c b/tools/perf/util/unwind-libunwind.c index 6d542a4e0648..8aef572d0889 100644 --- a/tools/perf/util/unwind-libunwind.c +++ b/tools/perf/util/unwind-libunwind.c | |||
@@ -50,7 +50,7 @@ int unwind__prepare_access(struct thread *thread, struct map *map, | |||
50 | 50 | ||
51 | if (!ops) { | 51 | if (!ops) { |
52 | pr_err("unwind: target platform=%s is not supported\n", arch); | 52 | pr_err("unwind: target platform=%s is not supported\n", arch); |
53 | return -1; | 53 | return 0; |
54 | } | 54 | } |
55 | out_register: | 55 | out_register: |
56 | unwind__register_ops(thread, ops); | 56 | unwind__register_ops(thread, ops); |