Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp256950rwo; Tue, 1 Aug 2023 16:42:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEb1s4mol9F05oa294Vvagp0I7tWtetugtMDDeaTJX436mRd6e6eevo5CzygyIvPH5JMNCN X-Received: by 2002:a2e:7308:0:b0:2b9:b3e9:a027 with SMTP id o8-20020a2e7308000000b002b9b3e9a027mr3681718ljc.34.1690933373273; Tue, 01 Aug 2023 16:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690933373; cv=none; d=google.com; s=arc-20160816; b=TDhjmW02fhheq24pIRT1YvdARcSzjpsm0jgdlKd+2WeWLu4GPERPfunKLhmHnO5M0f OukJ/VB70AmnUkcSD6enc/AhW9A9tGTzReTIliPMLC6XNkaXz8/wER1T1Pnztc1Jjm5E mEht5kZ1AWEI1wxr9IrEJh6brzli71QggJq5/5NofRbEKyIYiy3HmnU2WWQA7NNbD/EY F0XsyISR2WJ6ZSDppAnKTqPpQiVLZYn3BhtR/EjEZujhbS+Dq6/bawdRmaBTlhvVDley DZ2YfmNOq0qHMqXSry+ejmlPqnN7nKhDdnChvDE9xWB+rDWj3l7nQWgPYJTSi+IEFUTB E9nw== 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:subject:cc:to:from:date :dkim-signature; bh=fQoun+WjRiCC3GY+d2lVXh3ouvk9Hsmv6LFBKKhDQnc=; fh=itxY11/gPTi9KUx2ftc+xmu5phMyG7Fta2/UAAKnSHo=; b=Wfi9o/Smm/RD2COsQXjxr+3gBzozOJUiKp1KEK3sBe3aObj56PGUg1yuX1EhvyFv1Y uGc24alr9mk0uCYjsaMxiID2tu84zjOhHQqMRo4CAdTu2Ouj4Si2bk2ZHyd7Jm6aziU1 2F6Hsctz4f4fx6VEt3wQZeUbXd7FMCkehQvChQGOyR6zglrj+NslI8vgaZVYNwCuTBu3 /RFnPn02YRpqVIqrtACP5VJui/XfMlzxKaSJhYg8wVHVgMmw1B20B4zISRmzbrit1Ode hKRfZ5KK5pfJ9nYGqXYKjNYcSf7ydf09w+E5iZabYbsTq0gM4PCNfcy30doVsREXvJD2 LUZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YZTL4fES; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a17090616ca00b009662960f217si8875911ejd.303.2023.08.01.16.42.28; Tue, 01 Aug 2023 16:42:53 -0700 (PDT) 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=YZTL4fES; 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 S229795AbjHAXRT (ORCPT + 99 others); Tue, 1 Aug 2023 19:17:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHAXRS (ORCPT ); Tue, 1 Aug 2023 19:17:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C88B2103; Tue, 1 Aug 2023 16:17:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 297736176A; Tue, 1 Aug 2023 23:17:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B6D6C433C8; Tue, 1 Aug 2023 23:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690931836; bh=88zkvAVDUFWqbW4oJyMLFNy3ju90g2621RUrlMf/Du0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YZTL4fESnAxnkfayIkA5m25sZobaFGsMuDbvhwbG5rk32Vrh/STz+FnVSkmRMuneR sNDPe0AfCByyN7A7sI+zabf/sz1wHHpJp719Xh9zJaO8YwHmxP6MMEEgRMx6BqLg9Y x0LnEGIn+udJHza1m+Ox1PEJI/FGssHLoQ6sNzPnvFb1fwoWU1W/bn4bofvQipirdz 7yD8wix5G3U6I9Ki/FRdqSdy+SCW4O1txJ+KJiBwDrX6F3gy1lxajt8wej6Q44FohZ XWS6J6x0izVWJs3g5B4UgglwJ7BJyZy8teHdN+sEbDv/KNA2TJ2lgq5vIZjMx+cOZp 6vPF/jmjp2Y0w== Date: Wed, 2 Aug 2023 08:17:11 +0900 From: Masami Hiramatsu (Google) To: Alexei Starovoitov Cc: Steven Rostedt , linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Linus Torvalds Subject: Re: [PATCH v4 3/9] bpf/btf: Add a function to search a member of a struct/union Message-Id: <20230802081711.7711f8775ffc730b2c32df5e@kernel.org> In-Reply-To: References: <169078860386.173706.3091034523220945605.stgit@devnote2> <169078863449.173706.2322042687021909241.stgit@devnote2> <20230731211527.3bde484d@gandalf.local.home> <20230802001824.90819c7355283843178d9163@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Aug 2023 15:21:59 -0700 Alexei Starovoitov wrote: > On Tue, Aug 1, 2023 at 8:18 AM Masami Hiramatsu wrote: > > > > On Mon, 31 Jul 2023 19:24:25 -0700 > > Alexei Starovoitov wrote: > > > > > On Mon, Jul 31, 2023 at 6:15 PM Steven Rostedt wrote: > > > > > > > > On Mon, 31 Jul 2023 14:59:47 -0700 > > > > Alexei Starovoitov wrote: > > > > > > > > > Assuming that is addressed. How do we merge the series? > > > > > The first 3 patches have serious conflicts with bpf trees. > > > > > > > > > > Maybe send the first 3 with extra selftest for above recursion > > > > > targeting bpf-next then we can have a merge commit that Steven can pull > > > > > into tracing? > > > > > > > > Would it be possible to do this by basing it off of one of Linus's tags, > > > > and doing the merge and conflict resolution in your tree before it gets to > > > > Linus? > > > > > > > > That way we can pull in that clean branch without having to pull in > > > > anything else from BPF. I believe Linus prefers this over having tracing > > > > having extra changes from BPF that are not yet in his tree. We only need > > > > these particular changes, we shouldn't be pulling in anything specific for > > > > BPF, as I believe that will cause issues on Linus's side. > > > > > > We can try, but I suspect git tricks won't do it. > > > Masami's changes depend on patches for kernel/bpf/btf.c that > > > are already in bpf-next, so git would have to follow all commits > > > that touch this file. > > > > This point is strange. I'm working on probe/fixes which is based on > > v6.5-rc3, so any bpf-next change should not be involved. Can you recheck > > this point? > > > > > I don't think git is smart enough to > > > thread the needle and split the commit into files. If one commit touches > > > btf.c and something else that whole commit becomes a dependency > > > that pulls another commit with all files touched by > > > the previous commit and so on. > > > > As far as I understand Steve's method, we will have an intermediate branch > > on bpf or probe tree, like > > > > linus(some common commit) ---- probes/btf-find-api > > > > and merge it to both bpf-next and probes/for-next branch > > > > +----------------------bpf-next --- (merge bpf patches) > > / / merge > > common -/\ probes/btf-find-api -/-\ > > \ \ merge > > +----------------------probes/for-next --- (merge probe patches) > > > > Thus, we can merge both for-next branches at next merge window without > > any issue. (But, yes, this is not simple, and needs maxium care) > > Sounds like the path of least resistance is to keep the changes > in kernel/trace and consolidate with kernel/bpf/btf.c after the next > merge window. OK, sounds good to me. I will only expose the bpf_find_btf_id() then. Thank you, -- Masami Hiramatsu (Google)