pstore: Use global ftrace filters for function trace filtering
authorJoel Fernandes <joelaf@google.com>
Tue, 15 Nov 2016 20:31:21 +0000 (12:31 -0800)
committerKees Cook <keescook@chromium.org>
Wed, 16 Nov 2016 00:34:30 +0000 (16:34 -0800)
commit7a0032f50472c740e35e849366572c124087a346
tree71437b89bfbfdb396be31dd14ae77f685e9757be
parentd032ae8921ea792c1e6b2abb44022b2403f651f6
pstore: Use global ftrace filters for function trace filtering

Currently, pstore doesn't have any filters setup for function tracing.
This has the associated overhead and may not be useful for users looking
for tracing specific set of functions.

ftrace's regular function trace filtering is done writing to
tracing/set_ftrace_filter however this is not available if not requested.
In order to be able to use this feature, the support to request global
filtering introduced earlier in the series should be requested before
registering the ftrace ops. Here we do the same.

Signed-off-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ftrace.c