hi, this code tests the link between perf stat/record command line options and final perf_event_attr struct values. Also it tests the group fd linkage.
Plus moving test related objects under 'test' directory. Attached patches: 01/25 perf tools: Remove BINDIR define from exec_cmd.o 02/25 perf tests: Move test objects into 'tests' directory 03/25 perf tests: Add framework for automated 04/25 perf tests: Add attr record basic test 05/25 perf tests: Add attr record group test 06/25 perf tests: Add attr record event syntax group test 07/25 perf tests: Add attr record freq test 08/25 perf tests: Add attr record count test 09/25 perf tests: Add attr record graph test 10/25 perf tests: Add attr record period test 11/25 perf tests: Add attr record no samples test 12/25 perf tests: Add attr record no-inherit test 13/25 perf tests: Add attr record data test 14/25 perf tests: Add attr record raw test 15/25 perf tests: Add attr record no delay test 16/25 perf tests: Add attr record branch any test 17/25 perf tests: Add attr record branch filter tests 18/25 perf tests: Add attr stat basic test 19/25 perf tests: Add attr stat no-inherit test 20/25 perf tests: Add attr stat group test 21/25 perf tests: Add attr stat event syntax group test 22/25 perf tests: Add attr stat default test 23/25 perf tests: Add attr stat default test 24/25 perf tests: Add attr tests under builtin test command 25/25 perf tests: Add documentation for attr tests Also available here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/linux.git perf/test4 thanks, jirka Cc: Arnaldo Carvalho de Melo <a...@ghostprotocols.net> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Ingo Molnar <mi...@elte.hu> Cc: Paul Mackerras <pau...@samba.org> Cc: Corey Ashford <cjash...@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweis...@gmail.com> --- tools/perf/Makefile | 20 +- tools/perf/builtin-test.c | 1559 --------------------------------------------------------------------- tools/perf/perf.c | 2 + tools/perf/perf.h | 17 +- tools/perf/tests/attr.c | 171 ++++++++ tools/perf/tests/attr.py | 313 ++++++++++++++ tools/perf/tests/attr/README | 64 +++ tools/perf/tests/attr/base-record | 40 ++ tools/perf/tests/attr/base-stat | 40 ++ tools/perf/tests/attr/test-record-basic | 5 + tools/perf/tests/attr/test-record-branch-any | 8 + tools/perf/tests/attr/test-record-branch-filter-any | 8 + tools/perf/tests/attr/test-record-branch-filter-any_call | 8 + tools/perf/tests/attr/test-record-branch-filter-any_ret | 8 + tools/perf/tests/attr/test-record-branch-filter-hv | 8 + tools/perf/tests/attr/test-record-branch-filter-ind_call | 8 + tools/perf/tests/attr/test-record-branch-filter-k | 8 + tools/perf/tests/attr/test-record-branch-filter-u | 8 + tools/perf/tests/attr/test-record-count | 8 + tools/perf/tests/attr/test-record-data | 8 + tools/perf/tests/attr/test-record-freq | 6 + tools/perf/tests/attr/test-record-graph-default | 6 + tools/perf/tests/attr/test-record-graph-dwarf | 10 + tools/perf/tests/attr/test-record-graph-fp | 6 + tools/perf/tests/attr/test-record-group | 17 + tools/perf/tests/attr/test-record-group1 | 20 + tools/perf/tests/attr/test-record-no-delay | 9 + tools/perf/tests/attr/test-record-no-inherit | 7 + tools/perf/tests/attr/test-record-no-samples | 6 + tools/perf/tests/attr/test-record-period | 7 + tools/perf/tests/attr/test-record-raw | 7 + tools/perf/tests/attr/test-stat-basic | 6 + tools/perf/tests/attr/test-stat-default | 64 +++ tools/perf/tests/attr/test-stat-detailed-1 | 101 +++++ tools/perf/tests/attr/test-stat-detailed-2 | 155 +++++++ tools/perf/tests/attr/test-stat-detailed-3 | 173 ++++++++ tools/perf/tests/attr/test-stat-group | 15 + tools/perf/tests/attr/test-stat-group1 | 17 + tools/perf/tests/attr/test-stat-no-inherit | 7 + tools/perf/tests/builtin-test.c | 1563 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/tests/dso-data.c | 153 +++++++ tools/perf/tests/parse-events.c | 1116 ++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/dso-test-data.c | 153 ------- tools/perf/util/parse-events-test.c | 1116 -------------------------------------------------- 44 files changed, 4216 insertions(+), 2835 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/