From nobody Mon Nov 25 04:40:34 2024 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 AE2D1811E2 for ; Thu, 31 Oct 2024 01:43:56 +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=1730339038; cv=none; b=h99EZh2hhjoioW3W6V+GYtroLI9tvPANtTvWXof7bUH+QBPgfqKB1f1eKz6Qc7pJtYCvzNNPoNqRYqmk/qmcN/JbW5cK/fbk0CS9DTGgv1eOjTlKA+K7t9d1mnoblT1PzGqQ4ZlZJ5li6dnSWcPMU205tWmDgtUSKmLWc3dOI+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730339038; c=relaxed/simple; bh=iNS6gSj7D1lsvc1g5KMcNyPf5WgHbLQ5ta+6ZtnweO0=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=Gu2anBOhLnt5nzjq5k4wz4nDuuobWzXgsdAqfW/Q/+eUeHPCkOZzxI/SfNRTUicmKF7B9pc90iHRlDoFF3fdbmdpce/sWn0uA+/tY2mgpY/09KfJtHOvzzH9KM9nVChEMpogd2UAdQD4qTfiF89yb8NrWaKtRT8eSz5S6QcB4pk= 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=DSp2Neo+; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DSp2Neo+" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6e321d26b38so8923517b3.2 for ; Wed, 30 Oct 2024 18:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730339036; x=1730943836; 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=T1shwZLFPVJttCYQn91hD7eEDXA/86MDDB/52gfDhUo=; b=DSp2Neo+xiRs/wFkiWZcJixKMwL1LxRUr6m+pCnnOrUwPbHOSr5CRrFc0bamSuLWMn dEvVxlUFOPiJCEUDq7/8sRD3CQG2lQfhtcMw7rB6e4Ntx18NomM4ZqTaCi3N1ucy7xEG ws1S0h1aXajA+X0dFxRyPuy2Zra6Vb041LYH6aulnMwJpMswEuVuwXQg4HnEz0EFdMnV 5Tf+xt7GUanxF7Baz4MM0LY23+8IVqEriJLEwTgDsEyr0L1Xc7Z7446z7afbsZ7kW+hu rbWMXVxaKRpl7BeQyXenzf0VUhF0IObRyDoH1ug1PprFEQuHOUtkXgeT94LOi6r8WQ55 G7HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730339036; x=1730943836; 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=T1shwZLFPVJttCYQn91hD7eEDXA/86MDDB/52gfDhUo=; b=JMjGv041auoFZgqUpVJ7igCRipjaCv4dLHUwAtxLiS7enkG3zV0NmSlJXJd1c7dWJa 3yEb0SQbtVoPVt9VPsDmmKpg1DWEPtaPt58hOM8NT7+oD1kSQuFmBjbWb0cuOkoDOx80 M1j/DXvGWaNRgiEwBPeaW4P+JC0z+z5vPPaY8FHy3nd0G4a8tyvY8wgV114zhYEJJJr5 bNj24om2+hIO6MwqHULaXSTVNOpI2MtRMWIBAV+Po3BHOw8tA9dSOAl20xcIl0N6UnX8 /1sFxzqq1+f77IKeG4BVh1qbuROFf3HsXU6kylOe3zuY1pMimHf/Wh638NO+xOOz4mL5 4c/g== X-Forwarded-Encrypted: i=1; AJvYcCVioXpufnoeHuVXmucwjzpbCiBwAqVa7HrHnXrx+cFGDeIITSYQkW6J/jLVzNBMDYxlHuezkXwJ7RdoSr8=@vger.kernel.org X-Gm-Message-State: AOJu0YwGvBMz9lrYrXLp9I91no9tpFma4oW2kZBbKQQjJV+mTwxGWv7q M0xOrS7FSRkuQwBxzuwGa06BNGDp1wLc74gYlJKu2fidnYxTTEUyR1a3OvOPxNoamqYQ7SCsIvu bvlNUQQ== X-Google-Smtp-Source: AGHT+IGu87SVB/Gw+solzkrJxkcfsXWl4gq0Heu8eKvryWBGXThh2EwRPmXV+WR3Z9DmPGB5Ok76MC+czjoK X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:ad0f:67e7:f1a6:84c4]) (user=irogers job=sendgmr) by 2002:a05:690c:4c09:b0:6db:b2ed:7625 with SMTP id 00721157ae682-6ea521c92b4mr45007b3.0.1730339035759; Wed, 30 Oct 2024 18:43:55 -0700 (PDT) Date: Wed, 30 Oct 2024 18:42:48 -0700 In-Reply-To: <20241031014252.753588-1-irogers@google.com> Message-Id: <20241031014252.753588-18-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20241031014252.753588-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog Subject: [PATCH v5 17/21] 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 , Josh Poimboeuf , 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 Acked-by: Arnaldo Carvalho de Melo --- 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 ef1b39b5042d..2059f1c4b78d 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.163.g1226f6d8fa-goog