Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp829003imk; Sun, 3 Jul 2022 09:52:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1soWCbbUUdwymVbDgIHZVh4RaKtCs+1+eg2ELATHCX4PcsXACSknUe7zaU9iF4Wv2d3CVI8 X-Received: by 2002:a63:6ec3:0:b0:40c:450f:2f83 with SMTP id j186-20020a636ec3000000b0040c450f2f83mr21709941pgc.220.1656867162754; Sun, 03 Jul 2022 09:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656867162; cv=none; d=google.com; s=arc-20160816; b=h8kWueSwznK4pquTBWlmcMob6tH1OD5eWGN2KaoYiLKTFgVAMkSKQYg1yVhBltMkzv n3z8faBp4CACgovII4FX3KAzZgPSVKT6EbJM+JTBLs08Y54C33brtyHS5okgz4uaSkVb 8niyXladXfThL9wuHeNTMKDcMe2UCGpCB/eRPS4lwo34bUTs1cgxdS7sfhvwf4LvZhQh e28DrIEafcd1Jx5b1JnYpqh13oMiMt4P9etcj38/85PF2/MQ5B+ey36nEPcuhiWDyLCQ 6+Yx5vBw/woKlNjAq3C6wKFoyEFJPlq7sxSrcdnXhsa1A56EXmuaz1UqCozV+QbNE4dw 3gRQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=sx2V7qb2mCRCN2UHEL7rClCbV0gR7Cm92ibBUoYCbAQ=; b=UxZEm2Y/yDA3wPcfnxlRKAFvm2+F+OyCCMMF65ZQUAjlf/6BOUh4HcdFbrGmXbEWNz FavZKNTw44pC+D14q/I36F9PsA0kj1Lv9QK906EojzklWF1M6wRj5LQ4tHtWmt6MMNlC m+GMzqdcRqZQ2pH7Wf7qgu8hWP7d27ntCsVtzawT5X5Xm4vnL2VVACwhtJWjDCLyhd8b UbJOrWgX+V55RmZkLuPylq3qsUb1kbGO8jI1CFnncxUJ0L361dKPXb9UVdqVd8EjizJd WgJlOMAs7ykm7zvKF3vusOMSBKpI1GhfZZ4D2U4T0bAr7rUaEQA3MkhCL89Ej4nYgf7d /JVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=FAfwAIBE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WH93qYTh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a170902c40d00b0016a58197acdsi13397126plk.522.2022.07.03.09.52.31; Sun, 03 Jul 2022 09:52:42 -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=@anarazel.de header.s=fm2 header.b=FAfwAIBE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WH93qYTh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbiGCQvX (ORCPT + 99 others); Sun, 3 Jul 2022 12:51:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbiGCQvV (ORCPT ); Sun, 3 Jul 2022 12:51:21 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01256313; Sun, 3 Jul 2022 09:51:19 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 49EAE5C0080; Sun, 3 Jul 2022 12:51:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 03 Jul 2022 12:51:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1656867077; x=1656953477; bh=sx2V7qb2mC RCN2UHEL7rClCbV0gR7Cm92ibBUoYCbAQ=; b=FAfwAIBEkeB72tNGFRpBk8RMIq uOiIFtBsP9Eb7mopEpyG5AGahUmTJNfzbLPdec1JBL4FdFWe2chsrwETN4vSU2nr Kp6ECDB/I3MxU1E7VhQQMOQIwbQCTsmV85iCTp5cvl38ziT7yXMxewTbwhxIhGbK ST63j4MvNYb8c+J/WC5SII4i4px++HWTo6DngrJrJqmphZaA4kTRAMUYGRaClKRI /Z33cKXueeyw4K9+8Cp52AuuQ0D4glQcw1HHYRX2G4WJMyEtg6wjqr2dfbbZskWG KMfTKEy4ZJolaAnDO03WPmdOv0nAm/ugUJiS2+apAPGWYBCD8DioqwoSGrPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656867077; x=1656953477; bh=sx2V7qb2mCRCN2UHEL7rClCbV0gR 7Cm92ibBUoYCbAQ=; b=WH93qYTh1kemwAtyxLgmRgz7tk1c/u6AUB3WqNKIlvOJ x0U7MGv7ZCgStUyab4qE/4EnPbMC31KfZAD65i4h3bbGStVi5BJQbVHRF5cv7vNL u6mhx3D1RiqLTvnBg50l9+rpJEGMr/m74Ece6lKcD0TpRMjzv3GAa8DRbAeeS1Ug Fb9TdsOiV2yJX6atHVyO8Lo+8x1IcSqtd+vipTQkHwNY2697XEmXz6gVbBhy6dqx r1Vjuvn3qOvASnkTMMD3jf5df3HlTc9XVHoFnqasRmbMK1a5e5uFv47ddUIx51t5 s5pKHwTURbLemE46V50nvxOWjBq6iUCkWrZ859WdHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehjedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Jul 2022 12:51:16 -0400 (EDT) Date: Sun, 3 Jul 2022 09:51:15 -0700 From: Andres Freund To: Sedat Dilek Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , alexander.shishkin@linux.intel.com, jolsa@kernel.org, Namhyung Kim , Quentin Monnet , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [perf-tools] Build-error in tools/perf/util/annotate.c with LLVM-14 Message-ID: <20220703165115.gox3hlwwdcnorcul@awork3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Hi, On 2022-07-03 13:54:41 +0200, Sedat Dilek wrote: > Andres, you have some test-cases how you verified the built perf is OK? I ran an intentionally expensive workload, monitored it with bpftrace, then took a perf profile. Then annotated the bpf "function" and verified it looked the same before / after, using a perf built in a container (and thus compiling). Similar with bpftool, I dumped a jited program with a bpftool built with / without the patches (inside the container using nsenter for the version without the patches, so I could build it, using nsenter -t $pid -m -p) and compared both the json and non-json output before / after. V=4; nsenter -t 847325 -m -p /usr/src/linux/tools/bpf/bpftool/bpftool -j -d prog dump jited id 22 > /tmp/22.jit.json.$V; nsenter -t 847325 -m -p /usr/src/linux/tools/bpf/bpftool/bpftool -d prog dump jited id 22 > /tmp/22.jit.txt.$V and then diffed the results. bpf_jit_disasm was harder, because bpf_jit_enable = 2 is broken currently. So I gathered output in a VM from an older kernel, and used bpf_jit_disasm -f ... before / after the patches. Greetings, Andres Freund