kernel-fxtec-pro1x/tools/perf/tests
Namhyung Kim f8ebb0cdf3 perf test: Add a test case for hists__{match,link}
As they are used from diff and event group report, add a test case to
verify their behaviors.

In this test I made a fake machine and two evsel.  Each evsel got 10
samples (so hist entries) - 5 are common and the rests are not.  So
after hists__match() both of them will have 5 entries with pair set.

And the second evsel has a collapsed entry so that the total number is 9
- I made it in order to simulate more realistic case.  Thus after
hists__link the first entry will have 14 entries - 5 are common (w/
pair), 5 are unmatch (w/o pair) and 4 are dummy (w/ pair).  And the
second entry will have 9 entries all have its pair.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1355128197-18193-5-git-send-email-namhyung@kernel.org
[ committer note: fixed up clashes with cset that moved methods to machine.h ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-24 16:40:07 -03:00
..
attr perf evsel: No need to always ask for PERF_FORMAT_TOTAL_TIME_{ENABLED,RUNNING} 2012-12-11 17:17:17 -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 test: Add a test case for hists__{match,link} 2013-01-24 16:40:07 -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
hists_link.c perf test: Add a test case for hists__{match,link} 2013-01-24 16:40:07 -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 evlist: Set the leader in the perf_evlist__config method 2012-12-11 17:19:01 -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: Add a test case for hists__{match,link} 2013-01-24 16:40:07 -03:00
vmlinux-kallsyms.c perf tests: Move test__vmlinux_matches_kallsyms into separate object 2012-11-14 16:48:35 -03:00