Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4144112ybl; Tue, 21 Jan 2020 13:47:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwkUv9eb8XtK4mng+0NKhcTqcTOe3bjAZtsxFKYQcrrsdp8tDM0jduVLqY36DiAyvSA32eP X-Received: by 2002:a9d:6f85:: with SMTP id h5mr5203041otq.19.1579643276895; Tue, 21 Jan 2020 13:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579643276; cv=none; d=google.com; s=arc-20160816; b=lGmrxC9MdHqwIyRSgs1lzGmFw+99Sn/SI869m3R9G6jf7qpuzI9QRkTv8XqvtJTzVY a9YaqZb4gGYnKVkvI2wwRIOG+SuG+8z9PchI8gSO6MUQ3oAcjz+jre9Hz3PN2Cu5Wq1D i08DFf/glOCllCsi7RoINb9+AdBHdO9eKQYi9UrBOBwBgFhN3YEh+1SYHA6OMKKrq9Bb LFPTuTeK+1HO/6MUN1GSr6t2vlzpq4b5e/Vaap2lJKbAJClnB6+OQQpxMgZGnGheI068 zmGMg6O2H0h0xP4+rKjRF7w/jWHYW+uVOaGNxteiFTjh+RF7wmLp+Ips5MU0g2/s0x2c rTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XhrdhaIEG5bafgeKHJLWIBPWKeJ3SArX4MAGPufEfhY=; b=vLAuBsaiDh2aR45+ve6XT0Sq+3ZKok/SFkA9KOtYBrRWv5lw6UWarMI2YhstRzZAGH MNsQvpVkj6Sy1HTXfD6hOjw/OBEmSDsC2027SvV/0nJ6POioN6hzhPJCkuJG3MLR69a/ Lu3eItWOKo22YueWDlIhhaJzOI2363Vg2/ob3JcSeQwbTm19vKpr5vftteF8IbNBBYGB MxLH2hInpnfkJBMNcj8w72qoBFV44PyQOz4okifGr81D6q0BD3Yq7rQ+r9zeU5rU3exi pESWb4W8ra+iCxo+akqidcrZz9KQAzOdLZ5/GRhyBDng+QIBSl6V927icoKmChYGMgNo 5EXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nLNluw+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si19919116oiw.55.2020.01.21.13.47.44; Tue, 21 Jan 2020 13:47:56 -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=@gmail.com header.s=20161025 header.b=nLNluw+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729182AbgAUVqa (ORCPT + 99 others); Tue, 21 Jan 2020 16:46:30 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38111 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728799AbgAUVqa (ORCPT ); Tue, 21 Jan 2020 16:46:30 -0500 Received: by mail-qt1-f195.google.com with SMTP id c24so3994796qtp.5; Tue, 21 Jan 2020 13:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XhrdhaIEG5bafgeKHJLWIBPWKeJ3SArX4MAGPufEfhY=; b=nLNluw+JdlS4hiqmbBx0wnwY6jECy1KDzcqoPn4SByuikWs8s2/h9bX5c0vuhieChM sWadJBUNCPWX2cxHMDRp5P4oBY/TwRReKlwm5xVrk9VWGNuSScEYEZ6BeehDIx7FIlyI lYMMYvfliv3btcou7DKkjiPxI3lRAxGlMROHvE86DTpV5fBVevNZM/DTfY0j9mRrSQcx MqKMMApt4ApIDasho/rPjCKFcEa2NZLmpFgvNPXN/jx36oYRsLdSMCUJabWDDfIdtcXL cWLeEXBMTgxd0vjxaPnjCb5nklUf939AVrzCeysnhVw+RkBSHcr4cp4e34ZnAAT8nl7R ssPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XhrdhaIEG5bafgeKHJLWIBPWKeJ3SArX4MAGPufEfhY=; b=Lnh/p9XN9Wc/854/km63gLRNG+CpP8qxF152rSqo1ZZtSqLXadBORA45JpxGOyCQeU mcmLvksNC5ygntzS5TdVbWV8M9UcDe1afL8gl08rpT0DYe6IvDSsUQAUTy1pf3cTwQdV jwb8nrDOg9ttx11WVoLKIcg11IWNvPsI+oxG0xlK+sjzav5tmYzz+1DVxJVfFTOBIReh m1vE6jbOBHzKn2VOGpRTr9qZ/cWikTc1TJ7YWKJut9mtHUnihomvCbZgCnRydFTJ+nZr JPsaBPDYnRFWlpewuDolkMUnZBzJYR6vwok5F7mdtIP/g3B5/8d+Pu5Z8TOQUtMhH2Kk EJ8g== X-Gm-Message-State: APjAAAUBHQKYAgNIOzZzlAmz9IoE97MWc3OKI3dE5WEE3orEvOE5Dvq+ fUCwFHHktfasjrVjaPRJTml1Hc4niaxdmyJipTE= X-Received: by 2002:ac8:5457:: with SMTP id d23mr6473744qtq.93.1579643189445; Tue, 21 Jan 2020 13:46:29 -0800 (PST) MIME-Version: 1.0 References: <20200121150431.GA240246@chrisdown.name> <20200121202916.GA204956@chrisdown.name> In-Reply-To: <20200121202916.GA204956@chrisdown.name> From: Andrii Nakryiko Date: Tue, 21 Jan 2020 13:46:18 -0800 Message-ID: Subject: Re: [PATCH] bpf: btf: Always output invariant hit in pahole DWARF to BTF transform To: Chris Down Cc: bpf , Networking , Stanislav Fomichev , Andrii Nakryiko , John Fastabend , open list , Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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!