Skip to contentSkip to conversation

Global filtering for ftrace functions

PATCH New Joel Fernandes 1 participant 1 message Nov 15, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover Global filtering for ftrace functions

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 <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Tony Luck <[email protected]>
Signature · 1 line
2.8.0.rc3.226.g39d4020