Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp607060pxb; Wed, 27 Jan 2021 16:34:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkxF/FfaObRTeX8Gwu7RU1EqXbTQgzPwyfKkUqiWBEZKN2Xl4V6ZIgsRCwZJUStUgJrUql X-Received: by 2002:a17:906:b756:: with SMTP id fx22mr8313048ejb.406.1611794078603; Wed, 27 Jan 2021 16:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611794078; cv=none; d=google.com; s=arc-20160816; b=glibdhYCyraCQ15X6vBgYksF66v9yvhoFQ6pap6qHAfLmN5r6QCXCPiyjXsUjKvWt9 U6g0R3GNGROvnzivMM9VRjV/SxL8QLKNr5fxWXjASp+kuHS0XihoJZiWQcYkHuHYAffF J5XMau0SkFPOBMQ7Oizzsmb/uZtvMZOb3FakFGctGoJRY4nDjr0qSxOfFMsUDJenWrQl I/iarAOpHXoFaKyDdRrt+7AJ+fTY+SMm9duVYCsCMKG8Kda3xX0aYYNuH3DXKwfe54xt rdDp9HhKzagDa1C7AhQjLtlkqL3tuJBqurAxYKDjlNkTUY9i2hjK2Yra0bPTnwcQgx+R uXDw== 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=xywJGgIcTxVvkZqtRxr3IHcoZ/CsjmP0+9gMWTEp1ss=; b=u+vx1bDTD8vfah/rtXDGhrgxkWY8IES2Bae6yLD5xHRUxLMjHqfyniY92yJFfUqGZ1 31jd3KA3XnJhBfCE4Ubj0UUi3lNFhu+NbqBbxHTAK6DdWnS1TErbJg3nw9VqV4rRkmiG ewu9687qD3G9qCWR5yYWnPWrOF+IY5+fyxg5ffxO+hLLvjZWV4EUJQV+WTURw0rBnhhj LX5xH/BiZiL5LcJ7qJ/prtvsfNw88Oh1CgFNiPQLk6rAjhZmti095V9GyOTtzPfsN9mX GZyDUZNojJI2TOdHXsZz9FoWBsqZ3ngIzf9uBuyxiCYHBx2y5HJzZMrsTjoTlh29jfhy SAgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qkIGz0z4; 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 k26si1780992eds.217.2021.01.27.16.34.14; Wed, 27 Jan 2021 16:34:38 -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=qkIGz0z4; 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 S234137AbhA0VXj (ORCPT + 99 others); Wed, 27 Jan 2021 16:23:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbhA0VXf (ORCPT ); Wed, 27 Jan 2021 16:23:35 -0500 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F20C061573; Wed, 27 Jan 2021 13:22:55 -0800 (PST) Received: by mail-yb1-xb34.google.com with SMTP id e206so3402161ybh.13; Wed, 27 Jan 2021 13:22:55 -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=xywJGgIcTxVvkZqtRxr3IHcoZ/CsjmP0+9gMWTEp1ss=; b=qkIGz0z4s8W1yAlglSlVW5Wf9AcYrGbrId2zsbWQuIFE15O4ID1t2iJ5IpT0G+UStb 1rGK/eYmNQb89aXH0wMS6GHIxwYAGeijl+ffXCu/eSpiBVstK9dfuHBV7Ghw3bh/CCWC 3IDuvCeTZ3aA4wEU9PKoj0D88eV1OLshk3K+93x9+au1AsLucXZO9khSMeM5BD+J4fiq mF3RHQ6NIncGQS8T0l3d/22XTFU97lKSxN4MxutPYHky7NrR2G8U7J9eDBAc1iT4KYfK hACFCCZJoqNrtZZiwX63q0xBl94WzBxov31w3f0a4Yy0QoXb8XvuKSP934vahqEoDayD p8/A== 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=xywJGgIcTxVvkZqtRxr3IHcoZ/CsjmP0+9gMWTEp1ss=; b=bqyCqa4C6fTtrlL7T1EsjxeSvqxpBi7OvAufeexHFrxX22jVk+CEBtfP20i4MsraVK zDTyP9+6tkl9WCJmZ0TSxPYEVxyjM2NHJ1G9Z+E5Y9Pqy5Ta65oEaWOTi6kBrgmKjiDa 6SdU2eojHxBwlVjyCRycq9l+VEMpfm8lRMY0AeNxeN11JDE3QJlwq7igPJ+xGLbKgt8D 7ZQwLRJPRVzMS6cmJOJt05UEkCnlWZvd/fyxlcM4ydFI5LilgPL9aT4G2pPHcS4rw8Hk mTq7aAkjFx9vpJApRtOswL1hCLawQPyrmpgK6Co6U3c3T4QIkfOjjwZ8WdQ7rBhQ3f3y 8Y0Q== X-Gm-Message-State: AOAM5334ZIV0QA/rTCXk3aSSwVnQubbr0NTNDRJO3kLz1qoGEd03+QYZ SrduPCNOFEecjDp4WvwGG5y9Pr/2jvSAtfE/HTc= X-Received: by 2002:a25:1287:: with SMTP id 129mr18349652ybs.27.1611782574731; Wed, 27 Jan 2021 13:22:54 -0800 (PST) MIME-Version: 1.0 References: <20210126085923.469759-1-songliubraving@fb.com> <20210126085923.469759-4-songliubraving@fb.com> In-Reply-To: <20210126085923.469759-4-songliubraving@fb.com> From: Andrii Nakryiko Date: Wed, 27 Jan 2021 13:22:44 -0800 Message-ID: Subject: Re: [PATCH v2 bpf-next 3/4] bpf: runqslower: prefer use local KBUILD_OUTPUT/vmlinux or vmlinux To: Song Liu Cc: bpf , Networking , open list , Ingo Molnar , Peter Ziljstra , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , john fastabend , KP Singh , Kernel Team , Hao Luo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2021 at 1:11 AM Song Liu wrote: > > Update the Makefile to prefer using KBUILD_OUTPUT/vmlinux (for selftests) > or ../../../vmlinux. These two files should have latest definitions for > vmlinux.h. > > Signed-off-by: Song Liu > --- > tools/bpf/runqslower/Makefile | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefile > index 4d5ca54fcd4c8..1f75c95d4d023 100644 > --- a/tools/bpf/runqslower/Makefile > +++ b/tools/bpf/runqslower/Makefile > @@ -19,7 +19,9 @@ CFLAGS := -g -Wall > > # Try to detect best kernel BTF source > KERNEL_REL := $(shell uname -r) > -VMLINUX_BTF_PATHS := /sys/kernel/btf/vmlinux /boot/vmlinux-$(KERNEL_REL) > +VMLINUX_BTF_PATHS := $(if $(KBUILD_OUTPUT),$(KBUILD_OUTPUT)/vmlinux) \ O= overrides KBUILD_OUTPUT=, so please handle it first. See selftests/bpf/Makefile. > + ../../../vmlinux /sys/kernel/btf/vmlinux \ > + /boot/vmlinux-$(KERNEL_REL) > VMLINUX_BTF_PATH := $(or $(VMLINUX_BTF),$(firstword \ > $(wildcard $(VMLINUX_BTF_PATHS)))) > > -- > 2.24.1 >