From patchwork Fri Mar 10 19:20:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13169989 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C3C6C74A5B for ; Fri, 10 Mar 2023 19:21:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 093D66B0072; Fri, 10 Mar 2023 14:21:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F38176B0074; Fri, 10 Mar 2023 14:21:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D63E96B0075; Fri, 10 Mar 2023 14:21:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C2E806B0072 for ; Fri, 10 Mar 2023 14:21:07 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7FBC240304 for ; Fri, 10 Mar 2023 19:21:07 +0000 (UTC) X-FDA: 80553956574.17.453AF0B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id AFD9E40012 for ; Fri, 10 Mar 2023 19:21:05 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=TJlvsCbz; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678476065; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BmkTKs+wcqZgQT5xMF3LQhEToSvbX2IFjpGdyAHx//I=; b=Dl5Aa0E31dAAmwKZ/RyccBzO1aDB3qnPXrjq0aOSyhYrjtkHmWOf/ff68y+BXfLgQkIovg 4Y2ve9Xt+OOAxhNtTkeKq4//PspFF/GthVN4JmzwcffLS5AMEUbNY6hlrIwyhOodzIzONQ DtLG5TOdfUft2lHdu0N+/QfzX6e5fHg= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=TJlvsCbz; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678476065; a=rsa-sha256; cv=none; b=rs7SZnBErMVMo7pGSEMLnvBzA7wDxwxhhbxKCXnLYOja/1KMMCn0nxvtZzCKTJV6lX50rv 4ObOc8r2OxnAvE7Rh+Fq8EZaPLMFQSwtg1EYR1SlCl6Xvo9QqYUqLpL4C4syxXcXDqJbbY 2E1/rjW/+pITtepKbskw4zZycTvzMHU= 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 AAC0E61D4A; Fri, 10 Mar 2023 19:21:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C841C433EF; Fri, 10 Mar 2023 19:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678476064; bh=/Rg3otAfWIfcGHEh5SOOjD8wJ1PbvmfxogXF/vFficw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TJlvsCbzL6MyXQm4Sis6p2ve3MO247C+KX+ve3wn6jNLcg4aCkHR3eoILykS4XV+Y H0GgYCXxs7y79R2Y7YSw00iFqFTCQqh083r8a7oXwqHv7nU8WtL0YvQjpBbNI3xd54 QMcxhfNB3kJti97u3bFRuuba+MXsv9ALeKiMq9h4hhbUFWvaxOXiWXD2T/+4AdW1xl 5OJqbAYvqHVR3eMCRw0ac8sy/19SWVHrnZ4ByZGBtN4QNC/izdgYuQG1dCkfZKbS13 FFdyqc0PHe5pkfjTK7OTHz5AapIKgG8SpI3cxmlw8PC2DShMRNUltv8WId0fpEDGH5 J204/qa7GVvPw== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Paolo Bonzini , Shuah Khan , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Steven Rostedt , Mukesh Ojha Subject: [PATCH v3 1/3] selftests: use canonical ftrace path Date: Fri, 10 Mar 2023 12:20:48 -0700 Message-Id: <20230310192050.4096886-2-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 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: AFD9E40012 X-Stat-Signature: basytdpmc9djacuz5qomw837ay76c8yd X-HE-Tag: 1678476065-784536 X-HE-Meta: U2FsdGVkX18WXQ5uqLcWSuUTZQH1pwLzkODLZluMcAvAbIPIofPv0B9/z5eJtrECyccs9Az620ukCBBcZ8n22iEMK65zeTkvm226UnYkorTmSlJs5TBOUqdFqRcumhMv4xjNffwbjTIFR4wDwbtkVT1wukKy9svcE1WUsxz4UjfOSLXRM1QL23mxp6M/J+LnDp696Cnq2Hxd6bE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Y3/V2AMx509gDfBHiQkekSO1ObOLBClIEc+KsMDkNjHtPAKyzDMCFFo4F/slXRYJLLK9C6GJsHwpx7crcY7/BwZyVE9HQORxWxc6V2Izdcl+je/EljGjGdhsaKDR/wHuFVZQEHlEH0S6w7TNLcoi X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Ross Zwisler 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 A few spots in tools/testing/selftests still refer to this older debugfs path, so let's update them to avoid confusion. Reviewed-by: Steven Rostedt (Google) Reviewed-by: Mukesh Ojha Signed-off-by: Ross Zwisler --- tools/testing/selftests/mm/protection_keys.c | 4 ++-- tools/testing/selftests/user_events/dyn_test.c | 2 +- tools/testing/selftests/user_events/ftrace_test.c | 10 +++++----- tools/testing/selftests/user_events/perf_test.c | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/mm/protection_keys.c b/tools/testing/selftests/mm/protection_keys.c index 95f403a0c46d..0381c34fdd56 100644 --- a/tools/testing/selftests/mm/protection_keys.c +++ b/tools/testing/selftests/mm/protection_keys.c @@ -98,7 +98,7 @@ int tracing_root_ok(void) void tracing_on(void) { #if CONTROL_TRACING > 0 -#define TRACEDIR "/sys/kernel/debug/tracing" +#define TRACEDIR "/sys/kernel/tracing" char pidstr[32]; if (!tracing_root_ok()) @@ -124,7 +124,7 @@ void tracing_off(void) #if CONTROL_TRACING > 0 if (!tracing_root_ok()) return; - cat_into_file("0", "/sys/kernel/debug/tracing/tracing_on"); + cat_into_file("0", "/sys/kernel/tracing/tracing_on"); #endif } diff --git a/tools/testing/selftests/user_events/dyn_test.c b/tools/testing/selftests/user_events/dyn_test.c index d6265d14cd51..8879a7b04c6a 100644 --- a/tools/testing/selftests/user_events/dyn_test.c +++ b/tools/testing/selftests/user_events/dyn_test.c @@ -16,7 +16,7 @@ #include "../kselftest_harness.h" -const char *dyn_file = "/sys/kernel/debug/tracing/dynamic_events"; +const char *dyn_file = "/sys/kernel/tracing/dynamic_events"; const char *clear = "!u:__test_event"; static int Append(const char *value) diff --git a/tools/testing/selftests/user_events/ftrace_test.c b/tools/testing/selftests/user_events/ftrace_test.c index 404a2713dcae..a0b2c96eb252 100644 --- a/tools/testing/selftests/user_events/ftrace_test.c +++ b/tools/testing/selftests/user_events/ftrace_test.c @@ -16,11 +16,11 @@ #include "../kselftest_harness.h" -const char *data_file = "/sys/kernel/debug/tracing/user_events_data"; -const char *status_file = "/sys/kernel/debug/tracing/user_events_status"; -const char *enable_file = "/sys/kernel/debug/tracing/events/user_events/__test_event/enable"; -const char *trace_file = "/sys/kernel/debug/tracing/trace"; -const char *fmt_file = "/sys/kernel/debug/tracing/events/user_events/__test_event/format"; +const char *data_file = "/sys/kernel/tracing/user_events_data"; +const char *status_file = "/sys/kernel/tracing/user_events_status"; +const char *enable_file = "/sys/kernel/tracing/events/user_events/__test_event/enable"; +const char *trace_file = "/sys/kernel/tracing/trace"; +const char *fmt_file = "/sys/kernel/tracing/events/user_events/__test_event/format"; static inline int status_check(char *status_page, int status_bit) { diff --git a/tools/testing/selftests/user_events/perf_test.c b/tools/testing/selftests/user_events/perf_test.c index 8b4c7879d5a7..31505642aa9b 100644 --- a/tools/testing/selftests/user_events/perf_test.c +++ b/tools/testing/selftests/user_events/perf_test.c @@ -18,10 +18,10 @@ #include "../kselftest_harness.h" -const char *data_file = "/sys/kernel/debug/tracing/user_events_data"; -const char *status_file = "/sys/kernel/debug/tracing/user_events_status"; -const char *id_file = "/sys/kernel/debug/tracing/events/user_events/__test_event/id"; -const char *fmt_file = "/sys/kernel/debug/tracing/events/user_events/__test_event/format"; +const char *data_file = "/sys/kernel/tracing/user_events_data"; +const char *status_file = "/sys/kernel/tracing/user_events_status"; +const char *id_file = "/sys/kernel/tracing/events/user_events/__test_event/id"; +const char *fmt_file = "/sys/kernel/tracing/events/user_events/__test_event/format"; struct event { __u32 index; From patchwork Fri Mar 10 19:20:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13169991 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F035BC6FD19 for ; Fri, 10 Mar 2023 19:21:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21C996B0075; Fri, 10 Mar 2023 14:21:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 17FC76B0078; Fri, 10 Mar 2023 14:21:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E263B6B007B; Fri, 10 Mar 2023 14:21:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CDC046B0075 for ; Fri, 10 Mar 2023 14:21:09 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id ACF001C61BE for ; Fri, 10 Mar 2023 19:21:09 +0000 (UTC) X-FDA: 80553956658.21.DD345AF Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf25.hostedemail.com (Postfix) with ESMTP id EA990A001F for ; Fri, 10 Mar 2023 19:21:07 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQaNtV3X; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678476068; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fABhqsokhQoI9PRe9Ym3229p2H4mvRp4sRTFEjWsQ+g=; b=M5almUuXNjN3ggLJSvpI6OjqXrL0/KiGE5rPsPWNsN0hS65pPjOYWVMP+gqhi3cFnHTtn3 CkzNWpyy/muzG2je7UKfZkPVGo9l2DMvQRbsRp9uWmgDKCPm/yAdBBmkN1zAiJgoIlMCMj 8E/UIaBol2XwBV0S/QIwTLBDrpFKNWY= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQaNtV3X; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678476068; a=rsa-sha256; cv=none; b=YnVAacHtl8e+u502WMixTc6p0Gfh6Hof1OiaqcOete0SCge1eAjvZQvafM0xjUYgzvg71G A8pszbCdJPGj/XfkHOljekRjc+bnm7q5KkVUmKyhQMVZUmJiZfzTj45INGU2JShD/wHETd H008BYcalgaSlM5Ue3v3j1U4oeDCUZg= 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 ams.source.kernel.org (Postfix) with ESMTPS id 43F6BB823EB; Fri, 10 Mar 2023 19:21:06 +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 To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Paolo Bonzini , Shuah Khan , Tycho Andersen , 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 X-Rspamd-Queue-Id: EA990A001F X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 69agpmjtxqmzb5z6e3pj856jsia76gig X-HE-Tag: 1678476067-807316 X-HE-Meta: U2FsdGVkX1+jyb1cEcEWo0z/yY14MGJw9cmCVugD2vd9os/u9JSBW+xnhdXK5ctkblRHIcBf8BztsE1N16Fd1uM/1L4QwEPiB9Dn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hUWNlfIKML3/iZyYxLpZ2LKLrI4NpdZg5I/vBJ6uTwMA4UvPCezcIx1/8oiFsNUJYZWqQEi8kfjXPhcsNETCIU8vOleP6XcF1do8HiZpjjHOEOWqn9EHPEsPGiPRYq/IneqsTG30LPeyms+QQ49QZ5MFmZ+KXz8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Ross Zwisler 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 Signed-off-by: Ross Zwisler --- 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'); From patchwork Fri Mar 10 19:20:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13169990 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A3C6C76186 for ; Fri, 10 Mar 2023 19:21:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 269FA6B0074; Fri, 10 Mar 2023 14:21:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1CB286B0075; Fri, 10 Mar 2023 14:21:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3A1E6B0078; Fri, 10 Mar 2023 14:21:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E18126B0074 for ; Fri, 10 Mar 2023 14:21:08 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B62B61C5E81 for ; Fri, 10 Mar 2023 19:21:08 +0000 (UTC) X-FDA: 80553956616.03.CBA6FD4 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf15.hostedemail.com (Postfix) with ESMTP id 1E1C6A0004 for ; Fri, 10 Mar 2023 19:21:06 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CkGDGqcL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf15.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678476067; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3/+2ojixyhhWhLcY9z5q+bsIvJbvQKmx2RzvDPafldg=; b=zZZB7VF457hIbJzJjWrKR+/pHlYje81P0CkjFU8tHpveP0HGQHYfK0Hx5+dXfuX9O96/mC obOXOb5HPOzpeDyMvAkeZVUQjKKneafYkqOz6gW+Vd/CG+6lLNg1lav6dfNMQ6GBVPYJ0F 8CFX65zsYNrZYcgvBjNzkal4O03QtN8= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CkGDGqcL; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf15.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678476067; a=rsa-sha256; cv=none; b=t+ucGfH+aZx2znvXA8ACBZ1nK2qBKHN0czT+yUhoxO72nrBPalEFrjV7rOg9jclhBHvqL8 T2oPSi5UFqe1zaZK5NoozSCjH/K0mkNCfhNNDWrPbXbrPbBrx8vNRkbqnD6mG265oWbXKV XzrDg1/6aUG8sd8YEuCxKeuWH0D/NS0= 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 4718161D48; Fri, 10 Mar 2023 19:21:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E530C4339C; Fri, 10 Mar 2023 19:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678476066; bh=VoI18tD8o9ZMnsU9Cf6DTDg2Lm9gO1Nul+/I2tAuayk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CkGDGqcLn2QULc6rgezlMFhv7XbesD0YZPu1ITWWevSHo5nFODdZL+xCW4vKWb8/4 jA/MZTh1O5F4PdmSrOcjCs5Hk8rcHVay29IIDjgqjQ9sY9Yn/wsBQxqhj5POxxy38q JX5TNBKEjlPhOQxoiqino37RLMW0VS6F5ipFWPMH9zd74J4jr1EN0udhGRra+fvsRk 7pvxtCvI7K+v/Ps4XzB4CV0N52g4/lC8CIQZgdu7DQsYib3r3mx5o0vkoQ0Suht267 LTb3/kXTad5ZiZyIBombWxN0wkP885LdZdwISKC8kaeULf5eKL3X8NoprKnzUZweiC IT95hIOcczGWA== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Paolo Bonzini , Shuah Khan , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Steven Rostedt , Mukesh Ojha Subject: [PATCH v3 3/3] tools/kvm_stat: use canonical ftrace path Date: Fri, 10 Mar 2023 12:20:50 -0700 Message-Id: <20230310192050.4096886-4-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 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1E1C6A0004 X-Stat-Signature: 7zoorudd6w44fzwjbjk9epqzgcwoktca X-HE-Tag: 1678476066-708663 X-HE-Meta: U2FsdGVkX19wlZm0LACn2JEmaykk8vhlj18Yhin5Pz6PgK3YEEy4P+mIfNAqwcatWTyr+B/UhacWD22ucq7DQLEW2Z3dZMKhSJ/9Wp1ttDlWB4cPioo5OmwigYyJZNG4og7mO0mqFM1mFiGzrvOS/3pN4fnwJWXN5TshQkn3SZ5oK1bEFYCulcJQj3kIrhlciNPNtXgnyz9B9mJgERvtTDYlX+hCUe1f+8th1Kb+ZxBIfnNCZvvdIdfp9uWT2yMt2erWEZHxA48slr00zaetk0u6YOvx1bP9gLDIgjj4nttKo28KdDoM8RV1Xa8DQtkT7lojDGslQcMGkDvG14VSGKmHMC5ugWu8pMWTj6aNxsmQl7e2T/fEpiHvY83AtBK3m+RGo+heznXu1iiDy74jW9lSCWyN74TirPao9kWBF91WdranB1aRyjok17esdw2rLnEo9UlKQgOqYgV9Qtv7MAzfJr22D0yG4HClOpkiTSWaW3DnYxibu8oIZ2YK8B/KUvHxbbf3eBi01EMRPLL9FecgCe+SN+NbkxxxaTpM/whBDD3xpFJZTRmomvQwP4b8raemFnzRLlvrFdnz2RDsy0fmoUjiNS7WkXse2X6OhxjGhCZkBQTZrvIabxkNyK7gXVuelOmQJq11zrf163hddQ3c4rvUhx4PbCS+4low351yd0bDwIyVA+BXpezEFMvhellimlXOXU8HbKSSLroXwTsCbH0pDUhOVskxFxNe4lfipfU6NknWyjlk8vMA0TZuC1baqm06nAFPy4t6gDEnwRJHZ1fsx1artsjY92bk30EtR5C3Unvt3u6X5AZpoiBMx4vW4FffYxHJtBb9/eiWywWxhIlo0XiElSbLIxL3nXZETTPLOD5EWIy1wNsYcPjvG0ntQFwxwE9MeIWumk5TXtNZy6KSaihtD7O+uLwqDqf3FE2fncU1toZQPkkWqDObpSlaDKiKa740ezYoRAe 2uTf3p9W DldXMv2z94sizaDCDZUCAtp5DzzBUFesNHHTO/VF6B/lsPHlsJMuE0StiC85FxBNBJTkYjebcvDyHw3pPqN9s4CLXq0Wd19ZxTUhjCYehB4zw9Q2uPXOI43F/tPrAKqk/pyRa4s2rc0HT2VGK3GviRGL0zyiEexklVZFWnoSeoHt3OPblOG3Y4ihiKnSsYc6ytJd7bXYZ7CWH5grad8G2MWy22wogKH0GARqHK5189E/te2DkEk9Hfeex9YUpxfT3NzybBbLaL3T0PG67MqxfoxfvA3VG2dZlTnA47ezV2gpz/FSCXo4WLR5y3IyGlxjfZnA1wvXEq/9PwlQYojuRYMOT23B1g0QIhoGBYfEn5xbn9u8fVPPQnU2/Z/y/jqXb5U0USsFMkeI1F9GaJ55Sm7/kRunAYztV6trR99a6IM/+3KrHP/BvkgSK9ivbk1vyHNGG0YSh0AqXXp7gNhLO93HoYuSVOts1FjYPuQkEGG4Twqk1QC1ppzyLOwKzR4OIJuo8 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Ross Zwisler 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 A comment in kvm_stat still refers to this older debugfs path, so let's update it to avoid confusion. Acked-by: Paolo Bonzini Reviewed-by: Steven Rostedt (Google) Reviewed-by: Mukesh Ojha Signed-off-by: Ross Zwisler --- tools/kvm/kvm_stat/kvm_stat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 6f28180ffeea..15bf00e79e3f 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -627,7 +627,7 @@ class TracepointProvider(Provider): name)'. All available events have directories under - /sys/kernel/debug/tracing/events/ which export information + /sys/kernel/tracing/events/ which export information about the specific event. Therefore, listing the dirs gives us a list of all available events.