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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E90BC61DA4 for ; Tue, 14 Feb 2023 16:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232007AbjBNQYh (ORCPT ); Tue, 14 Feb 2023 11:24:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbjBNQYQ (ORCPT ); Tue, 14 Feb 2023 11:24:16 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD77A2BEC5 for ; Tue, 14 Feb 2023 08:23:55 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id h5so608639ilq.6 for ; Tue, 14 Feb 2023 08:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3MCeZLLD36scDNZoKo/i+quNrCjBM4LKtgguziA0l4w=; b=nrdh9Z84zfj9LOzMn+lI3fFgOtcYXOWVU476R4GXqb9T+5knOUZpcH0VWXUlyLOxUk QqBT0KIl0spl/VcfYVEgjfpa3reZeqFn6LkRNAou/eWgMwMxs0xNytzbFVOBdoRfsYQf 08f8GdbBGvf0cxHosWyzpCaaf8teMxqt2IuA1Hux58Ax11ArqRxzzee3UVrvjGb9Ok8v xsBBmAlBuDXdGClv7qD+kVheX0zIaa6rHgmcpMaZqvZb1dEntk7oe7e8Kp/brO8/EJD/ 3v8nzTfxjOjv+AGP5Fg9AYOPYaLWx8JaN9SV1SQC7NsuBwhCqUOGxJLyOxRjd1l0/N2m XSnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3MCeZLLD36scDNZoKo/i+quNrCjBM4LKtgguziA0l4w=; b=GkVIEboqS/nNty6m4xTU17yhmqvXMrm2lUwzoq8Tqd6yOh7dLwp6QywXvx3jJ5kR1k 7qPw03A9KNhkoCOOfXaSAxUMSOiqVFUgTooXFoRoIom4MBCUERntbPmj2ZR+GcY+MqFE irgoqTSqkvLNKqiogilQ576VZfLOxEmWbNPXjkx2d461S+9VIF7tkJKxGLTnw5knSN5D FKBZFRywIGmSk6F17M1z/vUkguXI8iStIrAIvD/zozWODTnPuV6kl4WnMJVwRWxeuniy FFvN4XoWEiETmSMNLWchP9kDk99aLxSjO/vaHvYlyUP1XZAn0wzqj87/BWPWBg0gm5xN 0pAw== X-Gm-Message-State: AO0yUKVy/sM3M6KhRNH7IehSCsfQVFuRuRIGhU3YY+x73bGw3PNq8ANz DJ03749P2y4Q/IdXka8x26hOAg== X-Google-Smtp-Source: AK7set+wJTuQl8bVzZfJEVNUDl1DwEE7qqT3W2fILJ4rTMV1GNjuooGt41tO4/tI3+LbmRiqF1wXoA== X-Received: by 2002:a05:6e02:160a:b0:312:5834:f6cf with SMTP id t10-20020a056e02160a00b003125834f6cfmr2942825ilu.1.1676391833204; Tue, 14 Feb 2023 08:23:53 -0800 (PST) Received: from google.com ([2620:15c:183:200:5ac1:1b03:ce8:c64b]) by smtp.gmail.com with ESMTPSA id h10-20020a056e021b8a00b00313be472e06sm4870411ili.67.2023.02.14.08.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 08:23:52 -0800 (PST) Date: Tue, 14 Feb 2023 09:23:48 -0700 From: Ross Zwisler To: Stanislav Fomichev Cc: Ross Zwisler , linux-kernel@vger.kernel.org, Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Hao Luo , Jason Gunthorpe , Jiri Olsa , John Fastabend , KP Singh , Leon Romanovsky , Martin KaFai Lau , Mykola Lysenko , Shuah Khan , Song Liu , Yonghong Song , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, Steven Rostedt , linux-trace-kernel@vger.kernel.org, "Michael S . Tsirkin" Subject: Re: [PATCH bpf-next 1/2] bpf: use canonical ftrace path Message-ID: References: <20230213221835.592763-1-zwisler@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 13, 2023 at 06:57:16PM -0800, Stanislav Fomichev wrote: > On 02/13, Ross Zwisler wrote: > > 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 > > > Many comments and samples in the bpf code still refer to this older > > debugfs path, so let's update them to avoid confusion. There are a few > > spots where the bpf code explicitly checks both tracefs and debugfs > > (tools/bpf/bpftool/tracelog.c and tools/lib/api/fs/fs.c) and I've left > > those alone so that the tools can continue to work with both paths. > > Doesn't seem to apply cleanly to bpf-next? > > https://github.com/kernel-patches/bpf/pull/4584 Oh, apologies, I was using Linus's master branch as my baseline. I'll send out a v2.