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>
This commit is contained in:
Jiri Olsa 2017-07-03 16:50:24 +02:00 committed by Arnaldo Carvalho de Melo
parent 44fed277f8
commit a72fe0afa1
24 changed files with 24 additions and 0 deletions

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -C 0 kill >/dev/null 2>&1
ret = 1
[event:base-record]
cpu=0

View File

@ -1,5 +1,6 @@
[config]
command = record
args = kill >/dev/null 2>&1
ret = 1
[event:base-record]

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -b kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j any kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j any_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j any_ret kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j hv kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j ind_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j k kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -j u kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -c 123 kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=123

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -d kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -F 100 kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=100

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -g kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=295

View File

@ -1,6 +1,7 @@
[config]
command = record
args = --call-graph dwarf -- kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=45359

View File

@ -1,6 +1,7 @@
[config]
command = record
args = --call-graph fp kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=295

View File

@ -1,6 +1,7 @@
[config]
command = record
args = --group -e cycles,instructions kill >/dev/null 2>&1
ret = 1
[event-1:base-record]
fd=1

View File

@ -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

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -e '{cycles,instructions}' kill >/dev/null 2>&1
ret = 1
[event-1:base-record]
fd=1

View File

@ -1,6 +1,7 @@
[config]
command = record
args = --no-buffering kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -i kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=263

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -n kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=0

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -c 100 -P kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=100

View File

@ -1,6 +1,7 @@
[config]
command = record
args = -R kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000