]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
perf tests: Add valid callback for parse-events test
authorJiri Olsa <jolsa@kernel.org>
Mon, 11 Jun 2018 09:34:22 +0000 (11:34 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitee92995b4c67a88acdd31c683d9be3ceff07ed80
treec6c63ed3383b7a509e4eeb53aa29d730ac541352
parent55993b383ad18e098bd43ec643b15fa078f4f5fe
perf tests: Add valid callback for parse-events test

BugLink: https://bugs.launchpad.net/bugs/1839036
Adding optional 'valid' callback for events tests in parse-events
object, so we don't try to parse PMUs, which are not supported.

Following line is displayed for skipped test:

  running test 52 'intel_pt//u'... SKIP

Committer note:

Use named initializers in the struct evlist_test variable to avoid
breaking the build on centos:5, 6 and others with a similar gcc:

  cc1: warnings being treated as errors
  tests/parse-events.c: In function 'test_pmu_events':
  tests/parse-events.c:1817: error: missing initializer
  tests/parse-events.c:1817: error: (near initialization for 'e.type')

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: http://lkml.kernel.org/r/20180611093422.1005-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
(backported from commit 16ddcfbf7f3d07aa781e26b39f2c28636a4ed2fd)
[ kleber: skipped the intel_pt chunk as b3f58c8da64b (perf tests
  parse-events: Add intel_pt parse test) has not been applied yet ]
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/perf/tests/parse-events.c