linux/tools/perf/tests
Arnaldo Carvalho de Melo 7a5a5ca5fe perf evsel: Introduce method to request IDs be used
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 to use perf_evlist__id2evsel
to find the right evsel.

We also need to set the PERF_SAMPLE_ID bit in
perf_event_attr.sample_type to ask for that id to be stashed in each
sample, so that we can demux it.

So add a perf_evsel__set_sample_id() method to do those two things in
one operation.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-1z4xcmbud30lamklfe80oopu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-12-10 15:21:30 -03:00
..
attr perf tools: Fix 'disabled' attribute config for record command 2012-11-14 16:52:03 -03:00
attr.c perf tests: Final cleanup for builtin-test move 2012-11-14 16:50:24 -03:00
attr.py perf tests: Move attr.py temp dir cleanup into finally section 2012-11-08 13:16:19 -03:00
builtin-test.c perf tests: Final cleanup for builtin-test move 2012-11-14 16:50:24 -03:00
dso-data.c perf tests: Check for mkstemp return value in dso-data test 2012-11-14 16:50:30 -03:00
evsel-roundtrip-name.c perf tests: Move perf_evsel__roundtrip_name_test into separate object 2012-11-14 16:49:56 -03:00
evsel-tp-sched.c perf tests: Move perf_evsel__tp_sched_test into separate object 2012-11-14 16:50:02 -03:00
mmap-basic.c perf evsel: Introduce method to request IDs be used 2012-12-10 15:21:30 -03:00
open-syscall-all-cpus.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
open-syscall-tp-fields.c perf tools: Fix attributes for '{}' defined event groups 2012-11-14 16:51:50 -03:00
open-syscall.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
parse-events.c perf evsel: Convert to _is_group_leader method 2012-12-09 08:46:06 -03:00
perf-record.c perf evsel: Update sample_size when setting sample_type bits 2012-12-10 14:53:43 -03:00
pmu.c perf tests: Move pmu tests into separate object 2012-11-14 16:50:19 -03:00
rdpmc.c perf tests: Move test__rdpmc into separate object 2012-11-14 16:49:50 -03:00
tests.h perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
vmlinux-kallsyms.c perf tests: Move test__vmlinux_matches_kallsyms into separate object 2012-11-14 16:48:35 -03:00