From patchwork Mon Jan 30 18:19:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13121573 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 D8A4CC54EAA for ; Mon, 30 Jan 2023 18:19:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 735CE6B0078; Mon, 30 Jan 2023 13:19:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BD4E6B007B; Mon, 30 Jan 2023 13:19:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5108D6B007D; Mon, 30 Jan 2023 13:19:44 -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 3B10F6B0078 for ; Mon, 30 Jan 2023 13:19:44 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 49BEE4091F for ; Mon, 30 Jan 2023 18:19:43 +0000 (UTC) X-FDA: 80412278646.19.35AF002 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) by imf01.hostedemail.com (Postfix) with ESMTP id 591B140018 for ; Mon, 30 Jan 2023 18:19:41 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=RfZdv5XT; spf=pass (imf01.hostedemail.com: domain of zwisler@chromium.org designates 209.85.166.176 as permitted sender) smtp.mailfrom=zwisler@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675102781; a=rsa-sha256; cv=none; b=t2UsuGJSJD7QHoKWAhfpbr3TkW/2CA4yrf1fGp44hlcIqVWpaaTeFiXMTue1k8Hh/GDQpB UDsKJSd76QMsWh8/rtRZsNn25O0aDZFqPqOWNjDjpPz6rS8C7PMbdl9Z5K4dcjnVzlAn6P sDW/DH77ZxmwLd6xf9UHXpfw13kJPnw= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=RfZdv5XT; spf=pass (imf01.hostedemail.com: domain of zwisler@chromium.org designates 209.85.166.176 as permitted sender) smtp.mailfrom=zwisler@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675102781; 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=CAFjNasnKQN5LUWGdN7AtadW817QQm7F4FvMhjCHwb0=; b=cpUiRt0VBBY1FCBU3QGqsDN23jaSks+OPKWSHVYNhxPYBGX6x9BYudjHQ/50nTs72UD4XX NoG7B+Qeg4I2SJguCPoPAlDGHhM2TApKL6rnhRNKcKpPfDWsfaacGs0anvcOPTxd5JK1xt sh4fnOCRmovU5hbJR7Cb9bGw1/3npLA= Received: by mail-il1-f176.google.com with SMTP id u7so3958690ilg.4 for ; Mon, 30 Jan 2023 10:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CAFjNasnKQN5LUWGdN7AtadW817QQm7F4FvMhjCHwb0=; b=RfZdv5XTG+8uD8qkRBhdwNBF0cK8e8hji8B33Gj95Q6avMrpQVnYUAuUvQ6T7IR8+p MYCxMzFUWeWWkyawSiU0lbQwLFknwHfAQy3hsCbXbZdWrjCG2Tc3YHS7D6WPN1oWkG0f eFMyiUb05xok2QkhaK8jh7WLReqLeYSqv2qpU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=CAFjNasnKQN5LUWGdN7AtadW817QQm7F4FvMhjCHwb0=; b=s0mBbKsB/maxgkmkqO/Ncjq51a+IC50h+5Fgf5h0tF+II+JaDI517UvJFRQIaTzJqC aUZiStQgPsHzwYVGHg8WgNo6B5FMhJ1lWGK22IDfw8caY/JoM3cf8Qr/3PJLrsmFzwIW QNZaWNzOJgk3WXgvQY5ualQQQnSrPGaYDeL4uGR7bXPaqsKOYo4rYTyXK01kclOlOkaK X+UAVIh60RLck6rRSrDYPEcQpf4hs9ytrRC+SKCnMwSHj08i8OQuDnzWm34m3VUrao47 15PYnz7LXSHLsl45ITMbHkZz1Njxp9NUL88jgACVuxBBr5xqindT+ltGjrkN1VNBJEU+ 35zw== X-Gm-Message-State: AO0yUKV8LPsLR6oq60xclOfzTFTRzQPKvS0K9U5dTbZ2iaYHyIp8p24k Fhhb42PjNPcGv7s9eKCF4jwysg== X-Google-Smtp-Source: AK7set+mwFjhaqPt63RqulQxBusxgMUOOgqwMk/p2L94uGQONgxdBYrhcYQqNFbg7qLSnkSytLx+CQ== X-Received: by 2002:a05:6e02:1541:b0:310:c510:780c with SMTP id j1-20020a056e02154100b00310c510780cmr12382570ilu.11.1675102780494; Mon, 30 Jan 2023 10:19:40 -0800 (PST) Received: from ravnica.bld.corp.google.com ([2620:15c:183:200:fc8a:dd2f:5914:df14]) by smtp.gmail.com with ESMTPSA id o16-20020a056e02115000b002f139ba4135sm4189801ill.86.2023.01.30.10.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:19:40 -0800 (PST) From: Ross Zwisler X-Google-Original-From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Michael S. Tsirkin" , "Tobin C. Harding" , Alexander Shishkin , Alexei Starovoitov , Andrew Morton , Andrii Nakryiko , Arnaldo Carvalho de Melo , Daniel Borkmann , Hao Luo , Huang Rui , Ingo Molnar , Jason Gunthorpe , Jason Wang , Jiri Olsa , John Fastabend , KP Singh , Leon Romanovsky , Mark Rutland , Martin KaFai Lau , Masami Hiramatsu , Mykola Lysenko , Namhyung Kim , Paolo Bonzini , Peter Zijlstra , Shuah Khan , Song Liu , Stanislav Fomichev , Steven Rostedt , Todd E Brandt , Tycho Andersen , Yonghong Song , bpf@vger.kernel.org, kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-rdma@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 0/9] use canonical ftrace path whenever possible Date: Mon, 30 Jan 2023 11:19:06 -0700 Message-Id: <20230130181915.1113313-1-zwisler@google.com> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 591B140018 X-Rspamd-Server: rspam01 X-Stat-Signature: ewr4exi4p1d8kjz64rd4wumss8jwzyzy X-HE-Tag: 1675102781-661261 X-HE-Meta: U2FsdGVkX1+bTcnbCAPNwCaJzTlVq4KI4TUKEPzHpwuxOw7OrNk2ybWsa2e2myHcM4ITKsu2zcmgJx964QyNu4hY/q0qW+1tL4ezVPRNEOy9NZ8VH1/gb7phsYVvAbUpBJNVA286imSsV8vzOj/rd6PwTw3M63SHd/1UlDi+0NPTU4fvYKNbndDy0iQV+Gth4wNshsTyNUYIWQ9FXn6eXgek3zmMiAdNPCTBIFwwfdxh4Qv2pOENZskvaVNZl0qRYeGYxzFseQXnozMI/Kfazw8LEGUNZzmTNfE+KUD3yaJ4oxtG2lhkwVV3Ljxism0Io01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=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 There are many places where this older debugfs path is still used in code comments, selftests, examples and tools, so let's update them to avoid confusion. I've broken up the series as best I could by maintainer or directory, and I've only sent people the patches that I think they care about to avoid spamming everyone. Ross Zwisler (9): tracing: always use canonical ftrace path bpf: use canonical ftrace path selftests/bpf: use canonical ftrace path perf docs: use canonical ftrace path tools/power: use canonical ftrace path selftests: use canonical ftrace path tools/virtio: use canonical ftrace path leaking_addresses: also skip canonical ftrace path tools/kvm_stat: use canonical ftrace path include/linux/kernel.h | 2 +- include/linux/tracepoint.h | 4 ++-- include/uapi/linux/bpf.h | 8 ++++---- kernel/trace/Kconfig | 20 +++++++++---------- kernel/trace/kprobe_event_gen_test.c | 2 +- kernel/trace/ring_buffer.c | 2 +- kernel/trace/synth_event_gen_test.c | 2 +- kernel/trace/trace.c | 2 +- samples/bpf/cpustat_kern.c | 4 ++-- samples/bpf/hbm.c | 4 ++-- samples/bpf/ibumad_kern.c | 4 ++-- samples/bpf/lwt_len_hist.sh | 2 +- samples/bpf/offwaketime_kern.c | 2 +- samples/bpf/task_fd_query_user.c | 4 ++-- samples/bpf/test_lwt_bpf.sh | 2 +- samples/bpf/test_overhead_tp_kern.c | 4 ++-- samples/user_events/example.c | 4 ++-- scripts/leaking_addresses.pl | 1 + scripts/tracing/draw_functrace.py | 6 +++--- scripts/tracing/ftrace-bisect.sh | 4 ++-- tools/include/uapi/linux/bpf.h | 8 ++++---- tools/kvm/kvm_stat/kvm_stat | 2 +- tools/lib/api/fs/tracing_path.c | 4 ++-- tools/lib/traceevent/event-parse.c | 8 ++++---- tools/perf/Documentation/perf-list.txt | 2 +- tools/perf/Documentation/perf-script-perl.txt | 2 +- .../perf/Documentation/perf-script-python.txt | 4 ++-- tools/power/pm-graph/sleepgraph.py | 4 ++-- .../x86/amd_pstate_tracer/amd_pstate_trace.py | 4 ++-- .../intel_pstate_tracer.py | 10 +++++----- .../selftests/bpf/get_cgroup_id_user.c | 2 +- .../bpf/prog_tests/kprobe_multi_test.c | 2 +- .../bpf/prog_tests/task_fd_query_tp.c | 2 +- .../bpf/prog_tests/tp_attach_query.c | 2 +- .../selftests/bpf/prog_tests/trace_printk.c | 2 +- .../selftests/bpf/prog_tests/trace_vprintk.c | 2 +- .../selftests/bpf/progs/test_stacktrace_map.c | 2 +- .../selftests/bpf/progs/test_tracepoint.c | 2 +- tools/testing/selftests/bpf/test_ftrace.sh | 2 +- tools/testing/selftests/bpf/test_tunnel.sh | 8 ++++---- tools/testing/selftests/bpf/trace_helpers.c | 4 ++-- .../testing/selftests/user_events/dyn_test.c | 2 +- .../selftests/user_events/ftrace_test.c | 10 +++++----- .../testing/selftests/user_events/perf_test.c | 8 ++++---- tools/testing/selftests/vm/protection_keys.c | 4 ++-- tools/tracing/latency/latency-collector.c | 2 +- tools/virtio/virtio-trace/README | 2 +- tools/virtio/virtio-trace/trace-agent.c | 2 +- 48 files changed, 96 insertions(+), 95 deletions(-) Acked-by: Michael S. Tsirkin