Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6036439rwd; Mon, 5 Jun 2023 12:01:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vs7K/osecAeh+q7mzRvhJIXj43brt6sbzZvEQ9uqdQgoYOD8D85J1NrVnoIDNgzeLoRxh X-Received: by 2002:a05:620a:2b4d:b0:75d:44be:3f6a with SMTP id dp13-20020a05620a2b4d00b0075d44be3f6amr781340qkb.19.1685991671729; Mon, 05 Jun 2023 12:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685991671; cv=none; d=google.com; s=arc-20160816; b=sFEwtJdzPlFASwrGmJTWOXV/A2lLGxdoErDFmwq66ogE/tf0Aw7NtY+Pn/kch4qObV jnxFKRb4ZHOyQi14A2h0B4rlxn0ao3QQWng+PnEnvvVqkQ4BDNofWwv488S71hgT+s5a XWKJq2bsmZnKcw+eQIQxA8J4e5rmh2CdIE/o/xaPPZ+Eihwe1sSayiFye6bQOUv+uHeH Ba2GJsVDoY74G/W+NHJeHBtcY0XNDX2RC0k7ChkLFgI/itfwV58i10KdzQKYiN9MF2Gb 4ogrvgvAGmpHtz6ENXRHHj3RvFcoeQP7c2q24482mKAftl0ClLuwUAGGVJU1glD9ygvW xKOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hp/RNICogsXyUmi70MfTyModEM2Eb7ggyPx4qERbQ6w=; b=bAgBmqZEx+0SB+2YCmke97SeC5DLaawdfQULlLCS0g7+FjBMDSbdRANtNxEdwjpX+R MJOZYI4jqgXmKk4BBvuf/JOQBcd57lBZ5WWlEr3qmcHpv+oMDpJh/dJZP7ymT37ERhwV 5qdIJX3Qd00szuPcNF8Ouv7zneD/VBBqi0WQNpZyEH72vMhg94IWdsGJdL3YwCiWprNX 2rzOqmzmN9MU/ITAmvolnZgkUK4FRYRgfeVmmaHTG6OY8lHqNLHXnnxgvikT7I/HR1Nr 2JVNphmfmXBkGAd6+qO76U/SAx309O7pbbw280ESIZHLaMoqpBPQCc8oiQKJH/Gxqr6G wFwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iXd85Fpy; 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 o25-20020a05620a15d900b0075b3484f391si4595195qkm.426.2023.06.05.12.00.56; Mon, 05 Jun 2023 12:01:11 -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=iXd85Fpy; 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 S231792AbjFESzs (ORCPT + 99 others); Mon, 5 Jun 2023 14:55:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbjFESzq (ORCPT ); Mon, 5 Jun 2023 14:55:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 535AEEC; Mon, 5 Jun 2023 11:55:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC0D960FE1; Mon, 5 Jun 2023 18:55:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2150AC433D2; Mon, 5 Jun 2023 18:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685991344; bh=q4xUFuJJJxtPlTsBcWLs26PnVvYd9oytoQvgbXmfY9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iXd85FpyeBrPAOlpY4HFTqIB7ntYpRLJbbK6kmAn7qHGP+HdaHYYzmcZ30RDuBKGG SnSGDEMoNBj3OVrHmqwh7nh2oc05W9/AwVWeyR5l3QAhCSc1oGUDXNK/M6IzmX5lzp 8FFH8Ok4uikTpGMxppDNuy0H4KifiGZxBkKJYjomIdePD6X8KGsPobYgQtKvEz4OCI zeUhOP6Vby8ZW8dLLLXPli05yeTS1jQk/+m5kKnAdqt9X0YyEiWKNc+a2KcLSVggOE wXqJ3XecRcphEQ3tgOvLb6uRDV80mXmVZ/Gfzz07YsiB95dxT7btkHHrY/MrRF2/Zc mwTgc9ilEgGjA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 220A640692; Mon, 5 Jun 2023 15:55:42 -0300 (-03) Date: Mon, 5 Jun 2023 15:55:42 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers 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 Subject: Re: [PATCH v1 0/3] Bring back vmlinux.h generation Message-ID: References: <20230522204047.800543-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Em Mon, Jun 05, 2023 at 10:18:51AM -0700, Ian Rogers escreveu: > On Mon, May 22, 2023 at 4:35 PM Andrii Nakryiko > wrote: > > > > On Mon, May 22, 2023 at 1:41 PM Ian Rogers wrote: > > > > > > 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 definition 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/{ => vmlinux}/vmlinux.h | 10 ++++++++++ > > > 6 files changed, 34 insertions(+), 3 deletions(-) > > > rename tools/perf/util/bpf_skel/{ => vmlinux}/vmlinux.h (90%) > > > > > > -- > > > 2.40.1.698.g37aff9b760-goog > > > > > > > > > > LGTM, for the series: > > > > Acked-by: Andrii Nakryiko > > Arnaldo, could we take this set? This one isn't applying right now on perf-tools-next. - Arnaldo