Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2107533imn; Mon, 1 Aug 2022 11:20:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR59J2izXJPM++28cewN8EFVuVxfXK150v+RGmjrjVrP59G//WYGVuanw4KnMmJo3fugYJ3z X-Received: by 2002:a17:907:2714:b0:730:851d:66b1 with SMTP id w20-20020a170907271400b00730851d66b1mr4597132ejk.184.1659378043614; Mon, 01 Aug 2022 11:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659378043; cv=none; d=google.com; s=arc-20160816; b=vhH8n5VObgxY6CPmJC8YP6tPc2pTRLKIF+N0sffexHL2DanaOOMQuBgMyj3EIiViYn UDPYMy1UKKJk8z5JY88tsHSpxCw/0yajxsoCZcW0W0wdaxlHZh4QymQCBXuc9jlvgIFs tqANKrOx1HPN+cfM7kTs5lxfUk7uB1K3bPhHHHAoPj65NWYBS20JTLLeSeeVMxXUXc9F INw1jJREct9ie3Nbl2V2evyZmnGFhtWdxJS5OwiOzhBAkAE4pSB2ABoZxssAYRCB4T4e ogxLSBLVPEYNA+kjexSKxxfqewqEIA6Xgn6E0xg3S1eTS0RhTYc72cCeQKg1SvWsAtDH +Q6w== 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:dkim-signature; bh=hYdg4Og3M1uOHHuaiRqcf2pJZyugGMPSvHsddXZqR7E=; b=r1ujISeX7D1zd4wHkCA9JQnYO6HuqLgCReCR+6ALOdAr3pRTCl6fWNKZNqEjBVLbD8 fH1NQ1d2yvkfkX1NL6e94ivckjJnbhV7tmHbZhABySHISShm2+gbog4dMNovqaGjt7Cu hWYWL1KUBaKQPZ7hsNqAfhgl7DuPZ1PQ9EgBLMKmSWC8teLu1zHCO3dcT1x5oqCYEamb C5H7onIXpnp2SUMJwCgQmvd0d2wi/46RO2mwXaSBUsM54wXOfIHp2S2ZqblReKWMh1gE rG7AMy2w0OWipGht3OqjVYwTpC2eAxRfemZq8XaEDxmQ8aw9QWFTkj0XygmOZhX52K8V a8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QAY6Bf/A"; 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 gs18-20020a1709072d1200b0073082a381c8si3273122ejc.465.2022.08.01.11.20.17; Mon, 01 Aug 2022 11:20:43 -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="QAY6Bf/A"; 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 S234433AbiHASD5 (ORCPT + 99 others); Mon, 1 Aug 2022 14:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234431AbiHASDk (ORCPT ); Mon, 1 Aug 2022 14:03:40 -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 7C7732AE30; Mon, 1 Aug 2022 11:02:58 -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 B04A66109E; Mon, 1 Aug 2022 18:02:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAD15C433C1; Mon, 1 Aug 2022 18:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659376976; bh=fkxFSycSkhpqy8tlJDVKO4EElhG+NIDTEL0EX1VXSWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QAY6Bf/AXJVPIRZluNX/xj6T1f9q8K3xsi6rMu/pcQa6J8tqULAUN8YbIpk1R5Uxq U7RGLG/cGNTyamoT/mCd8HBijti5HVqhqpnN0qAQaTbPxyn25JS5zXWZ18W5JRSX27 7CBSjdr1efv8UPLI/gQ9XPb/Wly7LkPvKoLQhb9G0/OF21PBGMJxnNSd+avVhcWa23 UdBRTyvjt6JCoZ/lUnmAa22v++uTismBy9vGCCdFEDD/qD+y1dDiQm/vWXLVCTZKyb yTAYYR/WacItIPIXsKfiNOKiPrE276Y0DW8Z5/LlyP8LIv48pM9/sgEgQYkxuoXPvB QHfvkfowbwvEQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id CB26440736; Mon, 1 Aug 2022 15:02:53 -0300 (-03) Date: Mon, 1 Aug 2022 15:02:53 -0300 From: Arnaldo Carvalho de Melo To: Quentin Monnet Cc: Andres Freund , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Arnaldo Carvalho de Melo , Jiri Olsa , Sedat Dilek , Ben Hutchings Subject: Re: [PATCH v3 0/8] tools: fix compilation failure caused by init_disassemble_info API changes Message-ID: References: <20220622231624.t63bkmkzphqvh3kx@alap3.anarazel.de> <20220801013834.156015-1-andres@anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, Aug 01, 2022 at 04:15:19PM +0100, Quentin Monnet escreveu: > On 01/08/2022 13:45, Arnaldo Carvalho de Melo wrote: > > Em Sun, Jul 31, 2022 at 06:38:26PM -0700, Andres Freund escreveu: > >> binutils changed the signature of init_disassemble_info(), which now causes > >> compilation failures for tools/{perf,bpf} on e.g. debian unstable. Relevant > >> binutils commit: > >> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07 > >> > >> I first fixed this without introducing the compat header, as suggested by > >> Quentin, but I thought the amount of repeated boilerplate was a bit too > >> much. So instead I introduced a compat header to wrap the API changes. Even > >> tools/bpf/bpftool/jit_disasm.c, which needs its own callbacks for json, imo > >> looks nicer this way. > >> > >> I'm not regular contributor, so it very well might be my procedures are a > >> bit off... > >> > >> I am not sure I added the right [number of] people to CC? > > > > I think its ok > > > >> WRT the feature test: Not sure what the point of the -DPACKAGE='"perf"' is, > > > > I think its related to libbfd, and it comes from a long time ago, trying > > to find the cset adding that... > > > >> nor why tools/perf/Makefile.config sets some LDFLAGS/CFLAGS that are also > >> in feature/Makefile and why -ldl isn't needed in the other places. But... > >> > >> V2: > >> - split patches further, so that tools/bpf and tools/perf part are entirely > >> separate > > > > Cool, thanks, I'll process the first 4 patches, then at some point the > > bpftool bits can be merged, alternatively I can process those as well if > > the bpftool maintainers are ok with it. > > > > I'll just wait a bit to see if Jiri and others have something to say. > > > > - Arnaldo > > Thanks for this work! For the series: > > Acked-by: Quentin Monnet > > For what it's worth, it would make sense to me that these patches remain > together (so, through Arnaldo's tree), given that both the perf and > bpftool parts depend on dis-asm-compat.h being available. Ok, so I'm tentatively adding it to my local tree to do some tests, if someone disagrees, please holler. - Arnaldo