Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp30490rdb; Thu, 5 Oct 2023 15:35:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM7GP50vHPgGKWxtroi1pUShwrO12D1hqmnrxvco72EEC8sRMwpU8ZjPrQqfHe0mjpXnF5 X-Received: by 2002:a17:90a:1549:b0:278:fe0e:4ffa with SMTP id y9-20020a17090a154900b00278fe0e4ffamr6402790pja.43.1696545328057; Thu, 05 Oct 2023 15:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696545328; cv=none; d=google.com; s=arc-20160816; b=NtDW7dkfD7ABK9GDp6EzjcZPJRNc/yoMb3NcP0nnEm7PQwDUX6oU9xXjDB5p0oMkAt qIyTZBRPav3hLl1H+ajFyFba1ry5F3YGH6umJTo5cSlfQfpFVmXsfQY5ReWOnNO2wyGi tdvlBoczv/UzOhU0WDPKhx9BXvO1e157WhTXK3kX2Lc/pRigKt1gAME9JfaeKv1di1Ao QjuzhDdB+C4Bxyd8xrak1JglfUOYG0PDMXCdIl9wctCWp06n3bZe8Agggu6PULYKabqH sJ1oIplkOw0QSPc5SrJhb3LLquHrji0FlLs6uzPjAIRQ4Dzath23ciWG4C5Tm4kjHE0o HKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OKaIQ8Zyh16/tVcnFuQ7sDuazPniKY0bHDKBdsLSgQk=; fh=RuHkSBMT9VebTgwH7Ijtfk58mND3kKBGsz/oEcM5fd4=; b=dnAS9mWhsrr8N3IhLFaKnFcveeeZ9MdMcNSLXS9RhsPbwGOFaiqsmhnLYBJLyKwT25 jZH/d0NltTSBZ0LWx2/xNAcNhcWhCV0c5fXRY733u0ra3F7fS0+fs1wfaElvfmpJnOoU SL4cZ2b1RwuetnpNvtGnKIC/w5E4apdrwgJmIicSAIuzRLzugIilsDpr03UrFN04noXP oUGfCesBLJzIPqMLRjF2LPG0QTRZBMud50LTFZ+i7JesUnzADeLWIExxHr9MIhUUSCXC 6qCi7e4/pm4CVdGuAdIJ6AavynqaB2nMXwe5FFkFLVpQLrJjel1nyegxpdbS/ovv937k 3JtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=eh+J96NB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id on14-20020a17090b1d0e00b002747da1ef66si2701611pjb.53.2023.10.05.15.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 15:35:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=eh+J96NB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 502BF802FD2B; Thu, 5 Oct 2023 15:35:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbjJEWfZ (ORCPT + 99 others); Thu, 5 Oct 2023 18:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjJEWfY (ORCPT ); Thu, 5 Oct 2023 18:35:24 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D993D6 for ; Thu, 5 Oct 2023 15:35:21 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5032a508e74so1017e87.1 for ; Thu, 05 Oct 2023 15:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696545320; x=1697150120; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OKaIQ8Zyh16/tVcnFuQ7sDuazPniKY0bHDKBdsLSgQk=; b=eh+J96NBuFviMzGYQlf4gKBBEneDV9hiuYpnxbID13tIz/GUaGyVD2AtxSLHbKZ2YT zPgv1xGYVrkxBefoN08PQaUANOZGLHmJf1wdHVMu8Bd9uJ/HlbToiAbPTQu8iGYaQV1t pdTP/+58ifJeJaIcvJSaBC9hzmDBZSY5KZw5W7m9PRfvFTzH860suvBOKm2XoWem68Oc KJ0IvE6D/U6OAWdaj35peKV8AMGp5RD+vHyynr4vgRNbtzr9UJ63Pxi0TI6uynZtQ0V5 XmH7mpoZGBAXxqJ67AXpFRYxNm4SJ+UX7xhRpXcG1vkyUZPAgcsvg1UVnkjvqpJLSnHn rF6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696545320; x=1697150120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OKaIQ8Zyh16/tVcnFuQ7sDuazPniKY0bHDKBdsLSgQk=; b=lgmQIWU9UStl6agDvUDfgHXksLgDCMekAUcO99xOBOVnBCk+x4VFI1QQWn/Nx8zzDP D5DILKFYMpTj/4bX4V5s2Yld2e7Sj1Pm3n7nFM0FfYIYkH7F+lAElXlFSfMdJ5zLHJUV wLodHa68wJoDnzmWyDfXWRoCKyQa9meUDGbURPiH3v3WxQCJlIbTVUW2O5oTLKbmjDAU ybj/PlX0qNK1PIvFvAIrWU8I4MWc8u3glY34WYg67GXvr3sNxnW6htM8HiQx6qqWewmB dstKodYUKL5v0n7lQh4reoU7YH+ts0Ielw3v1eDNEVKDheplSny5mgWcbfmCqCV4Hc89 kBaw== X-Gm-Message-State: AOJu0YxCH4nOwhJI/L4FwxXV8iNxEUXlm9Px4qzUyVguddeActrN1Mnm OMH7zH8B5F796UTBf4adumvnXcN/Vz2Ga1wl2svJiw== X-Received: by 2002:a19:7006:0:b0:502:dc15:7fb with SMTP id h6-20020a197006000000b00502dc1507fbmr90726lfc.5.1696545319446; Thu, 05 Oct 2023 15:35:19 -0700 (PDT) MIME-Version: 1.0 References: <20230923053515.535607-1-irogers@google.com> <20230923053515.535607-2-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Thu, 5 Oct 2023 15:35:07 -0700 Message-ID: Subject: Re: [PATCH v1 01/18] gen_compile_commands: Allow the line prefix to still be cmd_ To: Masahiro Yamada Cc: Nicolas Schier , Nick Desaulniers , Nathan Chancellor , Tom Rix , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Yicong Yang , Jonathan Cameron , Yang Jihong , Kan Liang , Ming Wang , Huacai Chen , Sean Christopherson , K Prateek Nayak , Yanteng Si , Yuan Can , Ravi Bangoria , James Clark , Paolo Bonzini , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 15:35:27 -0700 (PDT) On Tue, Oct 3, 2023 at 7:31=E2=80=AFAM Masahiro Yamada wrote: > > On Thu, Sep 28, 2023 at 11:26=E2=80=AFPM Nicolas Schier wrote: > > > > On Mon, 25 Sep 2023 09:06:11 -0700, Ian Rogers wrote: > > > On Mon, Sep 25, 2023 at 8:49=E2=80=AFAM Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Sep 22, 2023 at 10:35=E2=80=AFPM Ian Rogers wrote: > > > > > > > > > > Builds in tools still use the cmd_ prefix in .cmd files, so don't > > > > > require the saved part. Name the groups in the line pattern match= so > > > > > > > > Is that something that can be changed in the tools/ Makefiles? > > > > > > > > I'm fine with this change, just curious where the difference comes > > > > from precisely. > > > > Reviewed-by: Nick Desaulniers > > > > > > I agree. The savedcmd_ change came from Masahiro in: > > > https://lore.kernel.org/lkml/20221229091501.916296-1-masahiroy@kernel= .org/ > > > I was reluctant to change the build logic in tools/ because of the > > > potential to break things. Maybe Masahiro/Nicolas know of issues? > > > > I haven't seen any issues related to the introduction of savedcmd_; and > > roughly searching through tools/ I cannot find a rule that matches the > > pattern Masahiro described in commit 92215e7a801d ("kbuild: rename > > cmd_$@ to savedcmd_$@ in *.cmd files", 2022-12-29). For consistency, > > I'd like to see the build rules in tools/ re-use the ones from scripts/ > > but as of now I don't see any necessity to introduce savedcmd in > > tools/, yet. > > > > Kind regards, > > Nicolas > > > tools/build/Build.include mimics scripts/Kbuild.include > > That should be changed in the same way. Thanks Masahiro, I support that as a goal, I'm not sure I want to embrace it here. For example, in tools/build/Build.include there is: ``` # Echo command # Short version is used, if $(quiet) equals `quiet_', otherwise full one. echo-cmd =3D $(if $($(quiet)cmd_$(1)),\ echo ' $(call escsq,$($(quiet)cmd_$(1)))';) ``` This is relevant given the use of cmd_ and not savedcmd_. In scripts/Kbuild.include there is no equivalent, nor is there in scripts. So do I dig into the history of echo-cmd unfork that, and then go to the next thing? I find a lot of things like tools/selftests/bpf won't build for me. When I debug a failure is it because of a change or a pre-existing issue? Given the scope of the Build.include unification problem, and this 4 line change, I hope we can move forward with this and keep unification as a separate problem (I totally support solving that problem). Thanks, Ian > -- > Best Regards > Masahiro Yamada