Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp343986lqs; Thu, 13 Jun 2024 11:35:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzPImSajVaOVkmiGNbdStgZVVqcvTClupA2woMLb2ijEUnAt1xLx0vRWp1bOhAzkN3vXyZ1r1gVNSTuk36EMohtO7Gz47oqeADsjiHuA== X-Google-Smtp-Source: AGHT+IEMgMGheLkVBLZe+DFNgBpkpRMx4j3VdC0APGE+JU5F47Rc4YbAsLU02To7Q8aMbve34Hsn X-Received: by 2002:a05:6358:430c:b0:19c:334c:4ff9 with SMTP id e5c5f4694b2df-19fa9e77d1cmr70386455d.14.1718303738796; Thu, 13 Jun 2024 11:35:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718303738; cv=pass; d=google.com; s=arc-20160816; b=XwRdkBDL21LCId67Yev1eJN3VzcCnR4GdSMfnYfvLMYO7t6P4HJI15b7O5AFOkFK0/ 9mHtGGWavvaTBPM6iRqo1nGkLfwDP/4htmumlfpslCU0gsMIag6n6O7/V4GoZgVnJDe5 npwT8eDmvW2jTnncDXXNYEHgGrP93aqEK3DmKPZkXUlGI4pARKRkI7ToU7oooq5to2AP owJzIzgXQilK7vONRfYBTn22QxsPX7NzBeydhtcUfioazuU9g8tTm19DAUBasyl/9wxR ejyPKMUpWEHFy8W1Ft/OReJYNvIB/wBYf/f85ry5nbcktY38AYLKQpP5oiXyFALhBm8P uC/A== 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=G2cqPZjxhk+sFCnjwEPQlzw/kiNGSOtu5p8+6fx9n5Q=; b=cisR+8dNLDX7tVraqQxUAa85r7B2rdOUWt4PYqD/1nTUopqEqnDlZqGxHijunUEjj8 wnsTRLpw9b35Vtf8Jp6lDkTyPZ5ds0BMyIFGYN3pladGTCklutK2t7ebyOQkJ6hTm2Zn iNSFpa7wP1rhzu83xHaoVRs6n/UqP5eqydJKc2U2pcbpVrN7opIbv3mAvftGdHqiIr4R Ebih4D42hUkEyogLaDFNd+iqWDmBJKOtc8Jck05DVzFmQ772Kbc2b1GtEm9WyiHV2ZUT ovyQ++Uhua7yLqZnMqpsAmTCQ0D7tTSd0TMEwhmrFBLQ3gMI905+2kFrCbfgOvKF6AlT ApOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hEO2CNJA; 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-213842-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310d170si1782716a12.283.2024.06.13.11.35.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 11:35:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213842-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hEO2CNJA; 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-213842-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213842-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2373628692B for ; Thu, 13 Jun 2024 18:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DECC15747F; Thu, 13 Jun 2024 18:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hEO2CNJA" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 C8A16156C5F for ; Thu, 13 Jun 2024 18:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303577; cv=none; b=Y/55IOg+i6CNdXTW9p9gVQ7awSn7fvQm5p8nP6zbjAJwwy+7PdJVDtmeTaCxLRtHdIvl9UXcFTo40evw6P4ajYz8F0GE8xu/nwSKLFMw6d1UBzuPATby+hcDuGD6csOxoTzWZu8X+JKuCFbzrFkpeG9wulzuTxMXifoEWsShu5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303577; c=relaxed/simple; bh=/ONs+RfIi9pLA0kZMRaJefFpcB8Apxh4eLPjFTsRe2k=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=HXOvr7NFWPcdA2yG9SKhXEqAowDPZGzn49dcy+nwJtW7iS4xlK+2TeVWGYEfoh8oLVbbpi/cdBldA+afX5hSJOLYx9+4c1nItszWn3vmGUiTIVdKhFq+dricUsQt4GZIjd2H3r1eRN6zG/EfC0wAb6cR4EwNxa+9KJwUwNnJztc= 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=hEO2CNJA; arc=none smtp.client-ip=209.85.219.202 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-f202.google.com with SMTP id 3f1490d57ef6-dfab38b7f6bso2052151276.0 for ; Thu, 13 Jun 2024 11:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718303571; x=1718908371; 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=hEO2CNJAvcrlwDrlDCWdHdQlJpSR6QLZZeIrYGoKOAoOVxz8KDLFnx9ctYVko3Gman NNgP4L8MztFV3ElCGGLcg7wj6twQ1MCORgUVT+4FTjKrtRYX1g6v+e7eTQoVbZQGcvOw 5aoOd/Lv3zWENB3Ctu/k3D40tbO/jRYIX+fsZf3HzoiSBk4CTDBUHeGnS+VVsDhQohm7 x3dYo/eM+wTHm0M7J5A4hTq08I8Nt5lNanQwX1MTdvgdXlTlztrq4BFUcvYkgNyEs3mE nw8Hgh29aitOej1fBpPN+bu811f3wrIORLjEXda9qTjU5QF5ZUzweT38VFgVh9bXUObS 9UdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718303571; x=1718908371; 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=bDZ/LfRPzTAgIa+A+PGJu9Baj1+07dofdNBc9A5AX5vOkBwqAMDTtvKQuc0b+vvajL bJOnQzkx9lOOLT98cxecKnwBvSVHKCrNzCrtNaiBR+X3hNwBxffRcG6leCXFzuv0YB+w l1wRerv2cnKp7odK43QjejtLDyFiU9ooAX4YM0l4H86OyC7zl1dpVOBxUmSmGLpK4EmX G2kz/IoRyD64GQvusTEFjuRtJ1HE3fYHm+2AIJwYVc1D3NbkWveFW1JhycLKCHMdmaQ1 9Nb4ifdxzYayUnmwnereTDxMJDixmx+f97mD8INUdMQk4QxtmUy5qsNruaIctMAqGSym AFlA== X-Forwarded-Encrypted: i=1; AJvYcCUtJcb/fwvqCUtTxHVw1fkc/0bUi6zdmxtOmezdgKJ0PfgpjMEwWyfeVK3/inPJyugBrpmJBYl+nuBx2nZa7idiENFtw1ViadVrgmUN X-Gm-Message-State: AOJu0Ywtr9z+IT2iG8KqcN6tN3KeNxwEvL3xqo5G0WUxJUlfiDeYCOFl k2GhOU0TQ9cdStQ9IAi4VSHpPnI/wDDZbBuEu/Fb9pZzAPulSBcGdReMkoLfzXxmBWjTyWROxRK kUDErcQ== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:96dd:26a6:1493:53c8]) (user=irogers job=sendgmr) by 2002:a05:6902:2b90:b0:dfa:7278:b4c4 with SMTP id 3f1490d57ef6-dff1538dae8mr77808276.4.1718303570700; Thu, 13 Jun 2024 11:32:50 -0700 (PDT) Date: Thu, 13 Jun 2024 11:32:24 -0700 In-Reply-To: <20240613183224.3399628-1-irogers@google.com> Message-Id: <20240613183224.3399628-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: <20240613183224.3399628-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog Subject: [PATCH v2 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