From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (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 BF1624749E2 for ; Thu, 15 Oct 2026 22:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792103760; cv=none; b=XJ45M2E8LGUdQ0E7hCEBchXZGFZn+QXakhkf0mn7UBiENRxP8Ii64RTI8OMoEooddgrCTVdSrAuRmK5ywzZWK8uX9t7xz7iUL31N6/6fiPZUlBTw8COiDX0OGQ9QhAZ28ToUyXdRKJsgckeQEkWzwz2JH+Vz9NMRmqmbLhyR42s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792103760; c=relaxed/simple; bh=cNb2599aisLf9N4nv6csEEr4VxPSgmqchakmgV0DaH8=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=bwq7FX7XE7ii4N56bk20aPgenPws9f1xigdvmno8fs7M1XK9dGDiTNIKwg2k7arrRWaE8rmeGH3dNuaV+4ciJ2HQR+D2F+23OqfGuEEHOYvEA2pJMaFmvvo2SU+eJFXEJwWMvj2FBLBHNNAEmCJL8SCRT8o9lQXu/fZ2IYaCcC4= 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=EjIqj7pC; arc=none smtp.client-ip=74.125.82.172 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="EjIqj7pC" Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-35d7fa491deso468566eec.1 for ; Thu, 15 Oct 2026 15:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792103758; x=1792708558; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id :references:in-reply-to:user-agent:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=xXSyEv36jnn0UrqVwNj52XhE8B6xeFQj285n9/QUz+4=; b=EjIqj7pCoK4+nk0gU9MX14g+breJOxcXlm0yFKr5EaiA8aq7vDFzKWKqk+IoaAcvMV mSk4mZuF73BmDubLI/kgjeBIyCTSOxz0+xTMAhHUnQy+xx/mhI9FpSqXCtR1GsB/HQ/K BfGvBbOB5qbbVG/vRaSijI7V088bcrEaSPx+mfU4LsS5YTmPXTAFdGc30M8xHlIR56zG Es7oHusr7nahKY3iRvXOTKZYXuBp/VBr++bBzCfjFl929eJRLbEmlP/94yn/pOgGzBkS h5EXmNuXi41gSBA+oH/q0PCluQzF70hc4fFgENnEBxbpR86TLZRDtN80ggq4m5Ay3lsG OqMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792103758; x=1792708558; h=content-transfer-encoding:content-type:mime-version:message-id :references:in-reply-to:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xXSyEv36jnn0UrqVwNj52XhE8B6xeFQj285n9/QUz+4=; b=KigJ14psThXr2Z2rN0iNK+wpV+v3EppKMOzer9tvzigF+Qyj09Sh4qXkMy3JyNiipt WyYW2N79kbPNgXkKxBctMQ9yUsaHrbJCrQn2UtyNmARiHyTDeXrMQWRIyw95JN4AaC8l mGSYVQxcckiXG3wR6nchrV81r71FpYtkpId++VNLJDXdkuMK+wV/QrYN6tXpHVtw4l9K cc7cOTEPpMVHu/VsqnJ386lcbqlIpiti6DTz0yWlzkysDZsqCNCGO8nZmZlJM0qbsjpj Mylx+BmnIrkzKrEquE0UR6wHu43PicpVeEOCKfq26JTDqIqsjUALx4yaex/hhjAsLloo BOkw== X-Forwarded-Encrypted: i=1; AKwUvByHnVExvEorY7mX5u0BelJM5BvqPHZbddZ/iJ74Ue5eJHJSas84r/RoFPSqIo8ORZRuwwrZbskVUpP3I+w=@vger.kernel.org X-Gm-Message-State: AFq9FYJZnoCe/r8EULyuyKjk3fNbNNiWCHwrI+W+1CoIyccLbQUlUwhC 3p5sT9w/vc9KhdQSpUIlO90F+arq9YEOxV3fNa5zWY1DGvv2+ME9gqKf X-Gm-Gg: AYBFou0ZdXowUjUXRbtihckNstqqFan3f6Hdxdo626nC1SdZk5ROWy8YfrF7B9PxQI7 NncBvrxk5ptN+0vMGw1fQXkqdtivfdTZHujdQZE27cDtpcytwu5dGPwoRXihFALnJQqzt84iDKX r4KURb4DyQBRTPmJr7/LnkB118WS3yiBtV80g5iTmmQHSpfDN9/ohcNjY1Cf4kbrzAgwfdhR/nI wQqvlozsIXyjstzqdQh3BlXp9swI+K9RHNO30oyciHsmBcSkTII7SCMxQj1CKRugM/wbDFB7X7j i7zdRp/r56K+D+Y4LhcBoQOtR/B37NlXNdjsGCChA9xnWA02ItdNeEbUKvfNttjUitCJxzhJ8yy HUIIHuPRiMGwNBisQ7LcKuWhnDp3lSTA8m4EslLQnEOqlxV5ooUrFii+tb5qrmN4URzr5bhDu+A BVMDqFOnPUmMk3Ss4KrIcOHTVSmvxHgrJ4Gz7+ADWsLjb86ibvT9/Pw25+6rOu61RicQFg7zl5G cmuJFLzmRKhBUA= X-Received: by 2002:a05:7300:50f0:b0:35c:eb2a:8c2a with SMTP id 5a478bee46e88-3602ae5f83emr1712774eec.8.1792103757626; Thu, 15 Oct 2026 15:35:57 -0700 (PDT) Received: from ehlo.thunderbird.net ([2804:2bf0:60e7:ae00:5bc5:e41d:2ee5:2023]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3607ee0cab0sm1155305eec.3.2026.10.15.15.35.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Oct 2026 15:35:56 -0700 (PDT) Date: Thu, 15 Oct 2026 19:35:50 -0300 From: Arnaldo Melo To: Sasha Levin , Arnaldo Carvalho de Melo CC: Ian Rogers , linux-perf-users@vger.kernel.org, Namhyung Kim , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/6] tools: build perf in tools_build User-Agent: Thunderbird for Android In-Reply-To: References: <20261011233647.2454648-1-sashal@kernel.org> <20261011233647.2454648-4-sashal@kernel.org> <20261013170854.647305-1-sashal@kernel.org> Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On October 15, 2026 4:26:33 PM GMT-03:00, Sasha Levin wrote: >On Tue, Oct 13, 2026 at 05:21:25PM -0300, Arnaldo Carvalho de Melo wrote: >> Why is that difficult to run: >>=20 >> make -C tools/perf install-build-deps >>=20 >> To do a recommended perf build deps install? >>=20 >> That would be useful as it is what we expect users to do=2E > >That's what users do, but it wants to install packages=2E > >We need a path for unprivileged builds on bots and CI machines that can't >install packages, and many of those builds are cross builds, where perf n= eeds >the target's libelf and libtraceevent rather than the host's=2E I see=2E It's unfortunate as the end result will not be that useful, as it= will not be testing what people use=2E Maybe use make MINIMAL=3D1 when doing cross builds?=20 I think we can make this easier for you somehow, like disabling libtraceev= ent when not available instead of asking for it to be explicitly opted out= ? >> If that is too difficult, for some reason, there is a minimal build in >> tools/perf/tests/make, that is tested since forever: >>=20 >> # all the NO_* variable combined >> make_minimal :=3D NO_PYTHON_MODULE=3D1 >> make_minimal +=3D NO_DEMANGLE=3D1 NO_LIBELF=3D1 NO_BACKTRACE=3D1 >> make_minimal +=3D NO_LIBNUMA=3D1 NO_LIBBIONIC=3D1 NO_LIBDW=3D1 >> make_minimal +=3D NO_LIBBPF=3D1 >> make_minimal +=3D NO_SDT=3D1 NO_JVMTI=3D1 NO_LIBZSTD=3D1 >> make_minimal +=3D NO_CAPSTONE=3D1 >I tried make_minimal on perf-tools-next=2E It still requires libtraceeven= t, so an >arm64 cross build without the arm64 libtraceevent installed stops at that >check=2E With NO_LIBTRACEEVENT=3D1 added, it then fails building the Rust= test >workload=2E I'll fix that, make_minimal wasn't updated when libtraceevent was made opt= imal, IIRC when it was removed from the kernel sources=20 > Natively it still enables aio, libLLVM, libslang, libtraceevent, >lzma, zlib and Rust when they are installed, so the result depends on the >machine=2E > I'd like to go with Ian's suggestion then: a MINIMAL=3D1 knob in perf th= at turns >off every optional feature, which tests/make can use for make_minimal as = well=2E Sure, for your use case it makes sense=2E - Arnaldo