summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/attr/test-record-group-sampling
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2017-07-03 16:50:24 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-18 23:14:19 -0300
commita72fe0afa18abd8d05d26944b32850775cb6c941 (patch)
tree28f9fdb0a1dcfe0866a78bd9e486f7f2a882df67 /tools/perf/tests/attr/test-record-group-sampling
parent44fed277f81ba22e3f2fbcf1501c3b14aeb9f8e4 (diff)
downloadlinux-a72fe0afa18abd8d05d26944b32850775cb6c941.tar.gz
linux-a72fe0afa18abd8d05d26944b32850775cb6c941.tar.bz2
linux-a72fe0afa18abd8d05d26944b32850775cb6c941.zip
perf tests attr: Add proper return values
The record command now properly returns the status of the tracee if there's any. We need to properly set the expected return value of the tracee in the attr tests. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Thomas Richter <tmricht@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/20170703145030.12903-10-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/attr/test-record-group-sampling')
-rw-r--r--tools/perf/tests/attr/test-record-group-sampling1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/attr/test-record-group-sampling b/tools/perf/tests/attr/test-record-group-sampling
index 658f5d60c873..ef59afd6d635 100644
--- a/tools/perf/tests/attr/test-record-group-sampling
+++ b/tools/perf/tests/attr/test-record-group-sampling
@@ -1,6 +1,7 @@
[config]
command = record
args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1
+ret = 1
[event-1:base-record]
fd=1