Received: by 10.223.164.202 with SMTP id h10csp589860wrb; Tue, 14 Nov 2017 06:33:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMaC9oi6d/icBNKtvVUgYKdhkSOG8IoYt7UwZvHAt/y7jDv+sulGokN6z6qipLEpx3RuJk1W X-Received: by 10.84.248.148 with SMTP id q20mr221522pll.110.1510670033259; Tue, 14 Nov 2017 06:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510670033; cv=none; d=google.com; s=arc-20160816; b=hRoKLzUAZ5jrRatiWSFNm6pNHEngGvb10eRWmfGEz2UotVAxbcezJHn1gjDI33K6Q/ P/dQAaH9rnwMmFw70iM99L59EVx1QFzh2Q1p2G47cjGaqdhLzL+6/zCsD2+Ds5NsJnYl u+nlj8fmlReMVAJmNd7f3Wj5HpcMvIVg166fU/hRpviha7aZouGXSYa9DktqFiFW/dq/ k4WVdlebNn5AnyYigh7x6zsjs1KRcDVcv9DWlfI8E1xEDQJG7SyrhjOfsxmg+ukdK6sp TmUklIWKoU+DH06eVeq6VsX3Zj3WyRGo9whviwPDfELh5Xqa4ZknjtQ6ykUs5P/X2Dld vzyg== 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:from:date:dmarc-filter:arc-authentication-results; bh=gGJtXdttO6EtVIKb7o02tjSUdctmAv40/wAVVrlkFHo=; b=msR5BGYuP3N/nbT9Q0LR1JFYtQ0N0Mo46k7S7bk+Mcfb4e3/7WsFmoUrRPaUmXxeIN rPRlFCx2oy5qPjcW8CbRAnVKJ0gxyqywklObMqLrq9U8LbnR3VgIO4M8IOTo3csuK0bf tArEo3UlzENd46NV4UOtXj4sMP3UcBIr0i0A97i5++/7bL9MHUfUmOvfu6mPCkcPWo/K F8WN7NraBasZZyxmAF5bL6QdCLAhtI5E3FxdQEKvMltsy/uAo8Xx3u1R1xIC0AFC+nEv nYSB6QsBj/jQVxattvkNlSmXOij0tm8gJGm5IvFyai6VbLDvbWsuxbhlVYfGneBgiBDf C+QA== 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 u1si7338326plk.143.2017.11.14.06.33.40; Tue, 14 Nov 2017 06:33:53 -0800 (PST) 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 S1753971AbdKNNre (ORCPT + 88 others); Tue, 14 Nov 2017 08:47:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:39454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbdKNNr1 (ORCPT ); Tue, 14 Nov 2017 08:47:27 -0500 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B46E218B1; Tue, 14 Nov 2017 13:47:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B46E218B1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id B4ED4140261; Tue, 14 Nov 2017 10:47:24 -0300 (-03) Date: Tue, 14 Nov 2017 10:47:24 -0300 From: Arnaldo Carvalho de Melo To: Thomas Richter Cc: linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, Linux Kernel Mailing List Subject: Re: [PATCH] perf test: fix test case probe libc's inet_pton on s390x Message-ID: <20171114134724.GP8836@kernel.org> References: <20171114071847.2381-1-tmricht@linux.vnet.ibm.com> <20171114071847.2381-2-tmricht@linux.vnet.ibm.com> <20171114132625.GM8836@kernel.org> <20171114133409.GN8836@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171114133409.GN8836@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Nov 14, 2017 at 10:34:09AM -0300, Arnaldo Carvalho de Melo escreveu: > > Different name, same contents, need to look at the inode... ;-\ > > Nah, lets ask the kernel how is it that it sees libc, please test the > following, works for me: BTW, this is what I sticked on that cset: Committer changes: We can't really use ldd for libc, as in some systems, such as x86_64, it has hardlinks and then ldd sees one and the kernel the other, so grep for libc in /proc/self/maps to get the one we'll receive from PERF_RECORD_MMAP. - Arnaldo > diff --git a/tools/perf/tests/shell/trace+probe_libc_inet_pton.sh b/tools/perf/tests/shell/trace+probe_libc_inet_pton.sh > index 7a84d73324e3..8b3da21a08f1 100755 > --- a/tools/perf/tests/shell/trace+probe_libc_inet_pton.sh > +++ b/tools/perf/tests/shell/trace+probe_libc_inet_pton.sh > @@ -10,8 +10,8 @@ > > . $(dirname $0)/lib/probe.sh > > -ld=$(realpath /lib64/ld*.so.* | uniq) > -libc=$(echo $ld | sed 's/ld/libc/g') > +libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') > +nm -g $libc 2>/dev/null | fgrep -q inet_pton || exit 254 > > trace_libc_inet_pton_backtrace() { > idx=0 > @@ -37,6 +37,9 @@ trace_libc_inet_pton_backtrace() { > done > } > > +# Check for IPv6 interface existence > +ip a sh lo | fgrep -q inet6 || exit 2 > + > skip_if_no_perf_probe && \ > perf probe -q $libc inet_pton && \ > trace_libc_inet_pton_backtrace From 1584052293098348332@xxx Tue Nov 14 14:33:07 +0000 2017 X-GM-THRID: 1584050275476356436 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread