Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3866249ybg; Sun, 20 Oct 2019 23:29:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnEpix2zhs5zPLXPQ46P0q9hJB1I8QanG8iLyjw6ULonZ/zwi6+ESNndMGfc5saX5wKPuw X-Received: by 2002:a17:906:181b:: with SMTP id v27mr21063507eje.117.1571639368203; Sun, 20 Oct 2019 23:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571639368; cv=none; d=google.com; s=arc-20160816; b=KJ47YGctA2KxAoQf/MqEPUZ/xlhZ2b7aj9N6VNChbQL6uaxFnUISkPtL3bT0j6L9Xa 0nEdnDz9Ms/53eaDYSRd40xCJZoXg1mrkCnurpEL8QkdTACRLnEHg/pNbxR12r4WWLZd v3T7pHLzNWkX6hRLjX7zQPcmucTnecgqlniOLjDP1AcVAE4sR5bk4U3+1t7g8aKewrqL kNv2ZuGg9Xr9Gv2xWF4YHdAqCPgNRK2BMGg8A/yE9iyrUpfZTfsbi9YqvG35aldaaGVt bO4vAkEdSSYkCLKG1UBq5sa6Bxc+pnghSuEe0ciZNFJqVqJ+sZJ29cb1bfwxRrZk7Xr/ T19A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=SNqdLunsJEfPaY+0gv1cO4ptz2BU+oHSa/RgIyxG12w=; b=QKk36GM63tUMdqsTOI1z7aUbK2Oial6rxl+vVibUIyX9e3lvFvBinWk4PrKiG0yTJe WdFcR9lg3dj/q5bjSXIlssMH1O/FJolTUyiPz9N4QPAbFfxzUpdkzolMlIIn5sKiVCDk MkZZyaHcQpos6S12Nvg8I4zi0DcGs69M5gk5wOuPl3+HtqOFFh5pdx1U9bp7ZeFPMvaR XEvlq2o7WYEy2Yt3OL1KfovQ8xGq0EWsBDxaRu2eg7CYSkrXWxMEo35U4H+k6CgfRw0f Rkfxg0a+whiGiERQjJsxbs6GAPmNdDVFSa3qDg0vTGtpDapVX5omi2W8+wWzjU59TdpJ EBFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jt18si3547317ejb.19.2019.10.20.23.29.04; Sun, 20 Oct 2019 23:29:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727168AbfJUG0z (ORCPT + 99 others); Mon, 21 Oct 2019 02:26:55 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33210 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbfJUG0w (ORCPT ); Mon, 21 Oct 2019 02:26:52 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMR9U-00029E-83; Mon, 21 Oct 2019 08:26:48 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id A621E1C0494; Mon, 21 Oct 2019 08:26:44 +0200 (CEST) Date: Mon, 21 Oct 2019 06:26:44 -0000 From: "tip-bot2 for Thomas Richter" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy() Cc: Thomas Richter , Heiko Carstens , Vasily Gorbik , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191008093841.59387-1-tmricht@linux.ibm.com> References: <20191008093841.59387-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Message-ID: <157163920447.29376.9814329868243162602.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 6a6fac11b11299aa5bd8532ea863fc2f652af2b6 Gitweb: https://git.kernel.org/tip/6a6fac11b11299aa5bd8532ea863fc2f652af2b6 Author: Thomas Richter AuthorDate: Tue, 08 Oct 2019 11:38:41 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 15 Oct 2019 11:47:38 -03:00 perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy() The build of file libperf-jvmti.so succeeds but the resulting object fails to load: # ~/linux/tools/perf/perf record -k mono -- java \ -XX:+PreserveFramePointer \ -agentpath:/root/linux/tools/perf/libperf-jvmti.so \ hog 100000 123450 Error occurred during initialization of VM Could not find agent library /root/linux/tools/perf/libperf-jvmti.so in absolute path, with error: /root/linux/tools/perf/libperf-jvmti.so: undefined symbol: _ctype Add the missing _ctype symbol into the build script. Fixes: 79743bc927f6 ("perf jvmti: Link against tools/lib/string.o to have weak strlcpy()") Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Vasily Gorbik Link: http://lore.kernel.org/lkml/20191008093841.59387-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/jvmti/Build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/jvmti/Build b/tools/perf/jvmti/Build index 1e148bb..202cada 100644 --- a/tools/perf/jvmti/Build +++ b/tools/perf/jvmti/Build @@ -2,7 +2,7 @@ jvmti-y += libjvmti.o jvmti-y += jvmti_agent.o # For strlcpy -jvmti-y += libstring.o +jvmti-y += libstring.o libctype.o CFLAGS_jvmti = -fPIC -DPIC -I$(JDIR)/include -I$(JDIR)/include/linux CFLAGS_REMOVE_jvmti = -Wmissing-declarations @@ -15,3 +15,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PE $(OUTPUT)jvmti/libstring.o: ../lib/string.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) + +$(OUTPUT)jvmti/libctype.o: ../lib/ctype.c FORCE + $(call rule_mkdir) + $(call if_changed_dep,cc_o_c)