From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f2.google.com (mail-wr2-f2.google.com [74.125.225.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAE633ED3CC for ; Fri, 24 Jul 2026 23:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784936099; cv=none; b=dBwgxKjUtgwyNu6G969n9mWcTebqNbwmNoS2USWEuxh7PwGuDLWrOe/RkhHFbnRbc4BdDsPLw1Aa0+DbLnQvMMpY/WaL8EuCHJ1jRwzZyd2AcFvnNARfHdPKzKKRKgQudse0NKqbtbbeQNCXx0tJN33gYjPYPqgZ5wxBbP+4NbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784936099; c=relaxed/simple; bh=CHOFKpN4PQ499iQVlSuJFWWe52WI91gJWBi9MYe+/Qc=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=GWTe/9fUjIgDz6zILR3S2BPdVg+1I11SR0dFv6q8GnMlrCz9qnhsgt+CUGqb++SSNnexPjTfDtKhhmLId4l+ayPg1Q+3Gh97a4/tHynyw43DMC9zSWPrUPhw5U00iDYDmGqKvk4ahGaWJytaqpD5A7kmhg4isHXkdWhrsp79FVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nFeV7mjH; arc=none smtp.client-ip=74.125.225.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nFeV7mjH" Received: by mail-wr2-f2.google.com with SMTP id ffacd0b85a97d-4730b8edae6so257757f8f.0 for ; Fri, 24 Jul 2026 16:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784936095; x=1785540895; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=hD1qzOwblf2DhkJIDvNTeZ3M9SYqPvy616a9XPVmkaE=; b=nFeV7mjHd+7Rhv1n/OAnbesDXZ58fd3U7HbjeD4WYEWL2D1ILbh+TJcBmovaR0ezLg lmUnflxzhV0lo+A/bIPImTr6s+vRN54noWwqVfYZuJKe3EOYd4GUoQP0Ji3Wiu/1q3P6 d6szG7txDspdZRXKgDyWyZJ8RgtXehB+IstJ0RVkpf6cJYbohebDuohaRYnn4d8wD32Y 6tKNqyzKN4dDBC5pcyt2ojKxLGDvW8m0bU3TO3yflG8fQfIJ6+aU29VsLVJwbnKHtkfY o6p+KpwRJjHh/8r8sFfcmKCBB8ntTeVfFYr0dPAx0WGZYghbgk2wtoxUJeI0qS0J9ElB hKDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784936095; x=1785540895; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hD1qzOwblf2DhkJIDvNTeZ3M9SYqPvy616a9XPVmkaE=; b=OcDhGfmeKvgbEWergGvipenyZ8Oyr9TRVI77U5UzKXa4C1HgAZf/CdHTbnV0gX+Zgk yOpbvr/PJjv3LgeCub/V28T84vOnFnlSkWVt68CSdP+2nm0CpFeWe0DsFtHhuwzcCu0U CxQnfRmGiY74SofBZF1kIjGk9TupWNSzhY/HzRfWCvZMypcbBp0r4u7cZFLrw/ldTyDD bzLYGzZ8MZkbGLxqkedZ7DbBBpntH8U6P+Vv+2Xo2tkeFG0EI49QjBKklj46GGyldh/H xdEpmtkRYEzh2IJntd4AAU+/YThLdc7IKW2I3T+Z2qTFIyTwVjGByZQRvBbnXvTCVowm vuVg== X-Forwarded-Encrypted: i=1; AHgh+Rru4dEVy2lNurrrSEoYoSCoBTkjWMc8qXbT402VfBPW9sou1lj/m7JpA2EBz2HQBK7BNRkml0eLB7/81GieR+k=@vger.kernel.org X-Gm-Message-State: AOJu0YwVZwfCEvxSOMx4Am5miyXwdKGmv8DlAakxuKTEof7lv3NBXEqO nn2EJf8uTHQIK/G1TY6xCERdIM6UXgUNj7LbH4VMsg+ILLCvQmUZe0UV X-Gm-Gg: AR+sD105mTo/7Xg0j7Ppe8RKCK0RqMCuwDHlECxwJzJv67VixVw7wv2bruZ7E90erJD iaAkQTkxV0KVSd9uyb9Zj88kY+zP6dJJVk/fZp9oeQUUkcdmWNdPqe6GlvxclYZ2nGqdLHX9p7o Dd7+xyK9pZlHinV3bsss6rjhQjkLphbARLNp9by3Mkd8Xs75br3kx6hQPiGXYdyuCU1tDtHddZt Eime8gIm3WwFGcEVPx51Y8dR+EV61vYy81NN2O1CnGaHcIjFk+etQC4KgC/q3LdWzL0WJXCl0Xe cylCmllYrjC43WYRgtxsZZ4xnFpx8Bhm3hb23K+p6PTI6WfIqd7PSKn7RUO7PWnR/YKzLlh1eyG ACw+0P0w7sg2Y7ZgIsDjsYYPp4CA2oat2fhfs+lU0kCXgeQ8Y9kokqYS7MeXB+M773J2jsg6n6q +UDXx2XhDmp9Twa95F7KTuwaLFymuNubhnkGeR4YyxgqJncU1P2yocuz7FzpOmzuNs+mCuQnLob pya7CisF0g4+flmhPRVsFkK1y1yrwRSbzVDqyz11OG/ X-Received: by 2002:a05:600c:1c12:b0:496:b3a0:1cfe with SMTP id 5b1f17b1804b1-496b56f3994mr3482295e9.12.1784936094864; Fri, 24 Jul 2026 16:34:54 -0700 (PDT) Received: from localhost (nat-icclus-192-26-29-3.epfl.ch. [192.26.29.3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4957bfe07e1sm75012115e9.3.2026.07.24.16.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 16:34:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 25 Jul 2026 01:34:54 +0200 Message-Id: Cc: "James Clark" , "Andrii Nakryiko" , "Eduard Zingerman" , "Arnaldo Carvalho de Melo" , "Ihor Solodrai" , "Nathan Chancellor" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Alexei Starovoitov" , "Daniel Borkmann" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "Jiri Olsa" , "Emil Tsalapatis" , "Peter Zijlstra" , "Ingo Molnar" , "Mark Rutland" , "Alexander Shishkin" , "Ian Rogers" , "Adrian Hunter" , "Shuah Khan" , , , , , Subject: Re: [PATCH v4 0/4] tools/build: Allow versioning of all LLVM tools From: "Kumar Kartikeya Dwivedi" To: "Namhyung Kim" X-Mailer: aerc 0.21.0 References: <20260715-james-perf-llvm-version-v4-0-6dfdf984b435@linaro.org> In-Reply-To: On Sat Jul 25, 2026 at 1:31 AM CEST, Namhyung Kim wrote: > On Fri, Jul 24, 2026 at 07:19:45PM +0200, Kumar Kartikeya Dwivedi wrote: >> On Thu Jul 16, 2026 at 1:46 AM CEST, Namhyung Kim wrote: >> > Hello BPF folks, >> > >> > On Wed, Jul 15, 2026 at 03:53:47PM +0100, James Clark wrote: >> >> I ran into the build issue mentioned in the first commit, because usi= ng >> >> an option like LLVM=3D-15 is a documented way to build [1], but only >> >> some of the LLVM tools defined in tools/ support this. >> >> >> >> After fixing that, a lot of other tidyups fell out. I didn't go too f= ar, >> >> for example some selftests include tools/testing/selftests/lib.mk whi= ch >> >> reimplements some of the LLVM_SUFFIX stuff, but other selftests inclu= de >> >> tools/scripts/Makefile.include and I stopped before touching the form= er. >> >> Some other non build scripts hard code toolchains and I didn't touch >> >> those either, this change is only focused on things that already >> >> include Makefile.include. >> >> >> >> [1]: Documentation/kbuild/llvm.rst >> >> >> >> Signed-off-by: James Clark >> >> --- >> >> Changes in v4: >> >> - Drop "tools/build: selftests: Allow versioning LLVM lld", clang >> >> already picks the correct sibling lld version. (Sashiko) >> >> - Link to v3: https://lore.kernel.org/r/20260715-james-perf-llvm-vers= ion-v3-0-8854bfe5af7e@linaro.org >> >> >> >> Changes in v3: >> >> - Add warning for empty $USE_LD >> >> - Use $HOSTREADELF in bpf Makefile >> >> - Rebase on v7.2-rc3 >> >> - Link to v2: https://lore.kernel.org/r/20260518-james-perf-llvm-vers= ion-v2-0-f12cc4f031d8@linaro.org >> >> >> >> Changes in v2: >> >> - Fix selftests/bpf build. LLD needs to take the full path to be used >> >> with -fuse-ld=3D >> >> - Link to v1: https://lore.kernel.org/r/20260514-james-perf-llvm-vers= ion-v1-0-6cac1a9a4c8d@linaro.org >> >> >> >> --- >> >> James Clark (4): >> >> tools/build: Allow versioning of all LLVM tools defined in Make= file.include >> >> tools/build: Indent if else blocks >> >> tools/build: Allow versioning LLVM readelf >> >> tools/build: selftests: Remove some duplicate toolchain definit= ions >> >> >> >> tools/bpf/resolve_btfids/Makefile | 3 -- >> >> tools/lib/api/Makefile | 4 -- >> >> tools/lib/bpf/Makefile | 8 ++-- >> >> tools/lib/subcmd/Makefile | 4 -- >> >> tools/lib/symbol/Makefile | 4 -- >> >> tools/perf/Makefile.perf | 7 ---- >> >> tools/scripts/Makefile.include | 77 ++++++++++++++++++++------= ---------- >> >> tools/testing/selftests/bpf/Makefile | 1 - >> >> 8 files changed, 46 insertions(+), 62 deletions(-) >> > >> > Are you ok with this change and going through perf tree? >> > >> >> Sorry for the delay, yes, feel free to take it through your tree. > > Thanks, can I take it as your Acked-by? > Sure. Acked-by: Kumar Kartikeya Dwivedi > Namhyung