From nobody Sat Nov 23 17:39:09 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 68A0815854F for ; Tue, 19 Nov 2024 01:18:22 +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=1731979103; cv=none; b=tf0rJeWYBObeK68WwiMPg1DTxhLt2STBKXvMar6Xu9kh4NZstyQ0jRe7malgUjQQJ1ToPzxyE4On8aAA72dnA59UcnzZP+rtqcaOa17qXQPUOhEfRFDdN0him5a5gMswnHzfWsAXNaPnV2nRTB74fhXWBEI9ku1Bwc5KW78618M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731979103; c=relaxed/simple; bh=ccbfQ/FCxM0ajSqCRBtrUPwSJY3+AGZURkp9AUtPPf0=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=tXaA8jdOp5NJOigNJ7eMqganAlPNE7jjL8r+HJ43bFX00yx0DHVTPkbSes6qY/+pp2N6KtNbmZeJV9SOKjaOJDVegawr1LcRWa0MhDQw3sE7eWAzAlO4k+uWshW3063cQWKdBHSe8GGetLMM+MMv02wP2JiFFyVj1A743TAkfbE= 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=HE7JfFF6; 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="HE7JfFF6" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6ea8794f354so35948077b3.2 for ; Mon, 18 Nov 2024 17:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1731979101; x=1732583901; darn=vger.kernel.org; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=frFU6vDMiuKwKS8oNBs9ivnCPNnXTA0sYwftgRN+B6Y=; b=HE7JfFF6eNF6eOmOwIZ6dAB4bQ6JSc5dKLDXox9CNchlsr3dzNGIUSfyXD3Wrs4/KY ZvcE7HY05DMPYMRjG9OzB8VVIXoecp/5mlzaV4pgu0ooeDJGwTvl81GKBz+9X2rEFRh9 QieFT8cbq7cRU7/b57hvwAgcr0JuiqLQWwgfYLY5bk4xa/UJwILuXl7pezXa0qqv1zsL LFONE4ljye9Wsilr9iZV9Wv1pk657f4GA0rHKnwTUyzIFVk7eHDcLkqWsDgtf/0OCtTP bdhP2cMn2ED/Z45PGZjIf6wujAuXaWR1lP8BccFc3V8b+WwIqmMTyVIF3wZFLqsvzjAf QL+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731979101; x=1732583901; h=cc: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=frFU6vDMiuKwKS8oNBs9ivnCPNnXTA0sYwftgRN+B6Y=; b=bcrwkznYZ3KxcfJJ1RmFErl7K+GLTKP2ywBDZaXWMsg/1BAOMl813LMWtMiwZQqgDn ciFI8aRkO06nbHKYyHfast74tJO5Hdb+JC7Nv+bb7xbw+QYCUAnC5/pR3ohl2x8XUWIo /7ihrumFLmNpBsRM+xeB/mQHWVgZi+VUhXBTiUgLCsivDi49EvZOQGYeKQ5Gnhi/saZr K9pdmRvGVMRxJ117H19yrArRZ4Y/+mCexXO8os+XMsnaqpWG+1FKRcG99qxPg94el7Kp 3WsZwJ5sxltuOTP0eD5XFtmLP9dU1KZL392Hgy871YAXw3p1RIDRrwxcT7O2t94HJx5h GjKg== X-Forwarded-Encrypted: i=1; AJvYcCX8FYJhVsrN0DKj3CCCaNpgRbBZTOOCD3ncgYZ8+pZhP3YfO5BTuLqkHvUsVMsYWXOgXRMcLaG/BVm1JAw=@vger.kernel.org X-Gm-Message-State: AOJu0YyB/GCERQUw0hTFElzXRmCUQsxoSQaxATUcYf1ZtjAhqdpbL6BG ZIwVTYjvrx61JobdohYiI9ihpFIKcsncFO+nrZlrBHOyXRZOMQUr9CoKlkp3EaiZvkShEwpfDj8 Z0m7hiQ== X-Google-Smtp-Source: AGHT+IEH6bm8HluA7jd0r6+9Cueqt8y2KXSiPCe2m7BpnNOtq6aGwuTd2RlX5z6Bdg0V8iHN7DjhyAg0Oq7b X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:22a4:ded5:5c37:fcc7]) (user=irogers job=sendgmr) by 2002:a05:690c:296:b0:6ee:aedd:bfaf with SMTP id 00721157ae682-6eeaeddbfe8mr7587b3.2.1731979101174; Mon, 18 Nov 2024 17:18:21 -0800 (PST) Date: Mon, 18 Nov 2024 17:16:40 -0800 In-Reply-To: <20241119011644.971342-1-irogers@google.com> Message-Id: <20241119011644.971342-19-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20241119011644.971342-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog Subject: [PATCH v7 18/22] 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 Cc: Arnaldo Carvalho de Melo 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 cbcb698cea38..adbc7ab325c7 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.338.g60cca15819-goog