diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-30 16:21:40 +1100 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-31 10:15:36 -0600 |
commit | a05ffdce7155769ea5ac3409e1490fb9116dbaed (patch) | |
tree | 01e6359c13e5dcd626b0117d11ab0a150c7274c7 /crypto/fcrypt.c | |
parent | 0b63accf87225b5eb7e52814c374cf02d733d4bb (diff) | |
download | lwn-a05ffdce7155769ea5ac3409e1490fb9116dbaed.tar.gz lwn-a05ffdce7155769ea5ac3409e1490fb9116dbaed.zip |
ftracetest: Cope properly with stack tracer not being enabled
If the stack tracer (CONFIG_STACK_TRACER) is disabled, the
fgraph-filter-stack test blows chunks:
[8] ftrace - function graph filters with stack tracer [FAIL]
+ reset_tracer
+ echo nop
./ftracetest: 19: /home/michael/selftests/ftrace/test.d/ftrace/fgraph-filter-stack.tc:
cannot create /proc/sys/kernel/stack_tracer_enabled: Directory nonexistent
Fix it by checking if the proc file exists before echoing to it. With
the patch applied it fails correctly with:
[8] ftrace - function graph filters with stack tracer [UNSUPPORTED]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'crypto/fcrypt.c')
0 files changed, 0 insertions, 0 deletions