Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4245053ybl; Tue, 21 Jan 2020 16:02:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwo1MFH9eqWivnEX2wTQdLk3hQWTBKU7ODM7iB/WTVQ6YzBIF86ZXVolyXfJZPWZPCTIGTb X-Received: by 2002:aca:1c09:: with SMTP id c9mr5060533oic.85.1579651359969; Tue, 21 Jan 2020 16:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579651359; cv=none; d=google.com; s=arc-20160816; b=SY04PNS6g6QhWOFk1725YpISexxVGuvFt2iYbPeX5/eD32n6WXjB/NAggC+e8znZXf 3eNsVYG+ec92uvGxkTIkN+jTCneKFTsBlMW/0BuQJ99s/Ir7NrZpJzm8bqua5VDVHhSf rABQVOv5dM6K8uv5ElZ2kbdpOyR2XrH8jtojdHRmbkL00A1LGDmOPFoydUpoV9Q35bdd pSnBBTipJn7/zIEESsMQ02BZFv/3GwffRdStpP1knIvA1YxbLKc31z0SFOaXMf7yymfH K2zVQtIb9Z9w+sGQZAx5aKiw46Cvai2tXWgKdamBTJ1UY5otnJ41MK3wWQO3S1cQGkJ0 EpMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=OHaBdf9m1dDSgiWgOEcClSMTZD84LoHiqTmQD6cEaTs=; b=Mf/13qx5MKU01PUFbx8sRuDC4DglDqBND4WI5fRd2Dn836dSuv4OwSUa8ARbrXyMzQ t9y5TZDYE/XUGCjWD80hssyWRXJZ+ewtykDLUg/dDKA81fHTTMKNC61zNrgfpjIR1K/6 a9bGTeUQpHzYdcd7xYzWmabvbcZ2ssqvNoILC2iTjmp0C5cv2qUBGxwoz00QMPD/E7I8 jjEHYuJcwhg7o18+ZY+AgZ5OxSyDsYDZRMWni+Gskqtkl65UBXKyy+Q/n93y0VJyh4JG tQp1pxUWeDSpOCMV6B9dnkII1H8Opz2pQL9R739NcbFZuwolDuXw23poEf7Z6lfiDSLv au5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b="bV93vL/4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si23461852oth.26.2020.01.21.16.02.27; Tue, 21 Jan 2020 16:02:39 -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; dkim=pass header.i=@chrisdown.name header.s=google header.b="bV93vL/4"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728853AbgAVABP (ORCPT + 99 others); Tue, 21 Jan 2020 19:01:15 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33583 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728665AbgAVABO (ORCPT ); Tue, 21 Jan 2020 19:01:14 -0500 Received: by mail-wr1-f65.google.com with SMTP id b6so5435893wrq.0 for ; Tue, 21 Jan 2020 16:01:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=OHaBdf9m1dDSgiWgOEcClSMTZD84LoHiqTmQD6cEaTs=; b=bV93vL/4fDzGXFO2JCLe7XSiny5jsOXP+1mc/RM3P5+9LAEdfRZ4M2qFZguvwNb7Xg 9F1VYmZZ0XO1/g/fAbDib/KRX8L3WacCqQvO4UFl28J2h5N0x8RjEjQsbICjFSJoWwur dwzrNK6ji2knC+Pl++t+qqjSspXviqg+HIn8s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=OHaBdf9m1dDSgiWgOEcClSMTZD84LoHiqTmQD6cEaTs=; b=f+Es6abNr9xLu/FE5BVN5mquTMVIgqvcoM0PQdrY/bLXN3pCVHJIIcd+aeDJ2RtODR kZr8Qz7XSuva+QXcOwId13hZLK/o4h9aMCLCSyVG+WGWODs5SyCt9INaratWocn9uTFi IFjNTDQrqIbiBA5XDADlcDXUlw7MYlf3f+DyE2CvS+3s0sLXNP+52Lg/5mayusQhb/rN tK/4cVFqo2M4yDlBlt2qtcoNTnqAISxgFoUWRZzmEcjlgkWIFgNhSDGYlD3PHLn6Bin9 5CgnCI2gcVuM+rv9iA9WYs7oySTTGKDoDRVDYB1+hRxZertZdK+aPQih/0r/lxGXFscp odRg== X-Gm-Message-State: APjAAAXOGZGdIIS6ZmBg86CsEjMAk7eNp2PptKItztON0Z3IIPqn1JOY tax73KOUbyjYOSHgrbt07Kk25w== X-Received: by 2002:a5d:5234:: with SMTP id i20mr7998319wra.403.1579651271992; Tue, 21 Jan 2020 16:01:11 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:58ec]) by smtp.gmail.com with ESMTPSA id n3sm1341159wmc.27.2020.01.21.16.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 16:01:11 -0800 (PST) Date: Wed, 22 Jan 2020 00:01:10 +0000 From: Chris Down To: bpf@vger.kernel.org, netdev@vger.kernel.org Cc: Stanislav Fomichev , Andrii Nakryiko , John Fastabend , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v2] bpf: btf: Always output invariant hit in pahole DWARF to BTF transform Message-ID: <20200122000110.GA310073@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- scripts/link-vmlinux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index c287ad9b3a67..bbe9be2bf5ff 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -108,13 +108,13 @@ gen_btf() local bin_arch if ! [ -x "$(command -v ${PAHOLE})" ]; then - info "BTF" "${1}: pahole (${PAHOLE}) is not available" + echo >&2 "BTF: ${1}: pahole (${PAHOLE}) is not available" return 1 fi pahole_ver=$(${PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/') if [ "${pahole_ver}" -lt "113" ]; then - info "BTF" "${1}: pahole version $(${PAHOLE} --version) is too old, need at least v1.13" + echo >&2 "BTF: ${1}: pahole version $(${PAHOLE} --version) is too old, need at least v1.13" return 1 fi -- 2.25.0