Message ID | 20230310192050.4096886-3-zwisler@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1056921wrd; Fri, 10 Mar 2023 11:24:22 -0800 (PST) X-Google-Smtp-Source: AK7set9vkSn+QBFtAGtlauyWGjby6bxUfUUNuf/zdt3Ic1ZHXOhITIoccQmNuEvon3sMDSr/i4EW X-Received: by 2002:a17:902:f547:b0:19a:b57c:117 with SMTP id h7-20020a170902f54700b0019ab57c0117mr3069303plf.29.1678476262564; Fri, 10 Mar 2023 11:24:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678476262; cv=none; d=google.com; s=arc-20160816; b=ocXHb4HDQPaVaJhzd78WrqASlAvWPiQwow4Xef34FNHIv39tZNccHISJRKJHlNMGct SKK4ugYsJLmm/FBmKdb5ijYy3faDf8kx2JOFmsYfQxc1ma129uRye1gD44NRgFjepACr Q8krTJI+OweZ9i+33B4WmzTy0K83cHjF4wY1KRz5BMIquFP1dVsu76qwqpFXUt6YRZO9 5U8R5u6CID8D/AhHnOUdyCuc/ShviT8ThwsP1KZkSmMQ8zfi50ptPi8xbtViiKAldW6i vrh82bDkOtlhsGSoxIDtA7JvAZj/OqMZ5/+eqSkIqy/XjxWsxGWLPOMUcEjaSMJdxRi2 Z91Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fABhqsokhQoI9PRe9Ym3229p2H4mvRp4sRTFEjWsQ+g=; b=pysHHoLcytRAOlas+MFGJldhguXLRxIcFlqrL/zxlVByuzOznj+H/4T8JC40vmYXWq Gv8CT/Gwo0HR12HmCNtdF6Ix9JcJ2veunQh5RgiJenwIioOm8Qcj+CBtnfuUBnzzuVTx Se7VvvhfoT/Gz3ZE3MJv7+rvNfR8Y+GTU8c8lsBOlNVHYr9ia9aUbDsCvaAus4a5wz0B A1ljFeSTeH5CFUhw7lBTLDhi+msq9QS5NXWrVTCJXoujroSPisQu+N7S65fLyu/ArMnI U6DauRfPTgxPKuWdD+Fx/g3M+tIuB9USdCYdm5UgO09LxlBvD/uSRP9DzGcKAdkeaU1g X3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQaNtV3X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a170902cf4d00b0019e8d4cb8d3si515062plg.614.2023.03.10.11.24.09; Fri, 10 Mar 2023 11:24:22 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQaNtV3X; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbjCJTVK (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 14:21:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbjCJTVG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 14:21:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131D91219FC; Fri, 10 Mar 2023 11:21:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9F10E61D47; Fri, 10 Mar 2023 19:21:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B580C4339B; Fri, 10 Mar 2023 19:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678476065; bh=h96RzPVmfu4a9Zs2dUbwmPcGcesOoRHMhOcR2gVxLLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQaNtV3XbPWoEfrXdeuLV5g9naMD/sFMoCZ6lxQb5RyxrksCAsnLrISfzDnf9mBO/ cUAIqaz+faLwjLk1rcXrKKJIoF0GFVjZkpumZk/CgeVwgIWGPWwC2D08xCMB61blw9 2Jgm4A9UVIa7GtRwWAT8g28cLlI9O9XMuhu9Xz6IeSD0V4ulxudAXQRRUPOdBOjcdZ 19+xhexZ5u+orIWCvWPU9sP1Ci+Ns0UqIFa2/j2LsrmOH1VDRyiFLnNmigDlsnnKiy BfSFSatEB7NW6auBhRRQeR+XlAjI8UqmsWgB8vLvIs4N7ll32/0N4Q8V99hGuu29rG 00wrjnDL2szEQ== From: Ross Zwisler <zwisler@kernel.org> To: linux-kernel@vger.kernel.org Cc: Ross Zwisler <zwisler@google.com>, "Tobin C. Harding" <me@tobin.cc>, Andrew Morton <akpm@linux-foundation.org>, Paolo Bonzini <pbonzini@redhat.com>, Shuah Khan <shuah@kernel.org>, Tycho Andersen <tycho@tycho.pizza>, kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v3 2/3] leaking_addresses: also skip canonical ftrace path Date: Fri, 10 Mar 2023 12:20:49 -0700 Message-Id: <20230310192050.4096886-3-zwisler@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230310192050.4096886-1-zwisler@kernel.org> References: <20230310192050.4096886-1-zwisler@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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?1760009925509568743?= X-GMAIL-MSGID: =?utf-8?q?1760009925509568743?= |
Series |
use canonical ftrace path whenever possible
|
|
Commit Message
Ross Zwisler
March 10, 2023, 7:20 p.m. UTC
From: Ross Zwisler <zwisler@google.com> The canonical location for the tracefs filesystem is at /sys/kernel/tracing. But, from Documentation/trace/ftrace.rst: Before 4.1, all ftrace tracing control files were within the debugfs file system, which is typically located at /sys/kernel/debug/tracing. For backward compatibility, when mounting the debugfs file system, the tracefs file system will be automatically mounted at: /sys/kernel/debug/tracing scripts/leaking_addresses.pl only skipped this older debugfs path, so let's add the canonical path as well. Acked-by: Tycho Andersen <tycho@tycho.pizza> Signed-off-by: Ross Zwisler <zwisler@google.com> --- scripts/leaking_addresses.pl | 1 + 1 file changed, 1 insertion(+)
diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index 8f636a23bc3f..e695634d153d 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -61,6 +61,7 @@ my @skip_abs = ( '/proc/device-tree', '/proc/1/syscall', '/sys/firmware/devicetree', + '/sys/kernel/tracing/trace_pipe', '/sys/kernel/debug/tracing/trace_pipe', '/sys/kernel/security/apparmor/revision');