Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5053630ybl; Wed, 22 Jan 2020 09:25:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxdppYd/b0VyOPZHM7BrM0N1WZdNw7bGlRAGINkOE8TRPPIXTH+V0GuZYCbJTnxj5XIQNCS X-Received: by 2002:aca:5582:: with SMTP id j124mr7306064oib.20.1579713914128; Wed, 22 Jan 2020 09:25:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579713914; cv=none; d=google.com; s=arc-20160816; b=ZAHeFHmnMK2J5MsslQoWegjhSXvgn5pyQzuEjzEXLGZt5rFp3seX8mF2mX5u7d7Kap /l+A4vJpN4PpJSnQyMk95dn9ckKnH4YhLTCU7+FaJDaOG2hO/ShY40OpmpmiESvsd1Jc bma6N65QOOPEqLj3NfW5HsdFRyXLv4moPKziuvbI/mZjSaGh/4X795PzsBe6LDyeVYH9 jbTQG/CtuDLp9SVh65qXQzXPDzhamTE6kkAIJw11l82+ZML1kl0KVt76sQjKySBnIl1g bBpijhZ2l8avbor/PtNkhgCpoGCl9K96FoTGvU1PGb6no8X92OrK15QEHMUuOSJHBXQn CHUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ppcNL/C+AAZhtnoTWdTMdALpfO/3pdJCyr6WSwsfH88=; b=zYGAlj7w40Fs4nuSFACclVzjZaTJzr84ErDhPckvu9N1dMH8UXTPtbdKVUHJL0FQ62 CE0+47mdeTyJIu00lEbcNZ8Do4jLIxRy5GGhKmquDPVz19PJ+FuBy4T7Oy0XYG0/UOSG MPGY0tiviHG8DSO8/MiJcvcvZ9bnaaBjJUdFuioyqUHOMYrYHO3rwpxRAlEQQWdOgbah TJF2KCpgMtdj9ntZt1L8gA8EhaBW2b7AwR9h41kkZOLUUfHWpWGO9bSzGrmSWM/9UcfX ntBZppEpIKNl52QVCNzkTPw5Ku9iuQ+OFqQXz8Ku9QyriGOBjpPUfDDBh52sMyH1OkLo jdGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si10251151otq.94.2020.01.22.09.25.02; Wed, 22 Jan 2020 09:25:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729037AbgAVRYE (ORCPT + 99 others); Wed, 22 Jan 2020 12:24:04 -0500 Received: from www62.your-server.de ([213.133.104.62]:50054 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgAVRYE (ORCPT ); Wed, 22 Jan 2020 12:24:04 -0500 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1iuJjW-0004We-30; Wed, 22 Jan 2020 18:24:02 +0100 Received: from [2001:1620:665:0:5795:5b0a:e5d5:5944] (helo=linux-3.fritz.box) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iuJjV-000RE1-PV; Wed, 22 Jan 2020 18:24:01 +0100 Subject: Re: [PATCH v2] bpf: btf: Always output invariant hit in pahole DWARF to BTF transform To: Chris Down , bpf@vger.kernel.org, netdev@vger.kernel.org Cc: Stanislav Fomichev , Andrii Nakryiko , John Fastabend , linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20200122000110.GA310073@chrisdown.name> From: Daniel Borkmann Message-ID: Date: Wed, 22 Jan 2020 18:24:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200122000110.GA310073@chrisdown.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25703/Wed Jan 22 12:37:53 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/22/20 1:01 AM, Chris Down wrote: > When trying to compile with CONFIG_DEBUG_INFO_BTF enabled, I got this > error: > > % make -s > Failed to generate BTF for vmlinux > Try to disable CONFIG_DEBUG_INFO_BTF > make[3]: *** [vmlinux] Error 1 > > Compiling again without -s shows the true error (that pahole is > missing), but since this is fatal, we should show the error > unconditionally on stderr as well, not silence it using the `info` > function. With this patch: > > % make -s > BTF: .tmp_vmlinux.btf: pahole (pahole) is not available > Failed to generate BTF for vmlinux > Try to disable CONFIG_DEBUG_INFO_BTF > make[3]: *** [vmlinux] Error 1 > > Signed-off-by: Chris Down > Cc: Stanislav Fomichev > Cc: Andrii Nakryiko > Cc: John Fastabend > Cc: linux-kernel@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: bpf@vger.kernel.org > Cc: kernel-team@fb.com Applied, thanks!