From patchwork Thu Apr 27 14:06:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Revest X-Patchwork-Id: 13225511 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48D52C77B61 for ; Thu, 27 Apr 2023 14:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QWGa48V1F45/IhkOGRF0vUGAN7G3aewEY0tYGXanjYc=; b=MJkW8STnm+/AUj b60NzIitGSF9RsY4soeU9GrwZ+nbS+d5EI6QhkT64GQy0tn5CXFV1FHlFWfO/Cj/o5fCRk7ZM4ML9 Ecm3ZijszGJ1OG664MG3BkHup2Y7kEk/EsqpOqsNyQVDU3alih3wu1QUtU07KLA7WT99dand135u/ Nhq/KlcsurCsDx3viFUyIo/PD6NmpQ/atROkHEtUFfdZ/WjDyk0Btz201bguKHX4o2aq51s7LKi4B BRJnEGHGu/hlVDJCc+eTsxcMHmxCrWjwI6/aTZubbGbwLWZ4Fr+Owf9LUBQjSM8AswEvA1Nh8Fbbo nYkLUCQp+Z2/2gjbpw3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ps2HN-006i4T-0q; Thu, 27 Apr 2023 14:07:25 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ps2HJ-006i2C-2X for linux-arm-kernel@lists.infradead.org; Thu, 27 Apr 2023 14:07:23 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-2f95231618aso5465534f8f.1 for ; Thu, 27 Apr 2023 07:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682604434; x=1685196434; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g++Jpz8si5Cxxyn4mP4hOUSvklGO5An+E7k8VLQcOJE=; b=NL4snAwmCqzvp7UbxQjE675qWSOTHU+8K7kahlPvCSIyKhWKDiAruAwrfHGtQF7OAj zOE1mqPdXxgtl/0wydUAQAL4kTY08XKoXm5d91rwqEyFD/UIMSrpQT2IfabHVaF64B7a WJS/JMfB6MwhARgLxWac9TCMREXWZGzVtMKtg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682604434; x=1685196434; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g++Jpz8si5Cxxyn4mP4hOUSvklGO5An+E7k8VLQcOJE=; b=cFwxlohU6e4JzMSfjuB4jxuyk5u0mOae33bsa+HXChzD9L5tMAEBWXY3cjvK8B2Oxf SutNvmfe6slMb9ssBuQVFNspEZZicBulrlKrQEvkuVhLWrfME9nSxhQ0Miplz1QoyShH sZSerXVKwsrjp7FhoVKA8fzBWy8i2kvewaHFYYo2sZosa4ZeRkS0t3wggzogjJmN74hs S9Vee9N0wHtkJECnL9zKLeKeQTt5EDgPRCXltctVxr3aqZMEa+pqUGjaW6xgJA8wx06K M1sXZ0r/JaU1umi64fpTnIDjz/Air4JBtpYt3gIgs0iE8u6B6WBCOVl5P1VW5w4AemdA SZSA== X-Gm-Message-State: AC+VfDwdQqDnBVjIU0u0RFQu1vQv/1WJ1fCn2eR4a6AZ4hdGwmh55wsT gvX51ovbhthLPIJXa72U896JxzkXgeBQO5k+XjI= X-Google-Smtp-Source: ACHHUZ5a/MAV7sj8ArZSXjSnbLQCCNHNJ29kn4QMtWeG1FmmD5w1ebkcBDl9+2wjdEm2+9Khgj7Ixw== X-Received: by 2002:a5d:6901:0:b0:2ce:aa2d:c625 with SMTP id t1-20020a5d6901000000b002ceaa2dc625mr1497792wru.22.1682604433815; Thu, 27 Apr 2023 07:07:13 -0700 (PDT) Received: from revest.zrh.corp.google.com ([2a00:79e0:9d:6:a66d:4f2c:7ce5:e8ea]) by smtp.gmail.com with ESMTPSA id c21-20020a7bc855000000b003f17300c7dcsm21285075wml.48.2023.04.27.07.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 07:07:13 -0700 (PDT) From: Florent Revest To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, kpsingh@kernel.org, xukuohai@huaweicloud.com, Florent Revest Subject: [PATCH 0/2] Ftrace direct call samples improvements Date: Thu, 27 Apr 2023 16:06:58 +0200 Message-ID: <20230427140700.625241-1-revest@chromium.org> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230427_070721_840417_ECD22080 X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series is a subset of [1] that didn't go through the arm64 tree. - The first patch fixes a small bug when a direct call sample is loaded on x86 - The second patch adds arm64 support to all direct calls samples They are sent together because the second one depends on the first one. This series applies cleanly on Linus's master branch. It needs the first two patches of [1] which, at the time of writing, don't seem to have made it to the trace/linux-trace tree but I suppose they could be pulled from Linus's master 1: https://lore.kernel.org/bpf/20230405180250.2046566-1-revest@chromium.org/ Florent Revest (2): samples: ftrace: Save required argument registers in sample trampolines arm64: ftrace: Add direct call trampoline samples support arch/arm64/Kconfig | 2 ++ samples/ftrace/ftrace-direct-modify.c | 34 ++++++++++++++++++ samples/ftrace/ftrace-direct-multi-modify.c | 40 +++++++++++++++++++++ samples/ftrace/ftrace-direct-multi.c | 24 +++++++++++++ samples/ftrace/ftrace-direct-too.c | 40 +++++++++++++++++---- samples/ftrace/ftrace-direct.c | 24 +++++++++++++ 6 files changed, 158 insertions(+), 6 deletions(-) Acked-by: Catalin Marinas