Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp656237lqp; Wed, 12 Jun 2024 12:05:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8UjTEvJQkGH3Ah7Mm5H0MasIKqNZBBRgUnI5dTQpjSJp3eavFfvks3YqTkrEqjMqp0gnOKozmenLR0N8zKCwpOdyWBIaRXecxiSNRMQ== X-Google-Smtp-Source: AGHT+IGtITgKiVopc+EIrIfKNmVzolM225yEjgYvmlFVhkUFA4hBlWKqDVj+9VECySOUqVHnmg3n X-Received: by 2002:a05:6808:3a09:b0:3d2:2b8e:386d with SMTP id 5614622812f47-3d23e0a78damr3191982b6e.6.1718219106954; Wed, 12 Jun 2024 12:05:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718219106; cv=pass; d=google.com; s=arc-20160816; b=fxQVKGk8yKzsSrOaSIXUFHcO7/TLFJYtMoP4GEAs8nEuMOiVVRXgmqHYHdAJRe5Q6r zRhzty9qF8sImRKDAA2S0EUqFhwcB6G99rsaNr9PVJP/tUblpIj2+H5a091cc97OO1kS oPfqsx/sk0+nBSZdlXuSDt0HZEtl59OzXZgwpn1fn8y3SjVEK6RaLqh/GiOmmLQ1k+89 PSmxTqFVqp1i3YGpJAyG5vsj1TUaS6lIai/60eDtQVRWMcd3t8QbrfhaWS/QPypntGe+ Vlj0DCOxqmilz3Xagz1RTsUWg6T+wAtj+9+lExbVhRk/9xy4B94aiTod5v31WxurN31t q5zw== 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=qcvOQ2AYZ7WMCcNf48y0Z4WIFFdDS7XM+Tp2DrQsPX4=; fh=YKnEOAo20fYwwKx1MQCMPYiRnCumX+AU2kz+QZWkUfk=; b=gmdHKlkFmvZB4mCbqjkTFTObGD2WMQXrb1YoN5J2KBYXurAWYE6aylEJXyEoikvT8x 5EK+lHNe9Qvdb2lMwq1Ntn60aZe0hECagWnlBllVZnj9PKkowig8gugO/IR7/AaSa3/l hhl92Q8dMG7KnGY8WfXXsckAnqvSD0NPd+epVmsh9NeTjCW4O86JS2Ne5eE7FGK3Ksph +j61nW9Yzz/B3sURb0ZaPeI0OXlJKLBfYSqMkjtUGj8tHSy4l3nIIWHuHSVbAJx5hpUw /BrNowSfmPN6jrTKdtXmy1JaDNXftKo9vSHDxqC8ydSBoFeaKsYgpvQJma56EK0KHoZP Meig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="rP/sws8v"; 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-212092-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212092-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 5614622812f47-3d2263b2464si3008322b6e.300.2024.06.12.12.05.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212092-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="rP/sws8v"; 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-212092-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212092-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 C9C6F288F3E for ; Wed, 12 Jun 2024 18:37:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0A1B84D3D; Wed, 12 Jun 2024 18:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rP/sws8v" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 BCB7182492 for ; Wed, 12 Jun 2024 18:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217226; cv=none; b=cxSLL/fVWeMJ121RQ3ic8qRV5GIJOS7BNM7XhaZ42hB1gNQfE1GINFxlAZcNtsLuUJTfHOqI5OhyJwMDXqk1Vgu5PtidP2YjpjIjeg/wX33DQ1x6sSxQG/A0kBLjXcC6Fqh8phUiAywWAm9Rnxxtg0EEkNtadCmiaoRNJsLlICw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217226; c=relaxed/simple; bh=/Y3F4sCd7/hxoSnGLA3j5vPDaNT/PzOL30m0ArVq/VY=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=UkywMKC043ox26JOyKazu6R/pMCFcylS/6Z1q2ZUGK0shWCgGsU8bZHKxGOKjsU7u5ADWHs6tXanbYrcAAJpEgQmwgTAnxUuaODdWahDEpSrfqUEuRXuflsDoZv30wPNR0r+7IHzwgdDIH5DKtQ67mP8K53ipHkvdQmWbo4giI8= 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=rP/sws8v; arc=none smtp.client-ip=209.85.128.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-yw1-f202.google.com with SMTP id 00721157ae682-6300aeb93dcso3413757b3.0 for ; Wed, 12 Jun 2024 11:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718217223; x=1718822023; 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=qcvOQ2AYZ7WMCcNf48y0Z4WIFFdDS7XM+Tp2DrQsPX4=; b=rP/sws8vcz6H1pxHy8tHHDH0Rk57fIR3h3Zo8Qchjpvy5rLlMggauUc1OF79xyXUGQ wfBkC47pVUG+d+2HeRET01bquauFbdzzKTF/hdrD0x2en8s1rvpz2JDrx4usTZzXRUrV P3+cmDWt9u962ezC0pV1xMINUx0InDc4R2R1DbnviG2E7ffRVDydbaT792Dk4nOvcjT8 UQ57n+RF8/mCN33Qcn8WEZYFfbnz66uaFt0zVIINbmM1O+Mb5oWlSHqWMPoudT9d6xQ6 MiaeRTiaomH3yI37BcYDAR2OOUeldVnSqoxaJcutMimYBG896v4VUW2hQ92CuOVr9N8+ gLBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718217223; x=1718822023; 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=qcvOQ2AYZ7WMCcNf48y0Z4WIFFdDS7XM+Tp2DrQsPX4=; b=AAtXH9Yg0YracJgGmmyJ3CwW+wM3sjWjPofGh+zeWuvrPALmg+vgfdDUWtru+PJq/a YqRCBwhfTMAflWlOI0TusD6U51MZtnE+8tNaOyssvf2pMA7XZ7LI3VseYn0LvcZ0dlPz 5chEzfBOj6aneq7Me251e1de4kv/B6VD82Vr1zh+ng2ItsRhZCu+5Ho3Oa/bLAqNZnXt ljeeM1BmU2mWz1ghqSB5CFH38KhF+KlcxDVnFUquL9AXx7r0tYKi1HOp4NcqUr1IC/B2 wFE5CvpL45RZQPQelmeROd9rrk5UFk6XjsJBlKPqF8w93xKZHCiTv2GSQgt4Kzp8LD8E PfxA== X-Forwarded-Encrypted: i=1; AJvYcCXLIulsVYsqcoF3jggE5/mwXjg0okwlXNhzZ5DI9/8sSLviF6HxWPetVqucz6XoL3eeqistqjfksmpxGMVdle5u4WYfzEszOj7gEGSK X-Gm-Message-State: AOJu0Yy/X2KtUpAC7dhBQluNm5vTTQ9+/RXKoM6N72eaKe/rxuV5kkMg 6WfEcKkdMq2HjmX+J3nKS35smelQwo2M0+RV4xb0vNebzJfyqsPoJnCglBSYVSUWW/iGIJPuBe2 hwsGWEQ== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:959d:4302:db0e:d12a]) (user=irogers job=sendgmr) by 2002:a05:690c:88:b0:62f:22cd:7082 with SMTP id 00721157ae682-62fbb7f3b47mr6200647b3.5.1718217222801; Wed, 12 Jun 2024 11:33:42 -0700 (PDT) Date: Wed, 12 Jun 2024 11:32:05 -0700 In-Reply-To: <20240612183205.3120248-1-irogers@google.com> Message-Id: <20240612183205.3120248-8-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240612183205.3120248-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog Subject: [PATCH v1 7/7] 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 --- 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 6f66d3a7ffb2..918b851b2e0d 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.505.gda0bf45e8d-goog