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.
It's probably missing many command line option combinations worth testing. I wanted to check with others for more ideas before diving into this. You can check this also here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/linux.git perf/attr_tests4 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> Signed-off-by: Jiri Olsa <jo...@redhat.com> --- tools/perf/Makefile | 1 + tools/perf/builtin-test.c | 4 + tools/perf/perf.c | 2 + tools/perf/perf.h | 11 ++ tools/perf/util/test-attr.c | 142 ++++++++++++++++++++++++++ tools/perf/util/test-attr.py | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/test-attr/base-record | 39 ++++++++ tools/perf/util/test-attr/base-stat | 39 ++++++++ tools/perf/util/test-attr/test-record-basic | 5 + tools/perf/util/test-attr/test-record-count | 8 ++ tools/perf/util/test-attr/test-record-freq | 6 ++ tools/perf/util/test-attr/test-record-graph-default | 6 ++ tools/perf/util/test-attr/test-record-graph-dwarf | 6 ++ tools/perf/util/test-attr/test-record-graph-fp | 6 ++ tools/perf/util/test-attr/test-record-group | 17 ++++ tools/perf/util/test-attr/test-record-no-inherit | 7 ++ tools/perf/util/test-attr/test-record-no-samples | 6 ++ tools/perf/util/test-attr/test-record-period | 7 ++ tools/perf/util/test-attr/test-stat-basic | 6 ++ tools/perf/util/test-attr/test-stat-group | 15 +++ tools/perf/util/test-attr/test-stat-no-inherit | 7 ++ 21 files changed, 612 insertions(+) -- 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/