Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4082417ybl; Tue, 21 Jan 2020 12:30:28 -0800 (PST) X-Google-Smtp-Source: APXvYqx3WRG9UO4N+ax91HZgwtD9icDpJKetWC2L7nL8CBROB1OnQvZS+uEWFbWcsBZPf2suyaud X-Received: by 2002:a9d:470a:: with SMTP id a10mr5052605otf.370.1579638628260; Tue, 21 Jan 2020 12:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579638628; cv=none; d=google.com; s=arc-20160816; b=fyT7JBNy6j9xDFNerw7i65F37JMfGcbSyf8ZMtuBpVtPlGR6+/3geM1MyflwMj5aOf 1+Z1bsPHW35zhsKUKUEfnlsQhYHXppS408/Q5r9om1KfcY4V5Z9C4o8ZTWcikpArPn2m s69EjbawbG0rHJ5z4ZQ0LcnbD2pDv3+Lm5WHYlWzM50+dkUvMfvIpyLNCHSn4eQJkmDY 5WcN0DyrOGGbx4x0WKoYGiQdbjNPGsCLfjpNxqh3XYfngSuZyou/jUiDDHzJ8HLtFlvF ynvzbMNU1iexY9uU9WrpekZ150aU8IBGOljaEsCB9tC5lI8Fnp7wpNWQ9OFwksh2wp0+ QxLA== 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=4v06OcVu6AWGAgREkUN+nJOIVq296IIoZLXUePQ8oZc=; b=UJXIuk77aSPcevhziKUa4wxiUHqHBnrdl2IE5fY8+71j66tmOnIR7KMv46dt4Zn0yz 6dYJDLSsIc5HPLUgUuL6FJiFltbOO8qJrv6Kz6EllkJpD+7uwamE1nQxjM+/npEwUXxk 3DVm80fDRSmfnzWwlFMe2rGf9hFEuH5A5qrdMFsN0aMzlwef5ya7uppe9YkGDFVmxn+z c0mJXGIzY2YlIcka582ggEvC3NMneq/+sG7ud6YemwxOqL3pZuQQ13wji+l3X5DD4Xni Q768ayxE60CTZlyIneSYuS1BxfRVNxLpjXFW/lJ/f4rHvDNAkUgn0Sd/g6XLGKv7HG7F 7EdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=XrBNnqp7; 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 g18si13257576otp.61.2020.01.21.12.30.15; Tue, 21 Jan 2020 12:30:28 -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=XrBNnqp7; 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 S1727360AbgAUU3U (ORCPT + 99 others); Tue, 21 Jan 2020 15:29:20 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34734 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727829AbgAUU3U (ORCPT ); Tue, 21 Jan 2020 15:29:20 -0500 Received: by mail-wm1-f67.google.com with SMTP id s144so42984wme.1 for ; Tue, 21 Jan 2020 12:29:18 -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=4v06OcVu6AWGAgREkUN+nJOIVq296IIoZLXUePQ8oZc=; b=XrBNnqp79Hr/DOZDtYgis7af+OtRIktTWNbtDXG8Y3/Qb8GRB3slWN5aPD9R7pTrKH JBnhybcpF1QDwrQadEzEW2ochphAXfVTSrRSEQouPnd0SbFrgughr7vA4JaBSnGSvqHG ICHqKKYVbqVzzNqFxuuHSutNnHmbBzCGww49E= 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=4v06OcVu6AWGAgREkUN+nJOIVq296IIoZLXUePQ8oZc=; b=gLx2Q+fAg3GZyO+XpEAFSjOf9q4JYIC8iL+8OmXW72g2tXj0BW2EKQnky7TzBH0Ynv QB9ymznt5EK+cfaapFtNBP7LeoheeejpEqM7PzKpi5EQVmK/xIovlgvscXFlYyr/cqur rbHnyqDFBbdh9I4L80EoIsgPBer95Kvb68yVFlF2gOQB7A8+EiRKSG4fSQYiGIYmQkzt /EoyxHx2CzTZKcKCmaHNkPTWizvV8+msyd7eLzCo4jqXv5KJLH8MrMNT6qXsoZXYNG+d 5GJaBpCp3YZGJUASBNeJ7N0FK3UKMY0yOXR+jP2Tkam4L6wxetYav3QvFGYesY0mysY8 Elkg== X-Gm-Message-State: APjAAAVA1B+89A2AvFlG6qoTawJl65QD1KA51YSM67uqkxauOQ4QXx18 9uvYKdvoZRnBeYWJwMd+pVppRw== X-Received: by 2002:a05:600c:22d3:: with SMTP id 19mr193695wmg.92.1579638557788; Tue, 21 Jan 2020 12:29:17 -0800 (PST) Received: from localhost ([2620:10d:c092:180::1:db6c]) by smtp.gmail.com with ESMTPSA id z187sm775841wme.16.2020.01.21.12.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 12:29:17 -0800 (PST) Date: Tue, 21 Jan 2020 20:29:16 +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: <20200121202916.GA204956@chrisdown.name> References: <20200121150431.GA240246@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: >> --- 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.