From nobody Tue Nov 26 04:37:32 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 85F5C1C9B74 for ; Tue, 22 Oct 2024 17:31:25 +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=1729618287; cv=none; b=saQMrbQFLmw+gIWi60sVlzuFOSHEhMTQgn19vNf9gKXEQ2uVxBUELjnua6ftBddwnkHbAUuDv4effLHlyR3DW2+7AL4CXbdJjeuAQVpcH2oQg74w9JifALr0ER5JepCW1MttpuFL/V+d9wGOwnmqFYas3SxXC1R9pxK9QJKK54Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729618287; c=relaxed/simple; bh=wP5xmkvAAF0cc6yxByZSQ91mHbkEonU1IDc+KMo9VIA=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=eY3sDi1cuD934pmVhh1Q9kW5Sn3LxgqHWyfZd1yv5Ug/OLU3puJ4lqztMLjl8hEJLOcCJi4osE05frfmeVmNuVHcpu21j5/A1d3umwV7kNgannTdeJYw8K1Umqkl3q4pYWPYWYMAAIzMqpmg3Rg/8biavpB/3JPjUIuP/7ga7ss= 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=S+cnXiMv; 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="S+cnXiMv" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6e7e0093018so15527467b3.3 for ; Tue, 22 Oct 2024 10:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729618284; x=1730223084; 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=q2lIQmRoJAPcxBHPZc9OawDV+vOklIH/TcpOqXgiCgo=; b=S+cnXiMvonGNZ2dW1NWAbfZPGyVUqLS+LJwN07yliAZ15SHPfGcAHzbGM+db1f4VQN YTDpheEsSNv+J+xtrR3W352yXYokN686ocW0R1900sy0h8SGOx60X4uqx7fWKFibbZeP q0BFMY4QrNRJPYwtciyoTLplR9t8ZC/38ng1cwsL0vGPpaNXEStsUneiZ+JHZY6cj8s5 RiHrqugy/5E9ytrxWxl5ie9bU27Wdqw1jzWHKUzx7ZVbEXfnYTNhljpNVphEfTl2ll7q 3Iof+oOI/4phkaUHenS9z+/bZPt1uk2Xtv38qZJ9bQLt1cpLXYbuhYsj13k4o9hnTIls aYBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729618284; x=1730223084; 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=q2lIQmRoJAPcxBHPZc9OawDV+vOklIH/TcpOqXgiCgo=; b=qI/V1cDELqXnEZ9EVtgpjNTWAWjM3xoPlZP1yVNk4QyYntT3ynmKWP8UqfvifRQ9Ja x7h7+P+2uRc9HCeuW+7tu9JH5H9DOXWjLuxGI1pf95SxisQRhqUVbhhpdCX7UQbSKQmk YnvYlfY4ep/BUdGxvugy6GNLzpeU53iF23NnlK79bg7YjtX7vTRTrCfB0ci8qxPkHy94 oOJh3B228niIkfnJr+o7f/OfV7Hp1hT5ef3TIuiB7tuaj269MZGQWv6QfnLOut+gSFaC PdSObTGAo/9nAYaiGWy5dU/d0QhOr8REl0sElk6fQ1AuYtX6jZalrkRQLVa83cBg/oR6 KnoQ== X-Forwarded-Encrypted: i=1; AJvYcCXB3/FERVPuEDzVrbaxtcBN+3y9GimVT26gHhnHsdI4DrtiORJJnEsgrIyJeXJlA3hPkxsTQqxcccCCm9Q=@vger.kernel.org X-Gm-Message-State: AOJu0YwMiKHTSIDaGy4KPnPgNR/vRsJaHUjUGGxb/2NwPgMiSbULvx+7 bdZS/TyzrtwJ5/K41OZS9iD/vTgKedF97e2XBu6ZGG+vG3Fs+xjymVZpAAKi2SW+XmtiL/wmUqY w6iUGtw== X-Google-Smtp-Source: AGHT+IGzmwekM0FkphwepMJvsOqlkRGtCfnNkqk3W7pCbVKQLK6M3uitUSkN44V5hE7kzuyq8IwCiMDHpmhT X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:57ba:88e0:aaf6:282]) (user=irogers job=sendgmr) by 2002:a05:690c:4783:b0:6db:c3b8:c4ce with SMTP id 00721157ae682-6e5bfd8b0edmr535057b3.7.1729618284520; Tue, 22 Oct 2024 10:31:24 -0700 (PDT) Date: Tue, 22 Oct 2024 10:30:13 -0700 In-Reply-To: <20241022173015.437550-1-irogers@google.com> Message-Id: <20241022173015.437550-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: <20241022173015.437550-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog Subject: [PATCH v3 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.163.g1226f6d8fa-goog