Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4619233ybp; Mon, 14 Oct 2019 07:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxmujhkq5hgT5atshw74oXkjfqK/m/BWKpGt+Vo5fhG7Mz0ADQI/e/RUkladGw7qxyNeYm X-Received: by 2002:a17:906:85c5:: with SMTP id i5mr28656068ejy.222.1571063408559; Mon, 14 Oct 2019 07:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571063408; cv=none; d=google.com; s=arc-20160816; b=XHWxeYzp1Nrc8rD/q1YVedZSZ6GzCeezfsvsgu1L3CfDZ8u3ErsfQRSxNFNInj87m5 izEeG8eD3g4IJxPqK20QRWeRhDUxKNOoulPi4SIyXWKSJrGf0a13r0SXWTANLcYnHbcH UVX9HXfMbqOrW8k/kDDKP4sR3W49IdnL8/tzaCjY8AOM3wJOuS4J8NtMv2CxUccHnhlC NnSoWoqnYoKEzSXiwqvut8LKg5c0vUlZXA9q0Fqz2NhWRd2sfoXO4dO9kNtC3ghFRrez p3oDbgg2yO5zuGCSaskgtFpJ0r0hTRRHHJBLmW3B+dgmeFZY0LHgZqxyIlFQqkJ6LO4T IDtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=3V+PGu2Pyj0zf4ZH2iF3KZ1fNITKR1WxcgLIFZ54C7g=; b=IEjraTlTQT5i0kVk4KuH4mzC6GqkvD6Dw5EKESiF2eh8NcO0uibnhy0xZ+taBVpE52 m/iut+SRjWOD4pKmWER7W3wB43z2vG8M3ROeOvIoblUk5QrqusDbUWKD9IsPGm9LB/B9 wwrWkpJ+zJEXGU0XAoZ6aL89l2MSkI3oxmRsis5xHnOMJZw/Ci5wn2Twlw4yiTUYV8Xz u31937wmRnfkTwsUUVG6IkVA3lvgLdlobkzY/fnMPwVFL7sFBrTMRmVFEHBCLngLXBuf e/EEYL8647T5ZD5yIxQoehBXRr11sOsyGxHC1eSHG6fguJEcysonVmdjPUxfPa21yI4t eAUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=APROephV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j51si12565752ede.301.2019.10.14.07.29.44; Mon, 14 Oct 2019 07:30:08 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=APROephV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732726AbfJNO1Z (ORCPT + 99 others); Mon, 14 Oct 2019 10:27:25 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:46331 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732598AbfJNO1Z (ORCPT ); Mon, 14 Oct 2019 10:27:25 -0400 Received: by mail-qk1-f196.google.com with SMTP id 201so16019411qkd.13; Mon, 14 Oct 2019 07:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3V+PGu2Pyj0zf4ZH2iF3KZ1fNITKR1WxcgLIFZ54C7g=; b=APROephVsfFNzX2RVV5DyBkL9ZJGsxrkxzBGUtyFJ7I8pBb4A8Sh6bJetLf6WyV2AN Eee4AwmioqqgfSgaXepYXZhtPufDugC6Fa85A4h0lPF7uSUibJ6EOwPnSRpTQ0ymL1o5 S3MUd0aFrt4Vjc3NFteCHGzmcyUzce2BQMFhBjNX74sNh6ryu6RJxKjN6V7UKvXnhmM3 yvI20uJs3FXq3VWDq5h5H2SQ2iW933iJoxuPep3vGhJIRf0DcGqw/fDafVBX2zV7C5JQ hWUSRDXLcIQmmgQxjl/Q5mnlY++YLMqZNSLBfzaR01qNnFdgWS8qFXH5PzDiIbcauk2s Uu4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3V+PGu2Pyj0zf4ZH2iF3KZ1fNITKR1WxcgLIFZ54C7g=; b=C53EmAr+yssfYx/Ksh/00FYI3GjpbDr6NsJkLy2pZMBiKMsULxQAbuBHRU0Dqd2fQw uAzuwXaXUJNz7+MSE1VVDdVcMMyqTRYdCRYSf84rxaXNhICf4gHQCzD7iqW1ISf2uZwE Hc/xp1uldmZosdhflGo8rYHttQGWA+dihurDvj2adc68QW6NKTSJ5JtLTN/hXSUIubt5 kxc9Zl8Yai138y775me0WGktDrhsTZgEjD7ChC1S3O56DYAMJ+gn330Q8DBSVbDtTIVT 0qM8VpcX5V43Mlxxrdz97RBaA8ct1dVJmBUE4XN/2y/+NGLO0aQI/1/PhByb5onzxhxb KSmg== X-Gm-Message-State: APjAAAXljaet7oJXnnjmkRbZwlSFJhSIT8JYwi11/sUscRl1CstLrARh EwIjBDMpPNKDuJkgD5u6KcBv13R1 X-Received: by 2002:ae9:e84e:: with SMTP id a75mr30732432qkg.2.1571063242380; Mon, 14 Oct 2019 07:27:22 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id d134sm8102386qkg.133.2019.10.14.07.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 07:27:21 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B39B54DD66; Mon, 14 Oct 2019 11:27:19 -0300 (-03) Date: Mon, 14 Oct 2019 11:27:19 -0300 To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, gor@linux.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH] perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy() Message-ID: <20191014142719.GK19627@kernel.org> References: <20191008093841.59387-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008093841.59387-1-tmricht@linux.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Oct 08, 2019 at 11:38:41AM +0200, Thomas Richter escreveu: > 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: c5d048240e49 ("perf jvmti: Link against tools/lib/string.h to have weak strlcpy()") Thanks, applied. - Arnaldo > Signed-off-by: Thomas Richter > --- > 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 1e148bbdf820..202cadaaf097 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) > -- > 2.21.0 -- - Arnaldo