Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1321104imw; Tue, 5 Jul 2022 07:31:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vty9CfTnQhj16Hl4ACty5pNmuP3N/MJqY5yoq45MM41KF7yxzslCHA8x+hLcGdwHWBtaJL X-Received: by 2002:a17:902:e741:b0:16a:351f:d029 with SMTP id p1-20020a170902e74100b0016a351fd029mr41068102plf.0.1657031463637; Tue, 05 Jul 2022 07:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657031463; cv=none; d=google.com; s=arc-20160816; b=rDa+2jZk9s2BYS1Fn6imtXuK+8FHs/WKVP0fxOtqYnt/XSHWDfL7gxSNobW4k5B0cZ BYNSB97Om2o6e1sFoYPv1B3XpLfFJLKzCd9owQ9EpF1Ox3TLmTxHTz8xi9w4+pKpx/tS OestdEDMegurajYqRDwhjwaNWxWPMObdymIdjJAK32vOpZknqYKSA9y5JGYP2nL0f+LL MqSnde0xN16SEcW9rT5WLjHAkvzxl1mIIOAVcaDkOcb92WrB1xjWKQ1v3Iv+vzKDtFE/ uzjaeJpP0XLnmqu/K94JUrTu8y97wk2V3PejqM+MEWY2OdT5aC0YN8o/4iFrewNLy0s1 670g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=f1PfXbMZFj5YoJCdkyiEEg7SP3t4fdKV7Ip7egz/rTQ=; b=GW8Kgd+tp3+ISHi/hqoSb5vroPr3zZj70c1OFQlR/gjbDUSItozDyvyPYQyfexytkq 3oBiNemsCNyhvTDpJnAMXAvt7DolpdqVq9LKOhWFKZiMsWIqARJTcHrpltp1aXyTBfNg 8/gPchI1ZgwnEJwTPfIue/NtO4oOeD8xit3mmkH38tNuqmoS2PoMEmLFU8QFhUnOTEOy FJyqgZzSdP1tGoquzYV/89iMh9U33NJtpBPYfZNQlfsVUBg9H5YJM45+AbWlF4dxGt6n Py106bOupWWvamz7iSGLMElbm5jjCVsPhjonQxbRwZjK178CQ75zzTDJmDMQFu7OiSd/ LrEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b="iSX/Ai2T"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a17090311c400b0016b8167e375si17973092plh.170.2022.07.05.07.30.50; Tue, 05 Jul 2022 07:31:03 -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=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b="iSX/Ai2T"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232261AbiGEOAa (ORCPT + 99 others); Tue, 5 Jul 2022 10:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbiGEOAO (ORCPT ); Tue, 5 Jul 2022 10:00:14 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5A29201BB for ; Tue, 5 Jul 2022 06:44:10 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id bk26so2558251wrb.11 for ; Tue, 05 Jul 2022 06:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=f1PfXbMZFj5YoJCdkyiEEg7SP3t4fdKV7Ip7egz/rTQ=; b=iSX/Ai2TDI6+HmvAHkSy0kMkC+3Rw+2OZ36nyy4G0qreV7JTfv/LRRAv3Ola5hPr1I Wb8FIcISRVN/YEmzxetIy/yolphCmpHYxUwJLmwrCBg2mblG9lsnGp6PqZbMk+a1kAMk /zQR/Rmk1490+fdhtgiyXfwmoO8BPpkxtc95f6SGFJAKgP4CW/zVMhLXdhTLC7i3mXTz moNectp5DmN7EPmNoag4Q7/afXPyp6sIxQPg6aLsIUATbZDebOJ/xoHUhfvAFpImMeIu RMuw3XKF0DuifQHhkukzPPJqxZm7Cf3nNnDE8NbR+R81ZuizoOntVWT2Gz8VQg2KcCMm IIOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=f1PfXbMZFj5YoJCdkyiEEg7SP3t4fdKV7Ip7egz/rTQ=; b=cOcx4j6O4ozF1bEUfyTWLyNr7+HVD35yAQFRBtV7jp6zgHnerzNZja+k23I2ms/Gu4 g3kd+svfrBgZzCXdMX7zN0z7FKB7YZvYrjrbha0dpnhPFSPRTbqRW3+oMvUtOZiw7KwL hpfrAfp/XfeC8MQYXi2CMxBGKmleCck/rLTje0uByF3E07keESOGZzKkfPL4WpyrQCIl ryxeVEpeoeaGIaH2XaYUlfX0H5A5viM7JblLoiK8WydeibK94vH2lmJDmg89DN+D7zXH bfBdqoZzeGIWstu/9/+Sk0ZZrrd4Y+sQDeeyK8nUs7cS/U3/u84HYtLQRcsL9tOCXsq3 4hlA== X-Gm-Message-State: AJIora+Z6GMh/2Ho/YkQ5wo8E4w7dZeB89WEtF3foegwLYodWhPUfpci Te5C7qezO6hmyHCsKPGHGLi4Ww== X-Received: by 2002:a5d:6645:0:b0:21d:17c3:e10e with SMTP id f5-20020a5d6645000000b0021d17c3e10emr32150367wrw.483.1657028649270; Tue, 05 Jul 2022 06:44:09 -0700 (PDT) Received: from [192.168.178.32] ([51.155.200.13]) by smtp.gmail.com with ESMTPSA id r23-20020a05600c321700b003a03564a005sm18014466wmp.10.2022.07.05.06.44.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 06:44:08 -0700 (PDT) Message-ID: Date: Tue, 5 Jul 2022 14:44:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0 Subject: Re: [PATCH v2 2/5] tools include: add dis-asm-compat.h to handle version differences Content-Language: en-GB To: Andres Freund , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Alexei Starovoitov , Arnaldo Carvalho de Melo , Jiri Olsa , Sedat Dilek References: <20220622231624.t63bkmkzphqvh3kx@alap3.anarazel.de> <20220703212551.1114923-1-andres@anarazel.de> <20220703212551.1114923-3-andres@anarazel.de> From: Quentin Monnet In-Reply-To: <20220703212551.1114923-3-andres@anarazel.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 03/07/2022 22:25, Andres Freund wrote: > binutils changed the signature of init_disassemble_info(), which now causes > compilation failures for tools/{perf,bpf}, e.g. on debian unstable. > Relevant binutils commit: > https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07 > > This commit introduces a wrapper for init_disassemble_info(), to avoid > spreading #ifdef DISASM_INIT_STYLED to a bunch of places. Subsequent > commits will use it to fix the build failures. > > It likely is worth adding a wrapper for disassember(), to avoid the already > existing DISASM_FOUR_ARGS_SIGNATURE ifdefery. > > Cc: Alexei Starovoitov > Cc: Arnaldo Carvalho de Melo > Cc: Sedat Dilek > Cc: Quentin Monnet > Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de > Signed-off-by: Andres Freund > --- > tools/include/tools/dis-asm-compat.h | 53 ++++++++++++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 tools/include/tools/dis-asm-compat.h > > diff --git a/tools/include/tools/dis-asm-compat.h b/tools/include/tools/dis-asm-compat.h > new file mode 100644 > index 000000000000..d1d003ee3e2f > --- /dev/null > +++ b/tools/include/tools/dis-asm-compat.h > @@ -0,0 +1,53 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ Any chance you could contribute this wrapper as dual-licenced (GPL-2.0-only OR BSD-2-Clause), for better compatibility with the rest of bpftool's code? The rest of the set looks good to me. Thanks a lot for this work! Quentin