Merge remote-tracking branch 'tip/perf/urgent' into perf/core
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 18 May 2012 16:13:33 +0000 (13:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 18 May 2012 16:13:33 +0000 (13:13 -0300)
Merge reason: We are going to queue up a dependent patch:

"perf tools: Move parse event automated tests to separated object"

That depends on:

commit e7c72d8
perf tools: Add 'G' and 'H' modifiers to event parsing

Conflicts:
tools/perf/builtin-stat.c

Conflicted with the recent 'perf_target' patches when checking the
result of perf_evsel open routines to see if a retry is needed to cope
with older kernels where the exclude guest/host perf_event_attr bits
were not used.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1  2 
Makefile
kernel/events/core.c
kernel/sched/core.c
kernel/trace/trace.c
kernel/trace/trace.h
tools/perf/Makefile
tools/perf/builtin-report.c
tools/perf/builtin-stat.c
tools/perf/builtin-test.c
tools/perf/util/header.c

diff --cc Makefile
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 0f4b51ae4be749c70748d0b4e13e8bd96d448665,1e5e9b270f5e75197880175065ed6fba681a8de4..62ae30d34fa6c14734a5f171b52e7b3bb0979257
@@@ -292,10 -295,19 +294,19 @@@ static int create_perf_stat_counter(str
  
        attr->inherit = !no_inherit;
  
-       if (perf_target__has_cpu(&target))
-               return perf_evsel__open_per_cpu(evsel, evsel_list->cpus,
-                                               group, group_fd);
+ retry:
+       if (exclude_guest_missing)
+               evsel->attr.exclude_guest = evsel->attr.exclude_host = 0;
 -      if (system_wide) {
++      if (perf_target__has_cpu(&target)) {
+               ret = perf_evsel__open_per_cpu(evsel, evsel_list->cpus,
 -                                              group, group_fd);
++                                             group, group_fd);
+               if (ret)
+                       goto check_ret;
+               return 0;
+       }
 -      if (!target_pid && !target_tid && (!group || evsel == first)) {
 +      if (!perf_target__has_task(&target) && (!group || evsel == first)) {
                attr->disabled = 1;
                attr->enable_on_exec = 1;
        }
Simple merge
Simple merge