]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit699e0d7cfa13a6628bba52535a27594c658ed5a7
tree71437b89bfbfdb396be31dd14ae77f685e9757be
parentcdeb63c9f40d188e1516afceb0c2fa6aa83a138f
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