diff options
author | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2019-11-20 18:32:25 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-11-20 18:52:23 -0500 |
commit | eb01fedc3d539f9443082aa2384c5d1ca26ed5c1 (patch) | |
tree | e01210c8c124d22e2d77fd35c9b69c285ba840a5 /include/linux/syscalls.h | |
parent | 46f9469247c6f4697cbbf37e4b3961120bf07f29 (diff) | |
download | lwn-eb01fedc3d539f9443082aa2384c5d1ca26ed5c1.tar.gz lwn-eb01fedc3d539f9443082aa2384c5d1ca26ed5c1.zip |
ftrace: Return ENOTSUPP when DYNAMIC_FTRACE_WITH_DIRECT_CALLS is not configured
When CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS is not set it's best to
have the stub functions return ENOTSUPP instead of ENODEV,
otherwise ENODEV is a valid error when ip is incorrect which is
indistinguishable from ftrace not compiled in.
Link: http://lkml.kernel.org/r/CAADnVQ+OzTikM9EhrfsC7NFsVYhATW1SVHxK64w3xn9qpk81pg@mail.gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/syscalls.h')
0 files changed, 0 insertions, 0 deletions