Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2964026ybl; Mon, 20 Jan 2020 12:57:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyVBhnN3lrcjmWMO50Ugrz7ZeGT77nVZv4D1UEJI/RZWY59tU5WyjMj/cChcUl0iia4YNRN X-Received: by 2002:a9d:70cb:: with SMTP id w11mr1072752otj.230.1579553853532; Mon, 20 Jan 2020 12:57:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579553853; cv=none; d=google.com; s=arc-20160816; b=AJOHwIz2aIsld4hXIAj9izdc0IIGmsOoskvOIZYvkcPs8kZAcBjpz7GALa+fi/0508 mja9jzDAz4TFczNU1Ujon8jY9HW0lbxjlxsnccHT/hmWHg09X2T3QRYy62R7GdOyRHv6 T4v2O/0Io0L5Nj2iOhrO2T3U4vNNFL9pHVb3wDCjgPcNOTYt7injPxy821oUZ2ADdRV+ UqAWt5WGzLcegyufrlPubICrGch2F6UsoJ6iv/MAcmv6CQMcThZXVIhWnVF1LQ2U90Z8 XLsX5WgvWo4av4al3BLDcvYY6z9NCjROPdvAtd5gFDGlXbhPem1l03kFrmY13Htakjp7 EkOA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DmDOf0n1Uh/peGzEOmgfSb9HmQAqydm6Nl5bcqVlrmM=; b=Oh6kbMS3VW405xXZAsYREcHsoh/jdegW0C3e+769BwjYpgVfmmRhhzci0MMPRUCh3+ kOLHGFYyh7igZwL+LcFlvomL5gOQ64TIVJvKwgNYaX/RrlL1iMkfHEeWx3dlVV5yUulP 2AQuG6Wx53yuvXZCuAdBHVarMt7z2oGtXsm2gyR79Lu7K7bPI+BBQ1CFz8FTwY+XCCnk dx6bQRRfYWtd38TZlNhwLfpcBu7EGDN7d881d08jhd6h7cAylGvf/tZqZXKJtaMc3D2V z4AXWZ/zbj4VhE8UC0Br4earUlLOmrI2LqmknVjyfvfsR1vEvjlmELE75XLWBHZxB9RY V2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtbvV9o0; 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 y8si18373561oih.141.2020.01.20.12.57.21; Mon, 20 Jan 2020 12:57:33 -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=qtbvV9o0; 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 S1726991AbgATU4X (ORCPT + 99 others); Mon, 20 Jan 2020 15:56:23 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42558 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgATU4X (ORCPT ); Mon, 20 Jan 2020 15:56:23 -0500 Received: by mail-qt1-f193.google.com with SMTP id j5so871843qtq.9; Mon, 20 Jan 2020 12:56:22 -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:content-transfer-encoding; bh=DmDOf0n1Uh/peGzEOmgfSb9HmQAqydm6Nl5bcqVlrmM=; b=qtbvV9o0qlYj0zEYfaetNpBWONaNX49z7r9KiONLvB56ImwV9BfzAQfRJ/d+P39w6e Atx4wqs0EezVaqWKK8iOEwpK1VXFvtGnF3Z5bmzVb4hIK/JOunUkOOMX8jThq/UN+foD Hk9xS71cvdaBqbBeZUudlzvTmorF3r8/NnQQA91oezRuX9cO76q+rynoOBJwQ0i2hWch 8P4FiE7epbKWthfQX7/ZH5GcrLb4ig3qRcJ2IYOUVrJN/4gFbfeV6TVC7mHa6cXu1IWz 2+divanKVWo8d83xgUuSTG5tywO6xLNvZpBPT/j7YMcN8AqZcufWyA2HE9q3a50Xkp+1 ptTg== 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:content-transfer-encoding; bh=DmDOf0n1Uh/peGzEOmgfSb9HmQAqydm6Nl5bcqVlrmM=; b=Pfrm29+ZVf1itz3TbdaWRlM47c9beZnxDtcVkMxaSzv/otrqrYtvM80OdCk9dZlUwR fA1D0u5gSDG91kkdjibrwSHsk2F+S1up7Y7EEcNOfQUgCC9LfxpOBFjzqtcE+xPtZ0sG uhNdq7XoXJchuZwkHUaaFX6D/KxzUf/eRC52wdkGfswQqdKTyfS/g3wQSnrd0bR3f4ig v7Sj9bhDDPL9Qm5aLsQPSTUSSQ+//s4P83ommNP3l75U58I+/KrWei/y9jzdSUeiXNFL /ODyAssUnVYSgJ2dF1abV1VJ2HMzP0LuutBSGQeAvyEQKpBYn3NXBaOSSFaPL7pPN6WE Oa0w== X-Gm-Message-State: APjAAAWR0Vxbh7/jKHugGpvgQlq3lY4gJ892PnwvQR6ct8AWtj+iyZa9 IkZbT6BRHt4YWWHkGl5YHm1sFEZb25FgB1peWFw= X-Received: by 2002:ac8:4050:: with SMTP id j16mr1212310qtl.171.1579553781967; Mon, 20 Jan 2020 12:56:21 -0800 (PST) MIME-Version: 1.0 References: <157952560001.1683545.16757917515390545122.stgit@toke.dk> <157952560237.1683545.17771785178857224877.stgit@toke.dk> In-Reply-To: <157952560237.1683545.17771785178857224877.stgit@toke.dk> From: Andrii Nakryiko Date: Mon, 20 Jan 2020 12:56:10 -0800 Message-ID: Subject: Re: [PATCH bpf-next v5 02/11] tools/bpf/runqslower: Fix override option for VMLINUX_BTF To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , Networking , bpf , open list , linux-rdma@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 20, 2020 at 5:08 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > From: Toke H=C3=B8iland-J=C3=B8rgensen > > The runqslower tool refuses to build without a file to read vmlinux BTF > from. The build fails with an error message to override the location by > setting the VMLINUX_BTF variable if autodetection fails. However, the > Makefile doesn't actually work with that override - the error message is > still emitted. > > Fix this by including the value of VMLINUX_BTF in the expansion, and only > emitting the error message if the *result* is empty. Also permit running > 'make clean' even though no VMLINUX_BTF is set. > > Fixes: 9c01546d26d2 ("tools/bpf: Add runqslower tool to tools/bpf") > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen > --- Thanks! Acked-by: Andrii Nakryiko [...]