kernel-fxtec-pro1x/tools/perf/tests
Namhyung Kim 69bcb019fc perf tools: Introduce struct hist_entry_iter
There're some duplicate code when adding hist entries.  They are
different in that some have branch info or mem info but generally do
same thing.  So introduce new struct hist_entry_iter and add callbacks
to customize each case in general way.

The new perf_evsel__add_entry() function will look like:

  iter->prepare_entry();
  iter->add_single_entry();

  while (iter->next_entry())
    iter->add_next_entry();

  iter->finish_entry();

This will help further work like the cumulative callchain patchset.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arun Sharma <asharma@fb.com>
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1401335910-16832-3-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
2014-06-01 14:34:55 +02:00
..
attr perf record: Make per-cpu mmaps the default. 2013-11-27 14:58:36 -03:00
attr.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
attr.py perf tests: Make attr script test event cpu 2013-03-15 13:06:00 -03:00
bp_signal.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
bp_signal_overflow.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
builtin-test.c perf tests: Add a testcase for histogram output sorting 2014-05-21 11:45:37 +02:00
code-reading.c perf tools: Use tid for finding thread 2014-05-12 11:09:50 +02:00
dso-data.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
dwarf-unwind.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
evsel-roundtrip-name.c perf evlist: Introduce evlist__for_each() & friends 2014-01-13 10:06:25 -03:00
evsel-tp-sched.c perf tools: Remove usage of trace_sched_wakeup(.success) 2014-05-12 21:13:44 +02:00
hists_common.c perf tests: Add a testcase for histogram output sorting 2014-05-21 11:45:37 +02:00
hists_common.h perf tests: Factor out print_hists_*() 2014-05-21 11:45:37 +02:00
hists_filter.c perf tools: Introduce struct hist_entry_iter 2014-06-01 14:34:55 +02:00
hists_link.c perf tests: Add a testcase for histogram output sorting 2014-05-21 11:45:37 +02:00
hists_output.c perf tools: Introduce struct hist_entry_iter 2014-06-01 14:34:55 +02:00
keep-tracking.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
make perf tests: Add static build make test 2014-04-30 16:48:57 +02:00
mmap-basic.c perf evlist: Introduce evlist__for_each() & friends 2014-01-13 10:06:25 -03:00
mmap-thread-lookup.c perf tests: Add thread maps lookup automated tests 2014-04-28 13:42:52 +02:00
open-syscall-all-cpus.c perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
open-syscall-tp-fields.c perf record: Rename --no-delay to --no-buffering 2014-01-14 17:57:04 -03:00
open-syscall.c perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
parse-events.c perf tests: Add a test of kvm-390: trace event 2014-04-29 14:30:43 +02:00
parse-no-sample-id-all.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
perf-record.c perf record: Rename --no-delay to --no-buffering 2014-01-14 17:57:04 -03:00
perf-targz-src-pkg perf tools: Add test for building detached source tarballs 2014-01-13 10:06:26 -03:00
perf-time-to-tsc.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
pmu.c perf tests: Use ARRAY_SIZE() were applicable 2013-01-24 16:40:51 -03:00
python-use.c perf tests: Check python path on attr and binding test 2013-01-24 16:40:10 -03:00
rdpmc.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
sample-parsing.c tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
sw-clock.c perf evlist: Auto unmap on destructor 2014-01-13 10:06:22 -03:00
task-exit.c perf evlist: Auto unmap on destructor 2014-01-13 10:06:22 -03:00
tests.h perf tests: Add a testcase for histogram output sorting 2014-05-21 11:45:37 +02:00
thread-mg-share.c perf tests: Add map groups sharing with thread object test 2014-04-28 13:43:40 +02:00
vmlinux-kallsyms.c perf tests: No need to set up ref_reloc_sym 2014-01-31 17:21:52 -03:00