Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4238016ybl; Tue, 21 Jan 2020 15:52:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxpElNdyGYTjT2e+RiQixC0JpI8usNFEASb4dgPPfGuEc/IsFiUZDVVcTM6iXbcIFlF1yes X-Received: by 2002:a05:6830:2009:: with SMTP id e9mr5582472otp.160.1579650734355; Tue, 21 Jan 2020 15:52:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579650734; cv=none; d=google.com; s=arc-20160816; b=KY5YvTzT8e1fLIMFkChcx0vfltOu+H5NRpyjafj69gKsNOTpMLaIZ5ITGjXVOJ28hp vU7qIy6iQqhpBZBDXPdWkX3LfQYhM6EWuyx+nzAIPqqPJBccIMElI6fxqT1gfvEsl95G iyFNzOs7LHQ1cP/oZxn9vKAioZS46xDGN9ZZBAUEkQcIJMjUAQ9aMiDYjX2or6Hkq00V 334gc8lax5J5RjEqvKExv08AN/kaaN4bkqASQrB05VAKqV0+/oW+AbYktGBOuv2JFsRw 9hcM6z3RVJRB3r9UEwUUvRySKJN2TLDVKGl9Wt5zWT2n8ZyKxdxKRwTYST38rdLtd9o9 1IXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tK7af4Yj21EpvGAZIaTRTJBlx41+rY2B9mDlWdbfbi8=; b=Vwzr8LP7hw0Alr2aZNhTSQ4pRdVysUQHSGIZ3ZPl2jfthl7FHMaf2DOieAjmCMjKS7 VMGoobrbb5u11nYG3QnouP5uLVP7kq9eo8mmPTHQhq5YwDaKha+v8q2KRGxn1OTVz/c+ PE/RWaYrq/KvYOFlPpySD34NkIsxHuC0BNetiLucK7ZpmhCsT4mShHt/w5yzK1Vb1S4+ hWaPnrsNW43Jc91wV/I2cimq5vIsqaeCaVNQ1HtyvONoyut/8qLcLFPg90dyYUcIeOq9 X8lr4/aVPfYfbRVtQHkD3aSQU7CFkglLl/ungpvNzEqvES+5cJ+j6h8v+JUe8DOs97G9 HUDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=bTd9UkGo; 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 k131si19749930oia.64.2020.01.21.15.52.01; Tue, 21 Jan 2020 15:52: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; dkim=pass header.i=@chrisdown.name header.s=google header.b=bTd9UkGo; 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 S1728750AbgAUXtY (ORCPT + 99 others); Tue, 21 Jan 2020 18:49:24 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33706 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727969AbgAUXtW (ORCPT ); Tue, 21 Jan 2020 18:49:22 -0500 Received: by mail-wr1-f68.google.com with SMTP id b6so5413692wrq.0 for ; Tue, 21 Jan 2020 15:49:21 -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:references:mime-version :content-disposition:in-reply-to; bh=tK7af4Yj21EpvGAZIaTRTJBlx41+rY2B9mDlWdbfbi8=; b=bTd9UkGog9xWCbHsbf0wHxECfn6qCYjmBs2H9GP/J+PfVO7g2dIAVALlh0QDr048GE aD0eafCfACbl+CDgL/jt7fkiQsb83EbB9QtXGcbbIGPR3RZ8Z/6d1Zu9dq19gNO0lvEa 2vGvHLvS3XqTTA7qvK/yi9a1C7j7Zb2rxoMzQ= 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:references :mime-version:content-disposition:in-reply-to; bh=tK7af4Yj21EpvGAZIaTRTJBlx41+rY2B9mDlWdbfbi8=; b=R8BFTVUbk4tcySGeJi3bWQoqvuuHAQMR1/nlAyfcfHKh6MlrYgcMq+JCSs+J2qPfXH ot9nf4scfbSAiSxuQ0lqM0E0qRhXBLpOYlfRFDIhLom+RUrvd4exegsKuWtVyYhMcJ7w wSV/pyBQAxMJ8/nP5I2iFSqzh5xNQ/zZ08qW0vIMwtXvtBawnTeGav04uo+vES5hJJXI UtG6DhM1EcjVs0DZs1sW15K5MvYBi74nqvEv4CKYSrXH5lYTzsKtx0RgyeJUPyGOBFlU MQIcpCMWWMCm7LKLmUZUHCRqoq2VbEJN7hMATyoPO3XLWbLL239MbqbTWDsc5sbN1FNC YuNg== X-Gm-Message-State: APjAAAUt/jSRiv02Jhi/M6IIayLDVZN+GKYwf6uQLr42OcPuwiv3JOc3 32FtrjWmLNV2VUZkpVX1rTZ3gw== X-Received: by 2002:adf:eb89:: with SMTP id t9mr7679388wrn.5.1579650560374; Tue, 21 Jan 2020 15:49:20 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:58ec]) by smtp.gmail.com with ESMTPSA id x11sm56093615wre.68.2020.01.21.15.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 15:49:19 -0800 (PST) Date: Tue, 21 Jan 2020 23:49:19 +0000 From: Chris Down To: Andrii Nakryiko Cc: bpf , Networking , Stanislav Fomichev , Andrii Nakryiko , John Fastabend , open list , Kernel Team Subject: Re: [PATCH] bpf: btf: Always output invariant hit in pahole DWARF to BTF transform Message-ID: <20200121234919.GA309703@chrisdown.name> References: <20200121150431.GA240246@chrisdown.name> <20200121202916.GA204956@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrii Nakryiko writes: >On Tue, Jan 21, 2020 at 12:29 PM Chris Down wrote: >> >> Andrii Nakryiko writes: >> >> --- a/scripts/link-vmlinux.sh >> >> +++ b/scripts/link-vmlinux.sh >> >> @@ -108,13 +108,15 @@ gen_btf() >> >> local bin_arch >> >> >> >> if ! [ -x "$(command -v ${PAHOLE})" ]; then >> >> - info "BTF" "${1}: pahole (${PAHOLE}) is not available" >> >> + printf 'BTF: %s: pahole (%s) is not available\n' \ >> >> + "${1}" "${PAHOLE}" >&2 >> > >> >any reason not to use echo instead of printf? would be more minimal change >> >> I generally avoid using echo because it has a bunch of portability gotchas >> which printf mostly doesn't have. If you'd prefer echo, that's fine though, >> just let me know and I can send v2. > >The rest of the script is using echo for errors, so let's stick to it >for consistency. Thanks! Sure thing, I'll send v2. Thanks! :-)