Message ID | 20230103124912.2948963-1-mark.rutland@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4594299wrt; Tue, 3 Jan 2023 04:50:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXsXjKjoRcr8HxDbuK4uO0281n6oWUHRLbfVByNrmURd9QRzLCZxgIBCp0TdivurlsVUE82F X-Received: by 2002:a17:906:b08b:b0:7c4:f8fb:6a27 with SMTP id x11-20020a170906b08b00b007c4f8fb6a27mr44706531ejy.0.1672750201131; Tue, 03 Jan 2023 04:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672750201; cv=none; d=google.com; s=arc-20160816; b=hq9sfJl1IXXn3MCvgo4HxWKZyYolLfqbQ3p4yyKZwvngpGTZwOJ5RdkgGSQ8+cvVg8 x+Yll8/372zpH8o77ZBjDCoqpyuAoU/Iy4H2Mx7vWzP7CTI1z5C62h1c1S89P3018KxN Dgz5kjzBLvi8CyejyrFY2FART1sD6ZaFD1vfbIUnvN5gxu7qjDBd260So5gM2Kfl4ujJ caYG9CJIrR45pteFgpgQ2CusMrNx+JWh/hxDLK4MvEZf1hr6bB0SC8S+g7NAFlSvN9C+ tjpg+2ied2MbQCvTr7c4LSuwaxY49L5VzgcjD73NOMgXq3LefrSJs92iGkTTw5+FldlS JxNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JHkOpnuEQV/XHExc9Tc5VRt6LX2EuHrLDnEIHO9NPUY=; b=LwCSi+zKFyWTp4Dne0mZqkb5Uau1f4clDyCnxvkVcClT91iXbLFTd9Wm1IN46Fzv0j u+eQV1mMn2XMBEcREzMjH3S5TTcLdjXaoZhLWjtKGn2J+ZHfkazrL0iaU3WROw44zEDP 1xHbiMiqBKW5RHc3gtIErbm2DZt5bUD0J/41gIBQ6MPUIOR3dc9WH6TDES2h7SHx3pFg gLM9ZZD3tt3rXp59yXkEaEMRgWSo5a/mHe7qlpqIY5hRsJDNfs9XUU/x/2QBd08yrgoD lgzlpaY5az7kXrDiEyDlEkWPUAW9Sk+0St7sSN3wykOIekCRlZKiu0D/PHQu0BrhbBy0 nURw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ww12-20020a170907084c00b0073d5a794b43si24438783ejb.985.2023.01.03.04.49.37; Tue, 03 Jan 2023 04:50:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237604AbjACMt0 (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Tue, 3 Jan 2023 07:49:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237586AbjACMtY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 3 Jan 2023 07:49:24 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D612D4A; Tue, 3 Jan 2023 04:49:23 -0800 (PST) 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 83CA01516; Tue, 3 Jan 2023 04:50:04 -0800 (PST) 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 F2C383F587; Tue, 3 Jan 2023 04:49:21 -0800 (PST) From: Mark Rutland <mark.rutland@arm.com> To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, mhiramat@kernel.org, revest@chromium.org, rostedt@goodmis.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH v2 0/3] ftrace: Add sample code with dynamic ftrace_ops Date: Tue, 3 Jan 2023 12:49:09 +0000 Message-Id: <20230103124912.2948963-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754005714798410193?= X-GMAIL-MSGID: =?utf-8?q?1754005714798410193?= |
Series |
ftrace: Add sample code with dynamic ftrace_ops
|
|
Message
Mark Rutland
Jan. 3, 2023, 12:49 p.m. UTC
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. Since v1 [1]: * Rebase to v6.2-rc2 (trivial) * Fix typos * Fix commit title style * Apply Steve's Reviewed-by to patch 2 * Fix "save_regs" module parameter name * Add example output from sample module [1] https://lore.kernel.org/lkml/20221103170907.931465-1-mark.rutland@arm.com/ 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