perf tests shell: Skip trace+probe_vfs_getname.sh if built without trace support
authorTommi Rantala <tommi.t.rantala@nokia.com>
Fri, 15 Feb 2019 13:42:46 +0000 (15:42 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Feb 2019 16:42:26 +0000 (13:42 -0300)
commit83244772a4cf9490a54182be2f65f45d6b1a1ee8
treec684025d11c87ef533471d7cda989dcb8ac9c34f
parent43f4e6279f05eefac058a3524e184cecae463bfe
perf tests shell: Skip trace+probe_vfs_getname.sh if built without trace support

If perf was built without trace support, the trace+probe_vfs_getname.sh
'perf test' entry fails:

  # perf trace -h
  perf: 'trace' is not a perf-command. See 'perf --help'

  # perf test 64
  64: Check open filename arg using perf trace + vfs_getname: FAILED!

Check trace support, so that we'll skip the test in that case:

  # perf test 64
  64: Check open filename arg using perf trace + vfs_getname: Skip

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Hendrik Brueckner <brueckner@linux.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190215134253.11454-1-tt.rantala@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/lib/probe.sh
tools/perf/tests/shell/trace+probe_vfs_getname.sh