Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2820990pxb; Sat, 25 Sep 2021 19:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzREcJkLzaefjeP6zM5bMOK4kHvriY0D9G/xttp4YH1xwr11xCfWjXRZFa9ybw65eoyfghc X-Received: by 2002:a05:6e02:144c:: with SMTP id p12mr15085808ilo.292.1632623523832; Sat, 25 Sep 2021 19:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632623523; cv=none; d=google.com; s=arc-20160816; b=vJ7+HUcWN04s4GUeUi8RjjH8C/z1ZxwpuCbxE1y5YERyUjw0HAAHbwX9NKpWDJTA6v h0tt/BivuXTx/KH0bl+UoT5E3txOh6i6WBYuawdb573Qeob93cvkYmZig3ihFsOc+FKN QSTU5vpoLuKWwVfcGQUS67bHFOmrr0j434dbVEjUEgDgvJdzkZavZ5ecLTEZE12hIqvH fKXCTvHJG1D4CTLRqcVTriuPhX/GORyA9SaJ89Gt8UeDzQ3CTKdjRcBUhCul5rLQutJt yNqpYej2YFpYTHnZh3b8I7qOShsVtxWDqO9/y1C+b9HJvreTI1lLN0v7dNg5lAc707iI ueeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+UNinGt7TcWnbGmmdAZoGQxTYznnTlcEWz5rOMirJBE=; b=X/KHFBYyQKPRq2xUgK5q6MEgbybyo9Xgd8ilLDsxSrpGC5fwWNFHaKGRJNX6668ygk PbovIZbQdSjvgYCjB5muHO7P1jCBuaojZpSKFjiM0ekqBftzQjOI44J0B9qZvJnGWr9A SaWVnLdaH8DSQv4NUObXELozx19Xd6JttgYgFDwfGbmlk/d/kWQL0r+I4hXkEyX88RSh 76Lp5hsTvqCcNfulo0uLJgmf12eCQdRE7Gmd2YmLVAUokYvWB3wz5bY7qyGAAzaGmw1o UJ5YJJvK0+tto4KEyfZIPK48+ffpSrvGOM6Y8p2cmv8eG9P1dVLQZFFJOB9SqyVjHSy3 /9jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a2FeDfrB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 132si15603176jay.7.2021.09.25.19.31.48; Sat, 25 Sep 2021 19:32:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a2FeDfrB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbhIZCcI (ORCPT + 99 others); Sat, 25 Sep 2021 22:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbhIZCcI (ORCPT ); Sat, 25 Sep 2021 22:32:08 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D3BC061570; Sat, 25 Sep 2021 19:30:32 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id w8so14131853pgf.5; Sat, 25 Sep 2021 19:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+UNinGt7TcWnbGmmdAZoGQxTYznnTlcEWz5rOMirJBE=; b=a2FeDfrB+LPwOlmvdzu7W8SBrTu8IwGREWDzi6kwpUnTYz5eEws9V8U17ELv7viGFj V2QyaPuEQIyaqrPMV4cPIDqnvCumX2yAW+kHCzE5t6sCjlhfPhonFEY7+01wJGyo6V9k 3YsJRHecrjE+z189SN6E6o9m6OCNIzcZYaBCge4glAI8e9F4eCz8IGkhki6mlR2/oZcl T4zWTrRPMz190Mlax9jJZp34Tb7TSA58gYNRNv2KeUVlA4vEYb0kqtl1ELYW6puGs+CI I7uQMDNjIXWtX8VUqbKReMykililuvqFXEVPC3V0rNBf0G/SXMbAAM6eGmaM7at2Z6Ig +3/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+UNinGt7TcWnbGmmdAZoGQxTYznnTlcEWz5rOMirJBE=; b=irG8SlTarCqUYkjLCN2VNffQjbOqPjlK7vJLl06zhFAfyZ2PUgEaWBf0JLPdwzFA0V iMvEOZccVXDAMbVKXRn4YqYINukwv++ivNLl4ATCp4Fv6L0XgA5mrZIvCgtwni+Q/cGH rAxO77wknf66zeCUBGxT0K595hBLKOj6sKmES/qvwP6JPWdAKKnRtrQukPqq8NtdRe3W zS2FULqBV+/7w8Li/EtkFQlMoobMQAkuAz2Vz21x0GzSMNJ01Wlettvl9xKdcmZyPOE/ znRxoRu5AERBt2DOuHTn/z9RFrQEDq+U5j2BiB9g6X300H/bzjyqt8R/br51koggE/Ag jvUg== X-Gm-Message-State: AOAM532bXt5VXzdngFHu+C7gVx5QrYAxXbwvBBoTxVNzYq2MPzigJFti 6WIYGjaAJepkSLy6r8u7GXA= X-Received: by 2002:a65:6a4b:: with SMTP id o11mr10138762pgu.278.1632623432000; Sat, 25 Sep 2021 19:30:32 -0700 (PDT) Received: from titan.. ([2601:644:8300:136:a6bb:6dff:feb6:3500]) by smtp.gmail.com with ESMTPSA id x8sm5542553pjf.43.2021.09.25.19.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 19:30:31 -0700 (PDT) From: Jinshan Xiong To: jolsa@redhat.com Cc: Jinshan Xiong , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tools/lib/perf: make the static libperf complete Date: Sat, 25 Sep 2021 19:30:24 -0700 Message-Id: <20210926023028.2338342-1-jinshan.xiong@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch makes libperf.a complete. Initially it misses the symbols fdarray_* that makes it unusable: $ nm tools/lib/perf/libperf.a | grep fdarray_ U fdarray__add 0000000000002b3e t fdarray__available_entries U fdarray__exit U fdarray__filter U fdarray__grow U fdarray__init U fdarray__poll After this patch is applied: $ nm tools/lib/perf/libperf.a | grep fdarray_ 00000000000063f7 T fdarray__add ...... 00000000000065d4 T fdarray__poll Signed-off-by: "Jinshan Xiong" --- tools/lib/perf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/perf/Makefile b/tools/lib/perf/Makefile index 08fe6e3c4089..840366584fc1 100644 --- a/tools/lib/perf/Makefile +++ b/tools/lib/perf/Makefile @@ -121,8 +121,8 @@ $(LIBAPI)-clean: $(LIBPERF_IN): FORCE $(Q)$(MAKE) $(build)=libperf -$(LIBPERF_A): $(LIBPERF_IN) - $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIBPERF_IN) +$(LIBPERF_A): $(LIBPERF_IN) $(LIBAPI) + $(QUIET_AR)$(RM) $@ && $(LD) -r -o libperf-ar.o $^ && $(AR) rcs $@ libperf-ar.o $(LIBPERF_SO): $(LIBPERF_IN) $(LIBAPI) $(QUIET_LINK)$(CC) --shared -Wl,-soname,libperf.so \ -- 2.30.2