提交 a72fe0af 编写于 作者: J Jiri Olsa 提交者: 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: NJiri 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: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 44fed277
[config]
command = record
args = -C 0 kill >/dev/null 2>&1
ret = 1
[event:base-record]
cpu=0
......
[config]
command = record
args = kill >/dev/null 2>&1
ret = 1
[event:base-record]
[config]
command = record
args = -b kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j any kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j any_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j any_ret kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j hv kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j ind_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j k kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -j u kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -c 123 kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=123
......
[config]
command = record
args = -d kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -F 100 kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=100
[config]
command = record
args = -g kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=295
[config]
command = record
args = --call-graph dwarf -- kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=45359
......
[config]
command = record
args = --call-graph fp kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=295
[config]
command = record
args = --group -e cycles,instructions kill >/dev/null 2>&1
ret = 1
[event-1:base-record]
fd=1
......
[config]
command = record
args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1
ret = 1
[event-1:base-record]
fd=1
......
[config]
command = record
args = -e '{cycles,instructions}' kill >/dev/null 2>&1
ret = 1
[event-1:base-record]
fd=1
......
[config]
command = record
args = --no-buffering kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
[config]
command = record
args = -i kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_type=263
......
[config]
command = record
args = -n kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=0
[config]
command = record
args = -c 100 -P kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=100
......
[config]
command = record
args = -R kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册