perf tests: Add tests of new pinned modifier
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 6 Aug 2013 13:28:06 +0000 (23:28 +1000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Aug 2013 20:35:40 +0000 (17:35 -0300)
commitc9ee780f2736b7a149658b0cd8c8389da23e190a
tree2f56fed358edb74e49cc6fc0c0a974deac688597
parente9a7c414477d20c3cc56f90f29c35b06f0f15e25
perf tests: Add tests of new pinned modifier

Add a negative test to test__checkevent_pmu_events() to get lots of
coverage of the negative case, ie. when the modifier is not specified.

Add a test of a single event, and of the group case.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1375795686-4226-2-git-send-email-michael@ellerman.id.au
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/parse-events.c