aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-02-01 11:23:45 +0100
committerBen Hutchings <ben@decadent.org.uk>2013-09-10 01:57:05 +0100
commit6c660b2a49d3ac2f09b75002aff43077b7ef9de6 (patch)
treefd73e2e7e64c78b08c25bbb09c978e6616354edf /tools/perf/util/map.c
parent3bc95d6459a7c185f814ac2c8ba0ccda351cdc08 (diff)
downloadkernel_samsung_smdk4412-6c660b2a49d3ac2f09b75002aff43077b7ef9de6.zip
kernel_samsung_smdk4412-6c660b2a49d3ac2f09b75002aff43077b7ef9de6.tar.gz
kernel_samsung_smdk4412-6c660b2a49d3ac2f09b75002aff43077b7ef9de6.tar.bz2
perf: Fix event group context move
commit 0231bb5336758426b44ccd798ccd3c5419c95d58 upstream. When we have group with mixed events (hw/sw) we want to end up with group leader being in hw context. So if group leader is initialy sw event, we move all the events under hw context. The move is done for each event by removing it from its context and adding it back into proper one. As a part of the removal the event is automatically disabled, which is not what we want at this stage of creating groups. The fix is to initialize event state after removal from sw context. This fix resulted from the following discussion: http://thread.gmane.org/gmane.linux.kernel.perf.user/1144 Reported-by: Andreas Hollmann <hollmann@in.tum.de> Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Cc: Vince Weaver <vince@deater.net> Link: http://lkml.kernel.org/r/1359714225-4231-1-git-send-email-jolsa@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'tools/perf/util/map.c')
0 files changed, 0 insertions, 0 deletions