[PATCH 28/37] perf evsel: Introduce method to request IDs be used

2012-12-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When mmaping multiple events we need to find the right evsel that matches an event in the ring buffer. For that we need to set the PERF_FORMAT_ID bit in perf_event_attr.read_format so that when we read the event fds we get that id to then hash it and be able later

[PATCH 28/37] perf evsel: Introduce method to request IDs be used

2012-12-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com When mmaping multiple events we need to find the right evsel that matches an event in the ring buffer. For that we need to set the PERF_FORMAT_ID bit in perf_event_attr.read_format so that when we read the event fds we get that id to then hash it