* [PERF_EVENT 3.11] Group Multiplexing not Working Properly
@ 2014-06-24 17:36 Luís Taniça
2014-06-27 14:17 ` Stephane Eranian
0 siblings, 1 reply; 2+ messages in thread
From: Luís Taniça @ 2014-06-24 17:36 UTC (permalink / raw)
To: linux-kernel; +Cc: peterz, eranian
Hi,
I am trying to configure 8 events in a machine which supports only 4 (so, using multiplexing). I tried different approaches:
1) Configure 8 events independently (works as expected)
2) Configure 2 event-sets of 4 events each in counting mode (works as expected)
3) Configure 2 event-sets of 4 events each in sampling mode (not working right)
In case 3) I also tried different approaches:
3.a) 1 ring-buffer for each event-set and a callback for the POLL signal
- only the first ring-buffer was detecting samples
- the second ring-buffer was empty
3.b) 1 ring-buffer shared between event-sets (using PERF_EVENT_IOC_SET_OUTPUT)
- both event-sets were writing to the ring-buffer
- 1st event-set only writes 2 samples while 2nd event-set writes like 20+ samples
- samples from 1st event-set report time_enabled=time_running while samples from 2nd don’t
Moreover, in both cases the wakeup_events parameter is not working.
I believe there must be some programming bugs in perf_event while profiling in sampling mode with multiple event-sets (groups).
Regards,
matallui
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PERF_EVENT 3.11] Group Multiplexing not Working Properly
2014-06-24 17:36 [PERF_EVENT 3.11] Group Multiplexing not Working Properly Luís Taniça
@ 2014-06-27 14:17 ` Stephane Eranian
0 siblings, 0 replies; 2+ messages in thread
From: Stephane Eranian @ 2014-06-27 14:17 UTC (permalink / raw)
To: Luís Taniça; +Cc: LKML, Peter Zijlstra
Hi,
On Tue, Jun 24, 2014 at 7:36 PM, Luís Taniça <matallui@gmail.com> wrote:
> Hi,
>
> I am trying to configure 8 events in a machine which supports only 4 (so, using multiplexing). I tried different approaches:
>
> 1) Configure 8 events independently (works as expected)
> 2) Configure 2 event-sets of 4 events each in counting mode (works as expected)
> 3) Configure 2 event-sets of 4 events each in sampling mode (not working right)
>
What do it mean 'not working' in 3)?
Are you using perf record or your own code?
I think it would help if you could share the exact setup, i.e., the various
struct perf_event_attr structs.
> In case 3) I also tried different approaches:
>
> 3.a) 1 ring-buffer for each event-set and a callback for the POLL signal
> - only the first ring-buffer was detecting samples
> - the second ring-buffer was empty
>
> 3.b) 1 ring-buffer shared between event-sets (using PERF_EVENT_IOC_SET_OUTPUT)
> - both event-sets were writing to the ring-buffer
> - 1st event-set only writes 2 samples while 2nd event-set writes like 20+ samples
> - samples from 1st event-set report time_enabled=time_running while samples from 2nd don’t
>
> Moreover, in both cases the wakeup_events parameter is not working.
> I believe there must be some programming bugs in perf_event while profiling in sampling mode with multiple event-sets (groups).
>
> Regards,
> matallui
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-27 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 17:36 [PERF_EVENT 3.11] Group Multiplexing not Working Properly Luís Taniça
2014-06-27 14:17 ` Stephane Eranian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).