Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp591640imw; Mon, 4 Jul 2022 15:47:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tcaV90xjD85sVk3mqUbSyNE+SkTIDUzbI/qak0wuDqCx+dFX0eEO+wvzl1DqvtSgvi2Ou8 X-Received: by 2002:a63:35c9:0:b0:40c:8d6f:2961 with SMTP id c192-20020a6335c9000000b0040c8d6f2961mr26367036pga.506.1656974847387; Mon, 04 Jul 2022 15:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656974847; cv=none; d=google.com; s=arc-20160816; b=PWtcagVKU7T2vtP6inMxI5mcQvyMBUIGmojzf3U/3cj7W9QqMzx3+zb93QVaytjgzX wHmeHZkHih9K9fwfT4mofkbqYe7KNlbecSK9Y0eFWkfN3y5TBJfXBRvJrZ2dDfPTOze2 ixYUa7AjBSQpNMMih7bPsj+3w75fCkzeBTvn4xxgBOdtpUKrGSfdcXHtT0Atcp3stt9i bq/qZxtNhAKb7ECHbw24n5KGmlcaBtgz8pMIHGzk8k8i690KAtxO1BKe2gqTug9eF3Np o2Alj6pAYK0K2CXDIXhjmelXn0yoiMoMmQJIxGRV9+Hd2SyJNl8ktLVHKNTE79Zphua0 6plg== 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:date:from:dkim-signature; bh=Ax8ZOmKuftFHkfswWqK0Q99M7L18BhPxIsLeyV4g1Kw=; b=G3n3pFID+VCCcJlWKr1hoEmDm+SLmKvVHb3VReBKP5GPh4XulKBu30UAmarAhZIayl C8oexxMWNve3W5n/e/xTOLMoUocSerBrxGTKVXi0b5aU2RcTZ8Trog6qWyap6c25xd8I 07D0WzRoaaqWzoyY7FnkW5QhTgmOU+4C1kPU1ho1XfWgqZwpVuAHYAW4yus9TWQdRTg/ Hl9yC2O1N7p8YpvBWkjYtajUslUwAdKtJH5MpXN1a0oAChOXNCpICl8+OugEHzwAQR5Q ulYa/GTysLP8WrABitRN3vI9bPpnKEILAv0PBqjqO6yXiGzTL7Hc5wD5/WmA6bEFMiOn 6AwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mybSoRDi; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j29-20020a63551d000000b0041154ad8fbesi10471106pgb.634.2022.07.04.15.47.15; Mon, 04 Jul 2022 15:47:27 -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=@gmail.com header.s=20210112 header.b=mybSoRDi; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbiGDWMp (ORCPT + 99 others); Mon, 4 Jul 2022 18:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiGDWMo (ORCPT ); Mon, 4 Jul 2022 18:12:44 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68AAC6308; Mon, 4 Jul 2022 15:12:43 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id h23so18603423ejj.12; Mon, 04 Jul 2022 15:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Ax8ZOmKuftFHkfswWqK0Q99M7L18BhPxIsLeyV4g1Kw=; b=mybSoRDihZNQWO75rkkqVUNhkPiw2o8iqInVHHdy3lo8UImmCjl4/FmErasbunwz+Y wo5AMYqO1vW88Xp7lHfBqQ2Lr2URWyWuIeHVpsM3wNxeCaT8LfmB/euLzKuY91ZNE1Qr 7mtYBZ+34R8XAmWUnBuyO6OPFwEiRv6BksbWN9iLWJ1L5cQ1jFQTUq5ALbgtl7FNdW8Y wYz0yQAv1TUqBDoLp5hvMkRK9gWAkvXOM/ykYxRmd5w1qIyMMHKUR9p8iTcG82zKAYoU sT11p70Y7TeBj+JPgKRFPHpaFWTnrejJyshMCymW6AXo6aIVY3CRWhL0WI2hcVtABVd3 kx1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Ax8ZOmKuftFHkfswWqK0Q99M7L18BhPxIsLeyV4g1Kw=; b=Uz8cAv3LrfVnAMANt1zHCdkF751bjundqm1tQCk6TVa8PykqrN4yjOrHvGAcj+Ei5G L6fVPyxytIst/NxV1eVKjPBsLoG5juViPxcqkt52t8cFxZ4T1S8eosOLsC2Ledr6uymS pPjfLU9umzmgJbZbo9fc2C37qKu79pFKeDrKFM13g0+DpQNKrdhy83j/f33k5b013UT0 dayAUYj2JkQ8E06d1DJH3PoWux+8dKaxMQHU/MX6+9Dzd6Q+vXTfQjLUYS3IgiDeLXLq qdWJ8yM338a9YWsuje3ofPBGGWsz2Hh3CLELHeo6MriOLdebdruHr8vikKGRCEqrmSFt n0Bg== X-Gm-Message-State: AJIora/8e9fStQn+N7A9Z5MSoEFE2TaQoF363qhp/dTbmcPAJzGx+vAX do8STBhzTAk9KVsKeaaKfXYSh+yHW6jSyrMY X-Received: by 2002:a17:907:9483:b0:726:bea5:7a87 with SMTP id dm3-20020a170907948300b00726bea57a87mr30404955ejc.629.1656972761852; Mon, 04 Jul 2022 15:12:41 -0700 (PDT) Received: from krava ([151.70.14.154]) by smtp.gmail.com with ESMTPSA id r6-20020aa7cb86000000b0043a734c7393sm722409edt.31.2022.07.04.15.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 15:12:41 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Tue, 5 Jul 2022 00:12:37 +0200 To: Andres Freund Cc: Jiri Olsa , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Arnaldo Carvalho de Melo , Sedat Dilek , Quentin Monnet Subject: Re: [PATCH v2 0/5] tools: fix compilation failure caused by init_disassemble_info API changes Message-ID: References: <20220622231624.t63bkmkzphqvh3kx@alap3.anarazel.de> <20220703212551.1114923-1-andres@anarazel.de> <20220704201922.pvrh4cmmjxjn4mkx@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220704201922.pvrh4cmmjxjn4mkx@awork3.anarazel.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Mon, Jul 04, 2022 at 01:19:22PM -0700, Andres Freund wrote: > Hi, > > On 2022-07-04 11:13:33 +0200, Jiri Olsa wrote: > > I think the disassembler checks should not be displayed by default, > > with your change I can see all the time: > > > > ... disassembler-four-args: [ on ] > > ... disassembler-init-styled: [ OFF ] > > > > > > could you please squash something like below in? moving disassembler > > checks out of sight and do manual detection > > Makes sense - I was wondering why disassembler-four-args is displayed, but > though it better to mirror the existing behaviour. Does "hiding" > disassembler-four-args need to be its own set of commits? I guess first hide the disassembler-four-args and add the new the same way > > > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > > index ee417c321adb..2aa0bad11f05 100644 > > --- a/tools/perf/Makefile.config > > +++ b/tools/perf/Makefile.config > > @@ -914,8 +914,6 @@ ifndef NO_LIBBFD > > FEATURE_CHECK_LDFLAGS-disassembler-init-styled += -liberty -lz -ldl > > endif > > endif > > - $(call feature_check,disassembler-four-args) > > - $(call feature_check,disassembler-init-styled) > > endif > > > > ifeq ($(feature-libbfd-buildid), 1) > > @@ -1025,6 +1023,9 @@ ifdef HAVE_KVM_STAT_SUPPORT > > CFLAGS += -DHAVE_KVM_STAT_SUPPORT > > endif > > > > +$(call feature_check,disassembler-four-args) > > +$(call feature_check,disassembler-init-styled) > > + > > ifeq ($(feature-disassembler-four-args), 1) > > CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE > > endif > > This I don't understand - why do we want these to run under NO_LIBBFD etc? when I was quickly testing that I did not have any of them detected and got compile fail.. so I moved it to safe place ;-) it might be placed in smarter place thanks, jirka > > Greetings, > > Andres Freund