From nobody Wed Dec 17 23:54:21 2025 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 6114F1802AB for ; Tue, 25 Jun 2024 21:41:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719351702; cv=none; b=mN7vA24bvXeouIYnBvL2NLYlz3Jb1PGTn0pzaH0uGbsqnV8yOV6gjUj5aSRs6D3Lzkm4idSyHNAcaDlP2tWNiPqlN6uJ0bbcHe5Ena3TC6EYkp4gwV8NhORegnHGzKeKTRcYf7lVTcNFEuslMRIPKvqNF40/b2U7cqeNX1c2i6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719351702; c=relaxed/simple; bh=CETWFSp62XKm8QsosO88QfPlj5Apj8qlAZlMiQJxdG8=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=Bqj2FUSjVOmAPlfiZYHY9FCxMgl/VnZu8/1vgmPaVK96jS9UmikCXpN7zEaL8W/7kH+yvgLTkwTqixUVVhBoodY1vggEFj+NHuIr5P1qjHTv+nBqWeRmc52vDOosObzNfJsaRZN1iK+WcMb77gWPPWKpeo+9d5dMFgwNbkHQd1M= 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=p3RW6/TX; arc=none smtp.client-ip=209.85.128.201 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="p3RW6/TX" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-62d054b1ceeso124462497b3.2 for ; Tue, 25 Jun 2024 14:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719351699; x=1719956499; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=TNiHPl//Lsoc2p9Fy12YXW9IZoRAXfYV1fymis0TYVQ=; b=p3RW6/TXOOIARDXQ8GBokjGqF/bi3WptCHEnzNgRd0tDZjW2TDRynJ9+kCeYJjAXVZ WGOml0P211ZCtWHW/dOA+6pMX9/BsyDIKsZriSuDc13qyuFjp23vtlhXQqM7KM4iDoJ2 tcmvEsRAC4JJzlvHIRrGQkuvtZnu23nm+F9pT3igaHz6pTaVEWc1vg4kCgzSxYUaRSXC otmdTy4IznIVr9IEPnAcjZg+AgpVaSaq7wAeg0GcuPAlHucaprd+4mYcRKBhulMgzo5B 2r3bGZ+ie49FtpmG0WAcdtqMV2WvXoFuB6aIcZEU6xeib9HJ3lhiChZMDQ9AZuvL+T/m 2/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719351699; x=1719956499; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TNiHPl//Lsoc2p9Fy12YXW9IZoRAXfYV1fymis0TYVQ=; b=Zw/ZtIUl2emH8WZJJrUKEpq2DMEI83k1h51I/VM8m/AQFYiRXaWMuBRc6r32ySjqfh fnlnW96/VZ4xpBO8Uc78axVF7SX1MgBFEg0eIrQnaruAdOQTbkcKHUXk3AYrmYsDmnZl lGkycQPWNpoaMz7e07kT2ene8P8dfKyLqXcMTcJ3n8AUvllulCYngwzOCXqvZhi4I1mA j9vG3OpWr2FRma6jyxCNP44N2jOPiPiOA9dxj3EFE+PvRjbItJ5CxQ5DiOwfEtuXIY4f UvoU4PiuMMdOfbpJ0FmR/Wd4rB5botqo2sTftqzn1ivq2sqPPgn90PCDbvno0WLltedd g6nA== X-Forwarded-Encrypted: i=1; AJvYcCX9DUlIxKT7nfIp/MW5NFZzlKERfrB6RsJKRtfGFcvXLJvEiS/evZ/9gM2XmbJJm3o0vZxdMLISKOfCTuo/rGDgGlk+J2lh6BjtaF17 X-Gm-Message-State: AOJu0Yz8dhXGvDkcIVd/Vh/QHRf+RSPUkz9oGu7qqYcethrgA7b0X54Q MAIW4imTw8oUu0tfbfI8SZYYxKft9v/mI+tcqS1Yc2lUmqogFLh95b5ZmoWQCTDGVOLLJNyibgG p0lS94g== X-Google-Smtp-Source: AGHT+IFf6QjCAadJ64QWN4oknaimKg8PZx1SVSDc+jL/zM435Qhp/FAtzNAZRfPH43WJkSqiC7EzuQKOhPB7 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:23a1:25b9:2412:56de]) (user=irogers job=sendgmr) by 2002:a05:690c:e1e:b0:62f:f535:f41 with SMTP id 00721157ae682-643ae731fb3mr2924307b3.9.1719351699321; Tue, 25 Jun 2024 14:41:39 -0700 (PDT) Date: Tue, 25 Jun 2024 14:41:17 -0700 In-Reply-To: <20240625214117.953777-1-irogers@google.com> Message-Id: <20240625214117.953777-9-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240625214117.953777-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Subject: [PATCH v5 8/8] perf python: Clean up build dependencies From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Suzuki K Poulose , Yicong Yang , Jonathan Cameron , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , "=?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?=" , Benno Lossin , Andreas Hindborg , Alice Ryhl , Nick Terrell , Andrei Vagin , Kees Cook , Oliver Upton , Ze Gao , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The python build now depends on libraries and doesn't use python-ext-sources except for the util/python.c dependency. Switch to just directly depending on that file and util/setup.py. This allows the removal of python-ext-sources. Signed-off-by: Ian Rogers Reviewed-by: James Clark --- tools/perf/Makefile.perf | 10 +----- tools/perf/util/python-ext-sources | 53 ------------------------------ 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 tools/perf/util/python-ext-sources diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 4a1a9f09fa09..590081384882 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -380,14 +380,6 @@ python-clean :=3D $(call QUIET_CLEAN, python) $(RM) -r= $(PYTHON_EXTBUILD) $(OUTPUT # Use the detected configuration -include $(OUTPUT).config-detected =20 -ifeq ($(CONFIG_LIBTRACEEVENT),y) - PYTHON_EXT_SRCS :=3D $(shell grep -v ^\# util/python-ext-sources) -else - PYTHON_EXT_SRCS :=3D $(shell grep -v ^\#\\\|util/trace-event.c\\\|util/t= race-event-parse.c util/python-ext-sources) -endif - -PYTHON_EXT_DEPS :=3D util/python-ext-sources util/setup.py $(LIBAPI) - SCRIPTS =3D $(patsubst %.sh,%,$(SCRIPT_SH)) =20 PROGRAMS +=3D $(OUTPUT)perf @@ -715,7 +707,7 @@ all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BI= NDINGS) $(OTHER_PROGRAMS) # Create python binding output directory if not already present $(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python') =20 -$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): $(PYTHON_EXT_SRCS) $(PYTHO= N_EXT_DEPS) $(PERFLIBS) +$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): util/python.c util/setup.p= y $(PERFLIBS) $(QUIET_GEN)LDSHARED=3D"$(CC) -pthread -shared" \ CFLAGS=3D'$(CFLAGS)' LDFLAGS=3D'$(LDFLAGS) $(LIBS)' \ $(PYTHON_WORD) util/setup.py \ diff --git a/tools/perf/util/python-ext-sources b/tools/perf/util/python-ex= t-sources deleted file mode 100644 index 1bec945f4838..000000000000 --- a/tools/perf/util/python-ext-sources +++ /dev/null @@ -1,53 +0,0 @@ -# -# List of files needed by perf python extension -# -# Each source file must be placed on its own line so that it can be -# processed by Makefile and util/setup.py accordingly. -# - -util/python.c -../lib/ctype.c -util/cap.c -util/evlist.c -util/evsel.c -util/evsel_fprintf.c -util/perf_event_attr_fprintf.c -util/cpumap.c -util/memswap.c -util/mmap.c -util/namespaces.c -../lib/bitmap.c -../lib/find_bit.c -../lib/list_sort.c -../lib/hweight.c -../lib/string.c -../lib/vsprintf.c -util/thread_map.c -util/util.c -util/cgroup.c -util/parse-branch-options.c -util/rblist.c -util/counts.c -util/print_binary.c -util/strlist.c -util/trace-event.c -util/trace-event-parse.c -../lib/rbtree.c -util/string.c -util/symbol_fprintf.c -util/units.c -util/affinity.c -util/rwsem.c -util/hashmap.c -util/perf_regs.c -util/fncache.c -util/rlimit.c -util/perf-regs-arch/perf_regs_aarch64.c -util/perf-regs-arch/perf_regs_arm.c -util/perf-regs-arch/perf_regs_csky.c -util/perf-regs-arch/perf_regs_loongarch.c -util/perf-regs-arch/perf_regs_mips.c -util/perf-regs-arch/perf_regs_powerpc.c -util/perf-regs-arch/perf_regs_riscv.c -util/perf-regs-arch/perf_regs_s390.c -util/perf-regs-arch/perf_regs_x86.c --=20 2.45.2.741.gdbec12cfda-goog