[PATCH v2 0/2] Global filtering for ftrace functions

From: Joel Fernandes
Date: Tue Nov 15 2016 - 15:30:08 EST


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 <anton@xxxxxxxxxx>
Cc: Colin Cross <ccross@xxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Tony Luck <tony.luck@xxxxxxxxx>
--
2.8.0.rc3.226.g39d4020