From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 152E8C43217 for ; Thu, 3 Nov 2022 17:10:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbiKCRKw (ORCPT ); Thu, 3 Nov 2022 13:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbiKCRKd (ORCPT ); Thu, 3 Nov 2022 13:10:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 197F310F4 for ; Thu, 3 Nov 2022 10:09:17 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1F4291FB; Thu, 3 Nov 2022 10:09:23 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B3B6B3F5A1; Thu, 3 Nov 2022 10:09:15 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, mhiramat@kernel.org, revest@chromium.org, rostedt@goodmis.org Subject: [PATCH 0/3] ftrace: add sample code with dynamic ftrace_ops Date: Thu, 3 Nov 2022 17:09:04 +0000 Message-Id: <20221103170907.931465-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds sample code to manipulate dynamic ftrace_ops, which I've been using to benchmark/test some changes I've been making in this area for arm64. In the process of writing that I spotted a couple of minor issues, addressed by the first two patches. I'm not sure whether this should be a sample or something under lib/; I'm happy to change that if folk have strong opinions. Thanks; Mark. Mark Rutland (3): ftrace: maintain samples/ftrace ftrace: export ftrace_free_filter() to modules ftrace: add sample with custom ops MAINTAINERS | 1 + kernel/trace/ftrace.c | 23 +- samples/Kconfig | 7 + samples/Makefile | 1 + samples/ftrace/Makefile | 1 + samples/ftrace/ftrace-direct-multi-modify.c | 1 + samples/ftrace/ftrace-direct-multi.c | 1 + samples/ftrace/ftrace-ops.c | 252 ++++++++++++++++++++ 8 files changed, 286 insertions(+), 1 deletion(-) create mode 100644 samples/ftrace/ftrace-ops.c -- 2.30.2