Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5971151rwd; Mon, 5 Jun 2023 11:00:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lJychKkhJ7znQ6mn5Ze7Mg3vdfboOiM/mAatnPUJS4XaKvnHUzgn8nuRHGX58+mQXhnim X-Received: by 2002:a05:6a20:2454:b0:111:92ef:3146 with SMTP id t20-20020a056a20245400b0011192ef3146mr4330906pzc.25.1685988039355; Mon, 05 Jun 2023 11:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685988039; cv=none; d=google.com; s=arc-20160816; b=GZNf+k8xaW9yJtuAEJwLF8qQIOg8Oaltr+kZFYJXkW6OJsCCVgAWnGKa158b31ME6+ BmODW+S2sBzMLrY9NAh1Vt0GErWvek0sCAXgODOASkEJUj1Y5iiQm1HYzgovMLKwhLV2 fPoNWIiP79hnGGEVkTem9Fk5ezpCvCKqsO5GQQY05Ik1/l7Xsl8BV5apmsFuhv78dlhh mAHhB/KvAiswM69CSkFlR1du1aSB+HCGaoar4xK23KodYVOqZ3hXGrGcNBNGRNessGGF 1v6gzYglE3jSUQe6yOKLiyYLkXuvuhgxHy4Lp+22s3C9V9TimAFpWbu7O48pOUjSRfvO jfCg== 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=hxEXC71EvIBIyrKJkGLhD82I8t0W90h4l0Ayz0o/Zuk=; b=yy/p1VtypQzApEMRcGOs0ZdR5V/VgNdwOPaRfCsuC77FOaSVQobRVOX3Kh2clgkC9b vZqeEBsYftyjEsyPuh1T0PkD/m4LACOe0qN2rJVSzwV1c9ps+AlVtZLCS83JdbZ8zUwH Wrh0XomckmKDopGVteN2HephYC3KEV3HlWVijLYV8HoS80dF0Tw+yNQgF69BEFvwxZ6z KlQnyUB+QUbbLpzVNK6UqKJt9OK6B//cuZvWy3vQthNmbFp24PCNywZ1aqeUhQsWLnhL pRTGzfreDCZSB6m41ei31ezF9J3dlhZ3Hte2fOc3QGzpyb4jIYwMOw4ki0fPRSh7Ws8S B9bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=E4z+OtE2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t127-20020a637885000000b0052c7ad564e2si6008146pgc.707.2023.06.05.11.00.20; Mon, 05 Jun 2023 11:00:39 -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=@google.com header.s=20221208 header.b=E4z+OtE2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235162AbjFERTF (ORCPT + 99 others); Mon, 5 Jun 2023 13:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234541AbjFERTE (ORCPT ); Mon, 5 Jun 2023 13:19:04 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29958D3 for ; Mon, 5 Jun 2023 10:19:03 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-33bf12b5fb5so8205ab.1 for ; Mon, 05 Jun 2023 10:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685985542; x=1688577542; 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=hxEXC71EvIBIyrKJkGLhD82I8t0W90h4l0Ayz0o/Zuk=; b=E4z+OtE2bX/yCcT11XrY69kLEAdDfz8lyFnka1MGrcDLwOe8Zc/Nb0mpY4WBcxg85n scSbvoLxQn9L72GYXgySm/QNrAqXk2QF++Hzl8IMDcMsi9h4DrltRmmdRv+ia8hvyhKR F/hxReUxd60B94T1dYjNmaJONz8f5UuJJM9++Nwoyh5NuRJYSnOxs8Xmsjif6ticCaLa VuZ7ZvT6VVhJrVEUV12OdRiVx3R89skZso8eBtU7BQNOmRx30UzNbx61LCMDS11zg36G CWhgIKdMtWHe7jHfWhMxyi7KMzqs6SDQkeAlQK2Xsq4uVgh13dLRzLhRuUS27sdWn8ep oaCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685985542; x=1688577542; 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=hxEXC71EvIBIyrKJkGLhD82I8t0W90h4l0Ayz0o/Zuk=; b=UBA8GxyypWQ/VSe05wCupC9IIk+ixmDGPBoLZYl5nyU4Jzqg3nyQ20Wk46KSn50Nmf Pn1jEUO0JUYQt5Q9u1V1ilqyVdamb2fYVInkpWHDAaNyDyTxhPz3ZuRH3BcHuOEmqJ/w yygXCwzGZrCa8Ohtt36abX/UhDMNaj/0/9XzgFSns+AddZChDq+fljyC3MyLtXaUo1iY urFIfA/fI4TSWzNJGtQFFLwB5SjvXGroVkdlsU6J+xm3OiTIOa3cp/8Zmq8iFTRmagM/ ZW5IgUJ+dNihXCWf9hF3F/wtmGOdM35QCGQvozYF7pCg/Gqdo1SJNH3xNRgKo8SVvT9x Jmtw== X-Gm-Message-State: AC+VfDyfAH4+h9oAAFq4zgqh3OybACISxP1fFN1agLV4dFmCjO1UnNcR 9ivaWsNWWk7AV3ot0GZ64RoQMdWi8i3cD/+HozRoJA== X-Received: by 2002:a05:6e02:1e07:b0:33d:c057:f811 with SMTP id g7-20020a056e021e0700b0033dc057f811mr10502ila.1.1685985542393; Mon, 05 Jun 2023 10:19:02 -0700 (PDT) MIME-Version: 1.0 References: <20230522204047.800543-1-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Mon, 5 Jun 2023 10:18:51 -0700 Message-ID: Subject: Re: [PATCH v1 0/3] Bring back vmlinux.h generation To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Andrii Nakryiko , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , James Clark , Tiezhu Yang , Yang Jihong , linux-perf-users@vger.kernel.org, linux-kernel@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_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, May 22, 2023 at 4:35=E2=80=AFPM Andrii Nakryiko wrote: > > On Mon, May 22, 2023 at 1:41=E2=80=AFPM Ian Rogers w= rote: > > > > Commit 760ebc45746b ("perf lock contention: Add empty 'struct rq' to > > satisfy libbpf 'runqueue' type verification") inadvertently created a > > declaration of 'struct rq' that conflicted with a generated > > vmlinux.h's: > > > > ``` > > util/bpf_skel/lock_contention.bpf.c:419:8: error: redefinition of 'rq' > > struct rq {}; > > ^ > > /tmp/perf/util/bpf_skel/.tmp/../vmlinux.h:45630:8: note: previous defin= ition is here > > struct rq { > > ^ > > 1 error generated. > > ``` > > > > Fix the issue by moving the declaration to vmlinux.h. So this can't > > happen again, bring back build support for generating vmlinux.h then > > add build tests. > > > > Ian Rogers (3): > > perf build: Add ability to build with a generated vmlinux.h > > perf bpf: Move the declaration of struct rq > > perf test: Add build tests for BUILD_BPF_SKEL > > > > tools/perf/Makefile.config | 4 ++++ > > tools/perf/Makefile.perf | 16 +++++++++++++++- > > tools/perf/tests/make | 4 ++++ > > tools/perf/util/bpf_skel/.gitignore | 1 + > > tools/perf/util/bpf_skel/lock_contention.bpf.c | 2 -- > > tools/perf/util/bpf_skel/{ =3D> vmlinux}/vmlinux.h | 10 ++++++++++ > > 6 files changed, 34 insertions(+), 3 deletions(-) > > rename tools/perf/util/bpf_skel/{ =3D> vmlinux}/vmlinux.h (90%) > > > > -- > > 2.40.1.698.g37aff9b760-goog > > > > > > LGTM, for the series: > > Acked-by: Andrii Nakryiko Arnaldo, could we take this set? Thanks, Ian