Currently enabling /sys/kernel/debug/pstore/record_ftrace traces all functions and setting set_ftrace_filter doesn't apply. These patches allow one to set_ftrace_filter and have pstore make use of the filtering feature resulting in lower overhead and performance improvement.
Changes in v2 are only to check if ftrace ops were already initialized and not set the global filter if it was. Joel Fernandes (2): ftrace: Provide API to use global filtering for ftrace ops pstore: Use global ftrace filters for function trace filtering fs/pstore/ftrace.c | 7 +++++-- include/linux/ftrace.h | 2 ++ kernel/trace/ftrace.c | 17 +++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) Cc: Anton Vorontsov <an...@enomsg.org> Cc: Colin Cross <ccr...@android.com> Cc: Kees Cook <keesc...@chromium.org> Cc: Tony Luck <tony.l...@intel.com> -- 2.8.0.rc3.226.g39d4020