Message ID | 20230310192050.4096886-4-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 v21csp1057390wrd; Fri, 10 Mar 2023 11:25:25 -0800 (PST) X-Google-Smtp-Source: AK7set8horQk/8RsQMjdd8ruqxxF+E/PVMwD+BS1jmWtg7FSq1UayWEavZLyE2hZniG1prgED60k X-Received: by 2002:a17:90b:350c:b0:234:2776:a357 with SMTP id ls12-20020a17090b350c00b002342776a357mr26699688pjb.43.1678476325316; Fri, 10 Mar 2023 11:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678476325; cv=none; d=google.com; s=arc-20160816; b=o0WDM2pAiBsj5tkUqfhNfuMYtMJQCKEzmUbynafDED+V0QMW3DV+zXJnoB1vYpnd/w RsiKOcYX9g3duDWrVEhnolKaQZs1w/dzW+EFx0Y6V91mVBgQ+HmVnxuLlx+g+6/T22Ym vb6/bDUQOOkn+i3vAQZuvcGAcr3ucF7B5ta+GmpbHJGHCGTLl8YZn7Ta4uc1nQ3V2qFK 3BvAn4oiwWD1dtVBl2V/cR4GCp0U8bcKn1gztOiGyCEsjWz8R5VnQ3z3B4v6q2ScRt7G 29b4/Qln5E/9V2Ck74NQ0dKxjjeloEKo42lePb25hgGLlwUiCKQRrglsrHTovY+4d9Ag Nbyw== 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=3/+2ojixyhhWhLcY9z5q+bsIvJbvQKmx2RzvDPafldg=; b=SsHfIVU/vbr0MJrScx+Av1PXpMRZbIcW8diKBP3YQcYWrygdTgw13UvUmgkrM4PV2u dcS1FpabbwkDPrBfCrPcBoY7ECrLq/Oj3yFS87NvhzeeE2JgMKhxTjE32KoiHshaUh0k nxqCDDOG/i7RHdPewhXiLCAY/iZrEBFCcj0aTsFEfaArtgUTH1OE9Nh9tmgo/oHxxGU1 wUJikieZZ++edqqnQk0gOUVmhc4JoPO5c6QO8g0fWdfSthpkkS/OZtulmFi03swZJd43 2xUH6apOSRNEoJhIWZEAvsu8A90rkUXSz7zBQ//B0jK2WCnPp5Y+J6s1ed3jnDzrSUMX CEjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CkGDGqcL; 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 l6-20020a17090a850600b0022bb87f2dfdsi466219pjn.129.2023.03.10.11.25.12; Fri, 10 Mar 2023 11:25:25 -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=CkGDGqcL; 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 S231228AbjCJTVP (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 14:21:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbjCJTVH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 14:21:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F0612972A; Fri, 10 Mar 2023 11:21:07 -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 A3CF961D45; 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 <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, Steven Rostedt <rostedt@goodmis.org>, Mukesh Ojha <quic_mojha@quicinc.com> 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 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?1760009991255936887?= X-GMAIL-MSGID: =?utf-8?q?1760009991255936887?= |
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 A comment in kvm_stat still refers to this older debugfs path, so let's update it to avoid confusion. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Signed-off-by: Ross Zwisler <zwisler@google.com> --- 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.