Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp616231pxu; Fri, 4 Dec 2020 11:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJz72e5kq20VfwjH16WUz2QrhjwTuE7+xPggrVmZuNewtRUh65ka6QezenusyevjEq0BRCNX X-Received: by 2002:a17:906:c04d:: with SMTP id bm13mr8357253ejb.519.1607108638033; Fri, 04 Dec 2020 11:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607108638; cv=none; d=google.com; s=arc-20160816; b=K4pvumGQ47r6LjHZ9hMlHhx+ysuFGGs7UaTgIFdxsYQe76fiQIqOaQrEeyVcyqP/GB FmLDp/NfVKPNtAYKREay1mZQylR3hctOgydZeOq3oZ0kEroS5rUqWs3l1yVasKQvoCRf eXLlQg4VFzOivXIPm+qYh4sGrGKmdfltEhBr5/+TJb15VI90ICxiwaZZ9nczm+akNnic eixVpR2s3MtvN1EM1280JR5dCxExsl2Cz6j6JEwWt4yQNpq/WXDZNMGSP0SOGLk9e6JV R37zgsBx6Ieu8hJcVcvg/I/hMaHulA5BdsFoId6QeqCbX8ga/VlWfHhLqRHqaaomwO5e bEJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4r6WZhkyZIzK0rIBwuYU0NPXTkSxOEOm52PkNYUaj+s=; b=l2/2hLtwpeyPmMAcoz7+7gFnfM1N58a9j5l/40vASswDQqH3fLaz66gm3Gzm3pWV2R vctkQjYk1OfeGXJQHv9R5BM+iBEM0SceetilPl7NXy8xL4B59j2y5mAXb7KVP4AJwfQr jVQHuwAPBegcCgTyNHuMTsfbeasb17I4XiruUpAd0ymSsbXwf6CaEmP9b36b35n5XYcT P98Z0pHgmQhvx8QW8UBmUgH3rENhLOKd5BwjOPR4VsYIOy9NKh0VmaeRBK7o6yu0Qh3r 5vDm8AJqxJUkwXvfFdvj55P61pQj4yBIZw4KNAkSYL05aV4fdHuq3iZ6zaaI2lnVrFv0 IRtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nVjkunzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ca22si1893367ejb.688.2020.12.04.11.03.33; Fri, 04 Dec 2020 11:03:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nVjkunzY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387474AbgLDTBR (ORCPT + 99 others); Fri, 4 Dec 2020 14:01:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbgLDTBQ (ORCPT ); Fri, 4 Dec 2020 14:01:16 -0500 Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D37BC061A51; Fri, 4 Dec 2020 11:00:36 -0800 (PST) Received: by mail-yb1-xb44.google.com with SMTP id e81so6388868ybc.1; Fri, 04 Dec 2020 11:00:36 -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=4r6WZhkyZIzK0rIBwuYU0NPXTkSxOEOm52PkNYUaj+s=; b=nVjkunzY7D5aDuphMfTR8i1RClbCPQze/wlsEU2/jS6QF1X+vAX/caFXmat4i7/l0V OHmh2jAefBh3TWEn3CmIdoCRAM/eqPrw9ECeLd4K71opWhq/gXq0wkW/f/6PHxXUxnZw PnHOJrs5MFL53S8vuzksEWMi5QC5Jtkc6FuSTJrRRagvl+LFowkJ7JkvjucM6ws+5s9d 0DRtcPsQ/gf1HGV/QFNMjAmIWTuH+BXyTZzeETNlwxKtaFW0NV6xfZ7DPcTMPV4fyOT+ NqQkb/QnMzaX+VV4ytqJNAXuCleDP8e+YWbd6HoaYO/wo4USR8KdM+o6m+CLhkArR3N/ umhw== 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=4r6WZhkyZIzK0rIBwuYU0NPXTkSxOEOm52PkNYUaj+s=; b=h6r1eVZS7S/xd80wDkA481XlVXdMzxNqk1Fg8B8mUW8UqyiF7Rlt91ydnx0KcnY/Xs pnDl7ijoDTuQn1q8Tfe815pKLyY0saePbrxUqO35D+1ONuugx5KLv3haVVXLI4eB7jx7 ax7SWYb0f/1MZWx7cxL76B8dmQKTXaqCCTc4zcwSpfS/BkqzYpIw9vypd9LstwG2CZhY wUjnHmxvaHxEpSIPYRU9aoUhZXkAcwE2m6MYF7aTc0ImlSH3xiz0dA6xrcKIG8IYjvkP HKjLkcrNuqktam3EdvflKMm5t/4kAwjVvB7a8QpMooJbjVu0aTxoR7B3GxLvGD/Esy7W tP7g== X-Gm-Message-State: AOAM531ZuxVFEds4FO6T3XQTWX2+lf9KBIymu1Km9q+aA092FXj7fbne aG/2SP+5Y1ufxKgTlRV9xVqASek3mfaKLBvlYrw= X-Received: by 2002:a25:6a05:: with SMTP id f5mr4291189ybc.459.1607108435741; Fri, 04 Dec 2020 11:00:35 -0800 (PST) MIME-Version: 1.0 References: <20201203160245.1014867-1-jackmanb@google.com> <20201203160245.1014867-13-jackmanb@google.com> In-Reply-To: From: Andrii Nakryiko Date: Fri, 4 Dec 2020 11:00:24 -0800 Message-ID: Subject: Re: [PATCH bpf-next v3 12/14] bpf: Pull tools/build/feature biz into selftests Makefile To: Brendan Jackman Cc: bpf , Alexei Starovoitov , Yonghong Song , Daniel Borkmann , KP Singh , Florent Revest , open list , Jann Horn Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 4, 2020 at 1:41 AM Brendan Jackman wrote: > > On Thu, Dec 03, 2020 at 01:01:27PM -0800, Andrii Nakryiko wrote: > > On Thu, Dec 3, 2020 at 8:07 AM Brendan Jackman wrote: > > > > > > This is somewhat cargo-culted from the libbpf build. It will be used > > > in a subsequent patch to query for Clang BPF atomics support. > > > > > > Change-Id: I9318a1702170eb752acced35acbb33f45126c44c > > > > Haven't seen this before. What's this Change-Id business? > > Argh, apologies. Looks like it's time for me to adopt a less error-prone > workflow for sending patches. > > (This is noise from Gerrit, which we sometimes use for internal reviews) > > > > Signed-off-by: Brendan Jackman > > > --- > > > tools/testing/selftests/bpf/.gitignore | 1 + > > > tools/testing/selftests/bpf/Makefile | 38 ++++++++++++++++++++++++++ > > > 2 files changed, 39 insertions(+) > > > > All this just to detect the support for clang atomics?... Let's not > > pull in the entire feature-detection framework unnecessarily, > > selftests Makefile is complicated enough without that. > > Then the test build would break for people who haven't updated Clang. > Is that acceptable? > > I'm aware of cases where you need to be on a pretty fresh Clang for > tests to _pass_ so maybe it's fine. I didn't mean to drop any detection of this new feature. I just didn't want a new dependency on tools' feature probing framework. See IS_LITTLE_ENDIAN and get_sys_includes, we already have various feature detection-like stuff in there. So we can do this with a one-liner. I just want to keep it simple. Thanks.