Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932783AbcKOUaE (ORCPT ); Tue, 15 Nov 2016 15:30:04 -0500 Received: from mail-pg0-f42.google.com ([74.125.83.42]:33277 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937AbcKOUaB (ORCPT ); Tue, 15 Nov 2016 15:30:01 -0500 From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Steven Rostedt , Joel Fernandes , Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck Subject: [PATCH v2 0/2] Global filtering for ftrace functions Date: Tue, 15 Nov 2016 12:29:35 -0800 Message-Id: <1479241777-75067-1-git-send-email-joelaf@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 23 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 Cc: Colin Cross Cc: Kees Cook Cc: Tony Luck -- 2.8.0.rc3.226.g39d4020