Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp475876lqs; Thu, 13 Jun 2024 16:34:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPVHYgpjEFL69pA2EjBjyjo0bvaMwQPaqDpDba+4hEKuPi5PjoAc3Oc0lPR1ib/tmBRkAtyXaWQ2cDQkZPDB/vBzs8rNirKfLIrhywLQ== X-Google-Smtp-Source: AGHT+IFTZqD/EfM0FaLzC0911IY7yegsgp8qI6u0gY3ZYGyw9cSQWdwYM0oMqXO3W7WVXhGFVrZ6 X-Received: by 2002:a05:600c:4689:b0:423:366:ad3d with SMTP id 5b1f17b1804b1-42304827295mr11850185e9.13.1718321689332; Thu, 13 Jun 2024 16:34:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718321689; cv=pass; d=google.com; s=arc-20160816; b=dQ/gUky9lwqCEU1bkN1pmXj69r2DLtV8VVE+u3hrjt4bPHDegPYTotd9WqbiKMU+jS gnCW15C7NyXSv7KFl4n3/fbObIuPMyYB93Y2GUdGbdYm//Vj+4RX2FWeImlhzZxS0NN/ ILFkLb/T66G8zc4ZRsjl4FY/0U2OKL1ED6eDTjfI22fUO67ucUXTPAtVihL3eudiq268 7n6fhgXIzrpcipY1ch3jMxsUSJ7vvgLAz2GkxfjbU192K+kLaDeD8v8mRTUP7GfoE7ba RA5pEPMstTaoWAlOexpKdrD1AtdPRDmOLvAMhBse9IjoHAzN0ydXGfDNrdlxkWQVjpRD Qygg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=r+L2y8W9nebELrh4jjwhLDqIvkQwPnsfqcpkdzoDYes=; fh=f2CQbOojhFbN769DLoOEA8kVoZIKT2lf5Rbaxkw9KGw=; b=i+kWCAGTnu05Mc1xFQ1ZA+d133RbGJz+3NGdPY3guoJ6tWPwaWii8FGYonggKMFwbe 6B2T+u+YYvVgYlKE3UbSs8bFqfbXe8qu2SDL95nMIa8BMHD5maKtwASpC7Fop0Eoo5KR jn4OWBcVbpQhiRrrgcAVwE7UNexzwR5ddeGo1bQog8x0UFR4ZwGtwClxQVi7Alq3mLhi pRDdxMjcjXpLfwI8H4s5qBRLXkVCzTrM2P+XuDtqcWD6sHbEPiJTwclPxm5NNv9zxV3N PXcWjggq6Kk5kL5i5o/tTM2ef+HNRKz0bOSUKqR+yO52uJmZ+3PL2VgXbBUXJ/I+9OeX 7nBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LJjVVOL1; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-214106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dd644esi115924866b.392.2024.06.13.16.34.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 16:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LJjVVOL1; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-214106-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214106-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D9A891F21F77 for ; Thu, 13 Jun 2024 23:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66D58152E17; Thu, 13 Jun 2024 23:32:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LJjVVOL1" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 C0634157E82 for ; Thu, 13 Jun 2024 23:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718321520; cv=none; b=MEjZLk52bAdCrr3BGm93usiYPAgUdixTRH2u4kPegxWWn7r1DGRkrLiGcdcB8TsTFI+E0yM2Pf80C0Dj4+3WZxLo8a1oKiRzfbneip/3G7i9wOuisXWIBl2jOMFvajdaOrTPVsDBOrjOE2xzpUG+6q/1p294PFsHvBE8ZwEHfPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718321520; c=relaxed/simple; bh=/ONs+RfIi9pLA0kZMRaJefFpcB8Apxh4eLPjFTsRe2k=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=WYIsJzymNjfxQsGO1qwxwnR4BE33yhRhugAiVGmrHjdaGYFhBRp7jxFZQpvsu1MTHCyt51mnITravOE2riiEAv7kWbI8dLrmhuE2/aJ60FU9jHCKp+P98OVXALtoCHPsAgzIk8cP2wIBd0l+39fsNx8BPyNZf1g6vedn+5+9UZc= 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=LJjVVOL1; arc=none smtp.client-ip=209.85.219.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 Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dfe44496da9so2702267276.0 for ; Thu, 13 Jun 2024 16:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718321518; x=1718926318; 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=r+L2y8W9nebELrh4jjwhLDqIvkQwPnsfqcpkdzoDYes=; b=LJjVVOL1W7z8ariv5eRv9Oc6qcqSdVDidnv8bkp3K2wOzpZfTOLJVFmBqT9PRObT5z QXlNHk7ECb3QA/P9QyevKRSD21n8+RB3q6fRoW15Lni86MpU+MZcFOLOoZjxffImjaO5 LQyc/rILhpO3s/RwLj7aDZON71WIc9/bk91gebnxiO3kVRsJxQxUZ2zWUWR245RQtKbi qloZLDGq8vM9znddDkZiZia6VXCYlfD5tbAMhRTOUcDYUtgnvaKQBRof5aTfZZkuqZfp FfQRTUvRtoFKHpFQKXXNSoNonGdt8SO23oMIG7a17eYQDp5Y3zbDOEdnrCE1ARzR9pAx aH5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718321518; x=1718926318; 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=r+L2y8W9nebELrh4jjwhLDqIvkQwPnsfqcpkdzoDYes=; b=X/3CFnutYj5k2zT5iaN5BUd/Bd9CGQViQCoG91j/veCcrBJs6r6smszXlVmcwUtt0j Ivf/h/mRQF61nv+tZO2Kya69K2T8TG23l3/G1S3xwp7ZVlDqzUiUP+CsGKAPVrgyK9wb 1TcTnVMmVCUOaoflP9H5x3/bHgCdDtgzV7JiT3sH15WP/WDiqvRzZ+j0R7QeZEG7Zt6N sobPGkW4gz9mHjOQInj5r6jlUBhgYMw+Be+kbvNIeJhLVM8vP6tA93EQazK/bhZ55vZK zZec+5/tpG2EfUXRQCiLoPtMvWJhUtqWoJMN59wO8HiszsSsM9tNf1+y0FXGrtopocCV bWuQ== X-Forwarded-Encrypted: i=1; AJvYcCXQQ25ouIziXwwze9cuYvup+01ZqXC09fVh1KDfZBQdLlS4pRKGsfei+w7i9VxZJNqmj6hf1mxbdKR7Lp5hKZkjZ++S6UyI3x/z+0SD X-Gm-Message-State: AOJu0YzSqIlb60KfvTPIjn8lbaCZOnGXYAgtD87BzkFMT+SrhN2z4Qs4 PiHE1VabvDXzZISqDJazlw8kpFSNSrae6jzlftIp64mHn1kz7DLTzjj7ttksGw2M7SAFuuPmD3E 6EoR/xA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:96dd:26a6:1493:53c8]) (user=irogers job=sendgmr) by 2002:a05:6902:1204:b0:dfa:ff27:db1 with SMTP id 3f1490d57ef6-dff15412181mr135767276.4.1718321517470; Thu, 13 Jun 2024 16:31:57 -0700 (PDT) Date: Thu, 13 Jun 2024 16:31:22 -0700 In-Reply-To: <20240613233122.3564730-1-irogers@google.com> Message-Id: <20240613233122.3564730-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: <20240613233122.3564730-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog Subject: [PATCH v3 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 , Ravi Bangoria , Kees Cook , Andrei Vagin , Athira Jajeev , Oliver Upton , Ze Gao , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, coresight@lists.linaro.org, rust-for-linux@vger.kernel.org, bpf@vger.kernel.org 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 := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT # Use the detected configuration -include $(OUTPUT).config-detected -ifeq ($(CONFIG_LIBTRACEEVENT),y) - PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) -else - PYTHON_EXT_SRCS := $(shell grep -v ^\#\\\|util/trace-event.c\\\|util/trace-event-parse.c util/python-ext-sources) -endif - -PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py $(LIBAPI) - SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) PROGRAMS += $(OUTPUT)perf @@ -715,7 +707,7 @@ all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS) # Create python binding output directory if not already present $(shell [ -d '$(OUTPUT)python' ] || mkdir -p '$(OUTPUT)python') -$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(PERFLIBS) +$(OUTPUT)python/perf$(PYTHON_EXTENSION_SUFFIX): util/python.c util/setup.py $(PERFLIBS) $(QUIET_GEN)LDSHARED="$(CC) -pthread -shared" \ CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS) $(LIBS)' \ $(PYTHON_WORD) util/setup.py \ diff --git a/tools/perf/util/python-ext-sources b/tools/perf/util/python-ext-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 -- 2.45.2.627.g7a2c4fd464-goog