From patchwork Mon Mar 13 21:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13173346 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 EBE41C6FD1C for ; Mon, 13 Mar 2023 21:18:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DBC3A6B0075; Mon, 13 Mar 2023 17:18:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D6D7F6B0078; Mon, 13 Mar 2023 17:18:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B49F36B007B; Mon, 13 Mar 2023 17:18:22 -0400 (EDT) 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 A28536B0075 for ; Mon, 13 Mar 2023 17:18:22 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 7E50D1C5AC9 for ; Mon, 13 Mar 2023 21:18:22 +0000 (UTC) X-FDA: 80565138444.27.3868375 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf14.hostedemail.com (Postfix) with ESMTP id 57E89100012 for ; Mon, 13 Mar 2023 21:18:19 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SALdwbEY; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of zwisler@kernel.org designates 145.40.73.55 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=1678742301; 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:references:dkim-signature; bh=IOO43sHRl/2M6me+poMZyNICNO2ESqb6aoYHnTQBQW4=; b=Ewx5eU1RT3rVUBFBDcVL1UVN8zxGEPGG/y8eXYQGsLzcAd9wJ6RQDwtorBrmnBEFjtbyvR BQcT0tYHQncq6ia6xKzjARukV/GEN7slnRWhcMx4NorE+VdAAkErOOBoTJQdIvvuFbn0aS OPk7hgY6ykc5J4zqIoYcMjuAEYYfRtg= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SALdwbEY; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of zwisler@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678742301; a=rsa-sha256; cv=none; b=siDREjm4db2KiRoIyDdPGzGZwgH79rY9yjeA8orAwKWm3+unvz+JdX3FjFrh8XSwom/9F/ wCqYz1BpZc9eTlH8mzGCFrOIUSsI0YbW5Z232gVDbjWpWVjiLNffcu++d3man2sypfeJqO Uf3lkrYgvj9cwZQ9Bm+9hDh5jmLACzs= 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 sin.source.kernel.org (Postfix) with ESMTPS id 4EF31CE1234; Mon, 13 Mar 2023 21:18:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93956C433EF; Mon, 13 Mar 2023 21:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678742295; bh=6mjt9yhry9OZrGSoFR8oPMv/MhGYAYm5/QiZHqwgr3Q=; h=From:To:Cc:Subject:Date:From; b=SALdwbEY67uvSj2NKIONHf4FyVXtnGDxNlObLGFUagGwVN6ayhPWsXf3i4zYs8RFv UH3MjeVdE4evNvqVpwAGOpINbdEBSnoUfb80mWBjePkoqSH7RA3/e6vk5zo5UOSADS y8Kmpr6hzjYvbFcaKD0cx8dwZ9k4BUWJryD0iaVSKQ4YBXRqZDyGiCPFkgrhgSTu4/ IhdPoofNqzzGwVim6/IrdXd/mO/KiEhwfMlYv6Et70EBQ1hcMG+++5wcaUKDwLd0rD vO47Vf0yxE7NdcPT/1qbCcqmsIebO+im14pbhnuNDFtG9SUKQCMLksghODxr9lhtWo 8K7ROvfOyUd0w== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Mark Rutland , Masami Hiramatsu , Paolo Bonzini , Shuah Khan , Steven Rostedt , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v4 1/3] selftests: use canonical ftrace path Date: Mon, 13 Mar 2023 15:17:43 -0600 Message-Id: <20230313211746.1541525-1-zwisler@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 57E89100012 X-Stat-Signature: i9fw3r99czqcxygtmuk4y99t31cn69dp X-HE-Tag: 1678742299-62502 X-HE-Meta: U2FsdGVkX1+rtO3mzpaFU1Xoe9+PG+aWAkKlB6wMo1SJG5UlYDqnl6PNJ5Pduk8JHZyswe+JEgBAeherw0F3lg/2XEAZYCRw+9PJF3jAQT3Ujpn2uUfMNNI+F3XDJGj0YkS16xcT8b7TimpfODolVc8qBG8gFHxsOi2Nx6li+we/m5O907YZQ/gT89Zx4TiHF3csr3RF7Weo726xHUMDywCtaWuUUaDg8+PeyoLrEcr5+8RojwPukY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hVZ0vyJH40W9kR/PAYF1jHmkaPiTkdW4Yr0HgJL7fUryB/dW9bCPzpmZzWnn3+L1ZcecTz6VIKhBhSt2wvviNVgzwKGBQ5ThWPFDhqzIz64DLl1remX9CKRM6obmqU1MAhvZFeHlbVg/5NU4SXt7+kgITT+6IRUep+L6ojPwvwpp0uw== 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 --- v3 here: https://lore.kernel.org/all/20230310192050.4096886-1-zwisler@kernel.org/ Changes from v3: * Added Reviwed-by from Steven to patch 2 * Rebased onto the current linux/master 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(-) base-commit: fc89d7fb499b0162e081f434d45e8d1b47e82ece 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 Mon Mar 13 21:17:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13173345 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 63DEBC6FD19 for ; Mon, 13 Mar 2023 21:18:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 691EB6B0074; Mon, 13 Mar 2023 17:18:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 640EF6B0075; Mon, 13 Mar 2023 17:18:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 508096B0078; Mon, 13 Mar 2023 17:18:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 424836B0074 for ; Mon, 13 Mar 2023 17:18:21 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 2283DA0D21 for ; Mon, 13 Mar 2023 21:18:21 +0000 (UTC) X-FDA: 80565138402.09.AA58C7C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf29.hostedemail.com (Postfix) with ESMTP id 8068D12001E for ; Mon, 13 Mar 2023 21:18:18 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sYWYaC5b; spf=pass (imf29.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678742298; 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=vwUcU8/w0McUaAExgUNFAqrB/Ky8ITOwgZqQ9KKNgN8=; b=DVjRw4+GbP6hVPzvbHt+UfUcXK/eVgksGLvvGqXeBGF8Fh8sel6g7Ts1o3SLI1A/t9E3KI nmAGs50qYDL6KU3zt5iIwjVtOIofnaQJZGxOMLLDmGTEBq973BQpb8iOaP+oanMYh8uOBi 1DkfIBCfIN5CEZXhoU7YGxdozs/OWYA= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sYWYaC5b; spf=pass (imf29.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678742298; a=rsa-sha256; cv=none; b=zp6xHxchWYGpsy7f8orYMZVwD4BLNlmYfPpPF8Kg+h6McSuIpnFn1cxCu8n/b2+gg1qdwq KexvFgT2NzU0qOfJOmfh4GEh2Hn36JXTvfTN+Jv0pvb6vxq/Fk1qHTlH/axueHnl/Zk7c2 UB0m7iipRwbTNIL+5N85KdwEWO2q9No= 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 5C17261516; Mon, 13 Mar 2023 21:18:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE125C433D2; Mon, 13 Mar 2023 21:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678742296; bh=q17gWNDEER7JFUSGy9HVW9DTdpWFf2LCktZduqnianY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYWYaC5bJg15qkd5Wy1envpuTqaOAMqPXhrK+ra5OePk7jrNF8Gs0W7JdLpjKn/jH ZikIXg6VFeiSYDGyPtekMZlE6T8pVNLPgBQSRlzmLFP3ihzgZt9bY+MmUIjJD70EX/ cMfSMW6W9QacnsivpuypswFUIslyS2opfmuIjce9lrebqjmm4VPBeZPzOORTUGyswP oRG2aHJS9Kk667ds2itHFeH8MvGghQSO2p9j7GLRp+YmAoczxVfhBFyPEj1pjUQthI qLaT90azdUVwHozj+RFPzxsGI9SCXuAIN+S3VAjCxnEYaXJxi8nMsvibR/9Tuwwn9N 1C4EraE9FLatg== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Mark Rutland , Masami Hiramatsu , Paolo Bonzini , Shuah Khan , Steven Rostedt , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH v4 2/3] leaking_addresses: also skip canonical ftrace path Date: Mon, 13 Mar 2023 15:17:44 -0600 Message-Id: <20230313211746.1541525-2-zwisler@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230313211746.1541525-1-zwisler@kernel.org> References: <20230313211746.1541525-1-zwisler@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 8068D12001E X-Stat-Signature: aunq3uonngfpunsmgcb866tjz6388zfb X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1678742298-795233 X-HE-Meta: U2FsdGVkX19u16yE/rQ7DbP8IWUUcONnpCQiDq3tMEoWdw9mSkusmUytwmusM5z3ZMx82J1oQ6nNTxRuXp4xdsj3XCoXPio11He2uhs34pF9/CZjst4+P3IpFG0QRuAQI9YodKOtlWYFHbscSoxGr4Cg3EsPe4A/80nRZEdkfK1XBIkRd+sMdNxivMmjzDZNqUomco5n0KNPQGBhbWU4BeRJO1ktcqDZ82vcZ/6UGpKG0zXLgNVPqIbek+OpKRwwME1vWGRPhSIDBcPeXj83J6lFhNnjO5TwPgSM5u46mIAbprCm1FlBpnz625D7krkNRw72nlUSnvM+22mHUNEQ/wdfmt6Js6t18RErcz2tBQsBKwiMEszZjMUtUwxn1mggjc/OHQlo7YbkqCgWzoxMnmYFluXW9s6NnfNJ5fKlY3V3LNNFAVBQ8HXgvl2T7sZzX9LZ3L37YMZd9Df68GrEsqSXa4UDhjtSdO5BQiGyGCWefeWBv3SxlLQaxZtL6jPnPSUzcJKLX+tTxWDJXJpELzljWe4ROtTKiXIjOjU/sAR5GrmbvBp5/GpThjOdq5qh/X7HClGVXecDeL2XLXDJT1M/m3Ey2xsAIj7vKPIPwyFrB22byyX38T/nW4hX03kxaha1o3JVHQL/PBTITDP8doEGbmb/VkVtorEj/5hayN4zaS52JBDW2vM1Nmt1CL3/c6kW3dhMtVSRe9LG/UFzQSXq0IFMRPAX8CR/ItNSU39cghfZbEq+9AOXWUfBI3d/q5DhoGsXqnMtQ9BoBt4XG61hgikO3q3bjWD3LFnPQrybCLuC+PyEuYhJxEuddcbY2n664mJcHdvX9uWtet1h+OujsLRqSpQXcgZrbciaBkrBDveJiV+cfcS9AeSbtEWDzp0fXlu5bNq1kLxXxi41dADa30itCRy25iiw+LVTACpMjDK/r+UfXjRZVHpTtJ3r6GL2Z3FdOOdIZD6/Xeh nNNlSC5c +uger3u1Ad5snhbNEyySkpxOTJR2zLHpVT7ZWhEz1pO1CwTtdsAIFqeb8zwDBn5ntsse1Knpx/ETa8dvIDRVt8HYRhBX99mVOt+ikG2hgEpXZKnG3JZ+2Z7yOQboQQfknjfFKYJnC1omXJBbza8N/JZnKbu9rLR1WNR2d3nXjXsLixIN9CXkpsyiws9bKXG8OOEUCgarTK+3Gk8s6laBRn7ha0jE+wJCkNBntqpOuwWizd+zmsaImg+STjbfCOwpYx8RTYgt7P8MORulfmf+G3+9Mn6Q42OEVTjtIvcdFJuNA9IWcC8WMLxa+FTdDjAq8c2agoqMdgjQr1f3PqWci09qWUk9x/10YXt0r6p25pJRngo0s7KI6xjnZ8gaCoGNB3+Sz8gTYOmLHjxEoZHwUi2OhPIM5kQX8NI+2X+Pqd8+3b/w= 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 Reviewed-by: Steven Rostedt (Google) 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 Mon Mar 13 21:17:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13173344 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 78AF1C61DA4 for ; Mon, 13 Mar 2023 21:18:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EF4686B0072; Mon, 13 Mar 2023 17:18:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EA52C6B0074; Mon, 13 Mar 2023 17:18:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6BE26B0075; Mon, 13 Mar 2023 17:18:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C66D96B0072 for ; Mon, 13 Mar 2023 17:18:20 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A194540F17 for ; Mon, 13 Mar 2023 21:18:20 +0000 (UTC) X-FDA: 80565138360.13.6D02954 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id 08F98A000E for ; Mon, 13 Mar 2023 21:18:18 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nCpgKbak; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678742299; 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=aTM1lHUiKry4n04x8liyYQq1LbGgwnRHOx110Kv8Pr9JR5T+gfIkDqEtu8Dm4ZOAYnbvsl sHKIOUS/J0oTMjPEac+1CIvZTJLPtgEyXZ+OrlStNe5a4au883kremtNsOd07ps6qPyPOP 8Uc5lpIMCNCRSNSKvREV4lsb0JEmXKQ= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nCpgKbak; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=zwisler@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678742299; a=rsa-sha256; cv=none; b=hbrZx9224wJ34mL92Ye2tTOcbScoZsKDor0qy/91VPkwgKd6tvskKEm1i6wGcGpPyWsZEN Sv+tgrb7ygUA4NzomKEadT4a8MCrcZ/RVLhp9NvecU6eI7VeRxeE8nAijuIaxt6fj7oKbI ykkwLH/ne4e6jyO6f0QcS0ZnruVPkBw= 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 2FE9061517; Mon, 13 Mar 2023 21:18:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00DA5C433A1; Mon, 13 Mar 2023 21:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678742298; bh=VoI18tD8o9ZMnsU9Cf6DTDg2Lm9gO1Nul+/I2tAuayk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nCpgKbakOtkAns5toIg+NwkKvMGL+DU/SdMEBmWUkakSH/dMzXWwA7SDfX6clXZMK gU/KyHhzhT0gDFeK9iucWz0e0IglHGtW32DmLtNqGHBiTDDudMb+/45zNVlOeIuvZl Bo/12sLk3dj/tcHxQxjKCDttyWYQMzQznpLph3UWOcNhoURoNwuMtKVnnRoeaqNdoy a5hf43SlvKT+tDcTLnSz57prfqT8Xjaf9pAmoouN8QsUhIHZrP7PTlSvqcoOY6P2ez N3MOxbOKHntJ5z8gd4RjLpB+XMzx8H03MC+sPhcjiLTOUWadx1pk4yzLPHiUpm7qts YK1pPGfXI5wag== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Mark Rutland , Masami Hiramatsu , Paolo Bonzini , Shuah Khan , Steven Rostedt , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v4 3/3] tools/kvm_stat: use canonical ftrace path Date: Mon, 13 Mar 2023 15:17:45 -0600 Message-Id: <20230313211746.1541525-3-zwisler@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230313211746.1541525-1-zwisler@kernel.org> References: <20230313211746.1541525-1-zwisler@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: 4mxysy6kcfzij98zr6esj9ypdo3zzexb X-Rspamd-Queue-Id: 08F98A000E X-HE-Tag: 1678742298-44205 X-HE-Meta: U2FsdGVkX1+C5H7YHI4xB/1KDRSmouV+S8d1SAJ9tKBaSi7gXA1cGVLMK69yLX7Alc5JRoeaqVS0bzZSyoTnupzBdWqW2qy2eht0AB8ZdPY0l3vzDfHQ8jItO7I8kxvgWimGLIcK1nHkQ2B3sqJrearG8J0/NopfK+XOy4Szhs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+fQWcFfdNjcjqVLTU//ST/bbFhMdSxin6/6uBj+tr2p2Zi4fTFEc4F20j5+gngVt6wVTWf/NrDiWa2x4BeuyXOj8iAk0GEdxWKnGgABYDx3mckyNH2k8vUEc9gi1rWn+p3rRjTg23OT15URbVFxYaO+gQt6BACe82im6SsMtkFpOk2keBl/QMOU2vAAQV93/gBuds50YZkVfYup1hmyfRCxhYCWCx+KVRppvVHShwP62Ds8Qv48eiOPi0mDDGB6 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.