From nobody Tue Nov 26 22:24:40 2024 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 199E91AF0C5 for ; Wed, 16 Oct 2024 04:25:10 +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=1729052712; cv=none; b=rOcHUs3s5chSXGtvPGn0ZxepOT8+mvniNQepY/dOSRMO7IReo1c7hjq4QewF5pUhWn0SY8OYpmjFziIxhf3mjrjsglE5WQR4toxfUmiwqpDAO/Go3rQfbe/KwshZSxc1+6OIzoWQ4FStfZ2nmX/XwD3jNeIaW2e500kRDm/M48U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729052712; c=relaxed/simple; bh=atNphtq2muvnpNjRyq+CfSdLflI1yp8tf59eJGJ5FKY=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=qUxkialsOqat0Thq8PBQ1HSmlUwbT/GBs/VLeo35XcI8QgWYHKQKPlk/khMActeMR3s44M6G+roSB/eR8jKUrunpVPtGaVrCLpoGGWYZMe7hBQdwVKJQwZi9+RMwyxYnjWzkNmv1cxQgUpRLsPMhq4Ltd96gZvTw8bKemoHPOww= 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=GfhSnokz; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GfhSnokz" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e2939e25402so5335212276.2 for ; Tue, 15 Oct 2024 21:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729052709; x=1729657509; 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=B9FBvcyPFVemeh0oNlvVwr42rd3aNqdBh2Zt6Y7kv3s=; b=GfhSnokzPlTdThNa+NEMJ5l9YQcMB62EJc1mOKCi01/q67Jr+JqHy3WH/UtmNwbh/m kku9tcPZ3NT6Fq+7shTyB1I2nMmIvhNaZcoHZql7aBec5Rlg2jQ4SfjKSXfrGXuGUzU8 sNcc3vU8E+VLNg8nxmTH3fgT5a1oWNFcjkra2jdz7JNQKFWGaqLSTWZKdHPH3jYS17fY H6W9e0lvfiJFj/t6a63+uHYsQU6l56TVyaHL5ELo3KZDjr6w84r8bUiVw+M/iiXLerFD PdYNNrFLeNpf+XoDIO3FaPAi42jEC6B9HwGIkG2+RdfhdOErMQ4M/RiBfhOiu1yG5BKk ZKgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729052709; x=1729657509; 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=B9FBvcyPFVemeh0oNlvVwr42rd3aNqdBh2Zt6Y7kv3s=; b=nV3GCOib0iREbQ//FbIBs8j2mxdbjKR/zj/5IS2yRVD7F1sgEOa04Wp7s+RmWaxUv6 nzXaaUj9nGRQzDYlQamzIX1Bq+EgDW2WxhVDKedoQzsGBy0Jrn8VQ84KCV3dzbl7uh8m 0h1kMzz7esjfTtj+vOe4ieG4N0tJVvbS9qY8JW+nGARFXoofqJHkefcoLpuLgUpXOCgC FRxrqxJNtQz8uvjSFQf7xyOopzzyo6quzIZ7weW6WZkX5aC0shZ2ESvoEyWL1q8ee13v 6o4T5qIr4VogrsyPTsnZhQlk1uGNXOHCDRnKm+VAs8wkzAvxyMXHzOEisqY/9OgRoekH FIRw== X-Forwarded-Encrypted: i=1; AJvYcCUSk9ubcO9xTFZZmUPSerulxlvNvA9RWDwwZWAZw3t8wLLtj15gUQfmZZcafQ8MN0P9BUqqPsuzR4p88Ng=@vger.kernel.org X-Gm-Message-State: AOJu0YzYQ5ISttHVMBZxMqyMrxDVucjMj/4M2v4rjSOY0C34thv1uSxq MOBJmAVOw3RPuUGZhU1UdBIbNpe9lnQYVw5q2z9CxBgOnX/G6y4Cw88Zo84w/z0YTS2l1KtTQgq Is7LU1g== X-Google-Smtp-Source: AGHT+IG0WlG2n418T7PMxezvNke9lFkjjek058CnnTXKNxeKbgILUTZrua9v/4XFvBZYiE3o8pXnS/9hYV2Y X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:a00a:f237:9bc0:79c]) (user=irogers job=sendgmr) by 2002:a25:d614:0:b0:e03:53a4:1a7 with SMTP id 3f1490d57ef6-e29785a421amr2168276.10.1729052709171; Tue, 15 Oct 2024 21:25:09 -0700 (PDT) Date: Tue, 15 Oct 2024 21:24:14 -0700 In-Reply-To: <20241016042415.7552-1-irogers@google.com> Message-Id: <20241016042415.7552-16-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20241016042415.7552-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog Subject: [PATCH v2 15/16] perf build: Remove test library from python shared object 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 , James Clark , Howard Chu , Athira Jajeev , Michael Petlan , Veronika Molnarova , Dapeng Mi , Thomas Richter , Ilya Leoshkevich , Colin Ian King , Weilin Wang , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" With the attr.c code moved to a shell test, there is no need to link the test code into the python dso to avoid a missing reference to test_attr__open. Drop the test code from the python library. With the bench and test code removed from the python library on my x86 debian derived laptop the python library is reduced in size by 508,712 bytes or nearly 5%. Signed-off-by: Ian Rogers --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index e54c6953cf02..957b25322786 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -487,7 +487,7 @@ endif EXTLIBS :=3D $(call filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS)) LIBS =3D -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) -Wl,--no-whole-= archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group =20 -PERFLIBS_PY :=3D $(call filter-out,$(LIBPERF_BENCH),$(PERFLIBS)) +PERFLIBS_PY :=3D $(call filter-out,$(LIBPERF_BENCH) $(LIBPERF_TEST),$(PERF= LIBS)) LIBS_PY =3D -Wl,--whole-archive $(PERFLIBS_PY) $(EXTRA_PERFLIBS) -Wl,--no-= whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group =20 export INSTALL SHELL_PATH --=20 2.47.0.rc1.288.g06298d1525-goog