From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) (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 05A8C38944E for ; Sat, 26 Sep 2026 06:21:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790403691; cv=none; b=sfoRILobOnDYssvQNUATd3zpOrnfE0OsJ1jkDoZxm4c5QBE/RngPMCw2/l5Of1PYi0Ru+70EUKgFEGFBCpTNWyL5b5e9rQF0lcoR5TP7NuXb4ZikNTXvR7kRa430EaSs/WamtUPkZnT5JKNmm3znNCqllIgobjkwchxCc/H8uYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790403691; c=relaxed/simple; bh=QaOKcC3xB9tJnn86MlbEa8bSn+Cblnb5/u/A/81MgrE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=srjZp7U8IKbN2YkNE5KfwmKyhwSZ7e44tQkxTCskB5tu4lzVcFyeMxWX9TlMfKs3Du/8IabhrS582/s3dZX/X8deAC/BlWxY7OaFWGn/Fbty8Z1SH6DGbDvbm90dQKBIA1YSA8UQWcsrq1VNYlflEBsWS9ap24NJWvoCRtBShq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JDPKDk2w; arc=none smtp.client-ip=74.125.82.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JDPKDk2w" Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-33baaba6371so3370010eec.1 for ; Fri, 25 Sep 2026 23:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790403688; x=1791008488; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qe05FHDdu95HVgsXpSMUSqcDD6kwb7IAJCk1+vrij5c=; b=JDPKDk2wzbwvT90tpueikc/1qsQlLht4A1R6YcjRyEUB3NMqxahzJDGW4oCbyuIzD1 OBnuVLggDUAVUv59UPwAmSO0njoQuk0XwwXXq0K/Yh0ACIXk628iaFojPwhIp7nIeqQ6 BXJvlQQ0KZoMqXC+J6+jqbZMVILSgUWMfcl9Mnvmy60AM0Jcn1wrM0WHfhLjkGg8LbZh ISx13w5QQENZfADoJQgYg+n4YwudaRhMGquaEzENYCbJKSpXWiA1L0E49+joKI6Zp1gz R5m0F1cV0sx1ZpJjrSqwiNL3+KwMQa1mOleBck3NRRcBL93LSDpDk37mBnM01Unn1GCI 5xzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790403688; x=1791008488; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qe05FHDdu95HVgsXpSMUSqcDD6kwb7IAJCk1+vrij5c=; b=Jg59Nr3nP+kiwleIGIiY3D87/tIEit6Z4RyfVOoaXt1/qbL9akuyVMjcaoE0gmsjE7 pvlLYUHg0X6qZ4KfNP5D4sTHP0KMuVGjQ12e0moiNjFfGBvBcBvWOHQhwG3/BRAvek1c H0d5/ZSqjV7u6D4sYqY1ixkf4Mt9qVKTfTq+Mqafx76F/SaBxwjKWkThOxZwBGq4elYj AjwJbbSppZDRJaYt3GcuGWNHLP0g87RdKKpE11cOz7DTE2rUgQ0kgsAk1POtv917KNs9 dL6KILpe3rxcVLwYByvX2m6lUl/PKr3QGPJf1SIBKuFCEucQW+8WT/qZMXCqQ6YbtCLB BZzg== X-Forwarded-Encrypted: i=1; AKwUvBycnnw96oKd4uLKuVoZVTpxaLajZl8VC+MaHbBq10sTnCbC2P+N7hkkZNOMyJPvy6Mx56ifRDPuDiIG3nU=@vger.kernel.org X-Gm-Message-State: AFuF++m6KnJFklhiNdWsL6Ra/fSRGTtNzRF9LgGHL3LPyQujIfMDOPRd GsJHx/PFRZg2uLIn+SU2vzvAO2c46g8DMNJ0xjO7FAjYLJXCmW0+jxnVpFjhGF93TVLeSW7HbA3 D60u4g9qtcg== X-Received: from dyos30.prod.google.com ([2002:a05:7300:6c9e:b0:342:805e:c749]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:2511:b0:342:84ac:2a5e with SMTP id 5a478bee46e88-34284ac2b27mr2011339eec.19.1790403687673; Fri, 25 Sep 2026 23:21:27 -0700 (PDT) Date: Fri, 25 Sep 2026 23:19:42 -0700 In-Reply-To: <20260926062029.800743-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260923181213.3032038-1-irogers@google.com> <20260926062029.800743-1-irogers@google.com> X-Mailer: git-send-email 2.56.0.rc1.315.gc6ed9934b7-goog Message-ID: <20260926062029.800743-16-irogers@google.com> Subject: [PATCH v4 15/49] perf Makefile: Install standalone Python scripts during transition From: Ian Rogers To: irogers@google.com, acme@kernel.org, alice.mei.rogers@gmail.com, james.clark@linaro.org, leo.yan@linux.dev, namhyung@kernel.org Cc: adrian.hunter@intel.com, dapeng1.mi@linux.intel.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, tmricht@linux.ibm.com Content-Type: text/plain; charset="UTF-8" Install the newly ported standalone Python scripts (python/*.py), type stubs (python/perf.pyi), and compiled perf Python extension module (python/perf*.so, when built) into $(perfexec_instdir_SQ)/python alongside the legacy scripts during the transition phase so that newly ported scripts can import perf directly from the installation directory before legacy support is removed. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers --- tools/perf/Makefile.perf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 168b286770f3..89edf2720fc1 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -907,6 +907,13 @@ ifndef NO_LIBPYTHON $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'; \ $(INSTALL) scripts/python/*.py -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'; \ $(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin' + $(call QUIET_INSTALL, python-scripts-standalone) \ + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/python' && \ + $(INSTALL) python/*.py -m 755 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/python' && \ + $(INSTALL) python/perf.pyi -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/python' && \ + if [ -f "$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX)" ]; then \ + $(INSTALL) "$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX)" -m 644 -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/python'; \ + fi endif $(call QUIET_INSTALL, dlfilters) \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/dlfilters'; \ -- 2.56.0.rc1.315.gc6ed9934b7-goog