Re: [PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-11 Thread Namhyung Kim
Hi Peter, On Mon, 11 Mar 2013 11:01:14 +0100, Peter Zijlstra wrote: > On Thu, 2013-03-07 at 13:19 +0900, Namhyung Kim wrote: >> From: Namhyung Kim >> >> There's a problem with mixed hw/sw group when the leader is a software >> event. For instance: > >> Jiri's patch 0231bb533675 ("perf: Fix

Re: [PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-11 Thread Peter Zijlstra
On Thu, 2013-03-07 at 13:19 +0900, Namhyung Kim wrote: > From: Namhyung Kim > > There's a problem with mixed hw/sw group when the leader is a software > event. For instance: > Jiri's patch 0231bb533675 ("perf: Fix event group context move") fixed > a part of problem but there's a devil still..

Re: [PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-11 Thread Peter Zijlstra
On Thu, 2013-03-07 at 13:19 +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com There's a problem with mixed hw/sw group when the leader is a software event. For instance: Jiri's patch 0231bb533675 (perf: Fix event group context move) fixed a part of problem but there's a

Re: [PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-11 Thread Namhyung Kim
Hi Peter, On Mon, 11 Mar 2013 11:01:14 +0100, Peter Zijlstra wrote: On Thu, 2013-03-07 at 13:19 +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com There's a problem with mixed hw/sw group when the leader is a software event. For instance: Jiri's patch 0231bb533675 (perf:

[PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-06 Thread Namhyung Kim
From: Namhyung Kim There's a problem with mixed hw/sw group when the leader is a software event. For instance: $ perf stat -e '{task-clock,cycles,faults}' sleep 1 Performance counter stats for 'sleep 1': 0.273436 task-clock#0.000 CPUs utilized

[PATCH 2/2] perf: Fix mixed hw/sw event group initialization

2013-03-06 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com There's a problem with mixed hw/sw group when the leader is a software event. For instance: $ perf stat -e '{task-clock,cycles,faults}' sleep 1 Performance counter stats for 'sleep 1': 0.273436 task-clock#0.000 CPUs