]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
Merge tag 'perf-urgent-for-mingo-4.12-20170704' of git://git.kernel.org/pub/scm/linux...
authorIngo Molnar <mingo@kernel.org>
Wed, 5 Jul 2017 07:10:37 +0000 (09:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Jul 2017 07:10:37 +0000 (09:10 +0200)
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>
tools/perf/util/evsel.c
tools/perf/util/unwind-libunwind.c

index 6f4882f8d61fb2e1f23000c581134f837722712c..87b43188667046c8a676b9bcbb3f2c7c315eb9bc 100644 (file)
@@ -273,6 +273,7 @@ struct perf_evsel *perf_evsel__new_cycles(void)
        struct perf_event_attr attr = {
                .type   = PERF_TYPE_HARDWARE,
                .config = PERF_COUNT_HW_CPU_CYCLES,
+               .exclude_kernel = 1,
        };
        struct perf_evsel *evsel;
 
index 6d542a4e0648eeabb0cb58eda0cefbfa03d1028a..8aef572d08890b3e051c604a83e99d31abf53778 100644 (file)
@@ -50,7 +50,7 @@ int unwind__prepare_access(struct thread *thread, struct map *map,
 
        if (!ops) {
                pr_err("unwind: target platform=%s is not supported\n", arch);
-               return -1;
+               return 0;
        }
 out_register:
        unwind__register_ops(thread, ops);