Commit a72fe0af authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

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: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 44fed277
[config] [config]
command = record command = record
args = -C 0 kill >/dev/null 2>&1 args = -C 0 kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
cpu=0 cpu=0
......
[config] [config]
command = record command = record
args = kill >/dev/null 2>&1 args = kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
[config] [config]
command = record command = record
args = -b kill >/dev/null 2>&1 args = -b kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j any kill >/dev/null 2>&1 args = -j any kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j any_call kill >/dev/null 2>&1 args = -j any_call kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j any_ret kill >/dev/null 2>&1 args = -j any_ret kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j hv kill >/dev/null 2>&1 args = -j hv kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j ind_call kill >/dev/null 2>&1 args = -j ind_call kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j k kill >/dev/null 2>&1 args = -j k kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -j u kill >/dev/null 2>&1 args = -j u kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -c 123 kill >/dev/null 2>&1 args = -c 123 kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=123 sample_period=123
......
[config] [config]
command = record command = record
args = -d kill >/dev/null 2>&1 args = -d kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -F 100 kill >/dev/null 2>&1 args = -F 100 kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=100 sample_period=100
[config] [config]
command = record command = record
args = -g kill >/dev/null 2>&1 args = -g kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_type=295 sample_type=295
[config] [config]
command = record command = record
args = --call-graph dwarf -- kill >/dev/null 2>&1 args = --call-graph dwarf -- kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_type=45359 sample_type=45359
......
[config] [config]
command = record command = record
args = --call-graph fp kill >/dev/null 2>&1 args = --call-graph fp kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_type=295 sample_type=295
[config] [config]
command = record command = record
args = --group -e cycles,instructions kill >/dev/null 2>&1 args = --group -e cycles,instructions kill >/dev/null 2>&1
ret = 1
[event-1:base-record] [event-1:base-record]
fd=1 fd=1
......
[config] [config]
command = record command = record
args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1 args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1
ret = 1
[event-1:base-record] [event-1:base-record]
fd=1 fd=1
......
[config] [config]
command = record command = record
args = -e '{cycles,instructions}' kill >/dev/null 2>&1 args = -e '{cycles,instructions}' kill >/dev/null 2>&1
ret = 1
[event-1:base-record] [event-1:base-record]
fd=1 fd=1
......
[config] [config]
command = record command = record
args = --no-buffering kill >/dev/null 2>&1 args = --no-buffering kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
[config] [config]
command = record command = record
args = -i kill >/dev/null 2>&1 args = -i kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_type=263 sample_type=263
......
[config] [config]
command = record command = record
args = -n kill >/dev/null 2>&1 args = -n kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=0 sample_period=0
[config] [config]
command = record command = record
args = -c 100 -P kill >/dev/null 2>&1 args = -c 100 -P kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=100 sample_period=100
......
[config] [config]
command = record command = record
args = -R kill >/dev/null 2>&1 args = -R kill >/dev/null 2>&1
ret = 1
[event:base-record] [event:base-record]
sample_period=4000 sample_period=4000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment