summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/hists_common.h
Commit message (Collapse)AuthorAgeFilesLines
* perf tests: Define and use symbolic names for fake symbolsNamhyung Kim2014-06-011-2/+30
| | | | | | | | | | | | In various histogram test cases, fake symbols are used as raw numbers. Define macros for each pid, map, symbols so that it can increase readability somewhat. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Arun Sharma <asharma@fb.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/r/1401335910-16832-27-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
* perf tests: Factor out print_hists_*()Namhyung Kim2014-05-211-0/+3
| | | | | | | | | Those print helper functions can be reused by later hist test cases so factor them out to a common location. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1400480762-22852-20-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
* perf tests: Factor out fake_setup_machine()Namhyung Kim2014-04-281-0/+44
The fake_setup_machine() is for setting up a environment for testing various hists operations. As it'll be used for other test cases it'd better factoring it out. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1398396494-12811-1-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
OpenPOWER on IntegriCloud