Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4919667ybg; Mon, 21 Oct 2019 17:05:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+FjWz53GT+W9130sjHxhZ/TiYxjWp+S6bQoeFs8gHO72unUEvhJ8lJKmPtuHl/OpQvN0K X-Received: by 2002:a05:6402:b16:: with SMTP id bm22mr28198403edb.160.1571702729448; Mon, 21 Oct 2019 17:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571702729; cv=none; d=google.com; s=arc-20160816; b=XQ3ZxVarvxfy10nExCI2osQill4gCki1ko9e0/wSQF0icaHIgf5zSS1bjmAZ+HTUvO IJZQkN49mzFXK3VJ65vcCa6hTOX6FuAj0M7tz0Pkw0A+1xHvyD/PCHuNb+4zlQ48qL51 DYZ9BbafRW5HZgsiB3ktrwQFYikes5603b15aBMiYlD9ByjP2mG17ch5t4ErvYcTCOdd a1V4vqr/lQdHMGDvnmLrhnbPXnySWkZ+Y8R4qN4jzzXoCeT+bDeXgfv3Ts/B8uflcKdp J+zZmG3dYc1HllYExOWbstoLJ1SE0/wJp8fX+noZpBJYc/Sg5E/Z1CggApWuusiG/rs4 NTlQ== 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=FsFNv0YWZVsqqEkYa1R9Cy0aP9efnb357dpOHmrQf/k=; b=Iu8ipF9l4fCQMM+3gUKkUeRkmOVRTrGmjJ1ditVtBG75Ym9UI3pMXo6uXCYJaiav1o 4/z0Uku+vbxzNro4V2thrdgctrybOxf1yP/btusj2qDfGHxY4kKkJUvpLNQI2aDFJR6p 1K0DeW8TexY681qFXUu0QoymXFWVy5/cKfBFyDAOW3uqUuHeNdOwP7kvWFq2Txm8TA1u Po/KyPGlVaXDR8qLSydcWG6bK0tcGoqlv8dagqq92AhVGjZr4slIIFeD/2s7wWx4Uzqh cme12bVu38xn9ZaNtKDtqGrsG+1V4ehrlJSJgBiXCr4IgoqWXt3gqPjA9if993/O3dje Ud2A== 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 l3si10991655edc.109.2019.10.21.17.05.05; Mon, 21 Oct 2019 17:05:29 -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 S2387514AbfJVAEX (ORCPT + 99 others); Mon, 21 Oct 2019 20:04:23 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38895 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387502AbfJVAEV (ORCPT ); Mon, 21 Oct 2019 20:04:21 -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 1iMgxL-0004CF-Jc; Tue, 22 Oct 2019 01:19:19 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id A980C1C04D4; Tue, 22 Oct 2019 01:19:14 +0200 (CEST) Date: Mon, 21 Oct 2019 23:19:14 -0000 From: "tip-bot2 for Thomas Richter" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] 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: <157169995429.29376.9039952420834706648.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/core branch of tip: Commit-ID: 5fb470bc29d8e2ff0e1cab4fbb580a06da11ab28 Gitweb: https://git.kernel.org/tip/5fb470bc29d8e2ff0e1cab4fbb580a06da11ab28 Author: Thomas Richter AuthorDate: Tue, 08 Oct 2019 11:38:41 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 15 Oct 2019 08:39:42 -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)