Received: by 10.192.165.148 with SMTP id m20csp3477020imm; Mon, 23 Apr 2018 07:14:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48EtCH4DS0DG1ziO0xUyze/YfnZzOdKWwUGaneb8J1FiIqtbwjhK1YrmikVAaYMcl4bdGdL X-Received: by 10.98.214.5 with SMTP id r5mr12291678pfg.8.1524492858914; Mon, 23 Apr 2018 07:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524492858; cv=none; d=google.com; s=arc-20160816; b=mvR63fyho2hPAj4Tek153ebHcHee4vwTIQfOHGcNfMuVdY5exGQqRwqAu1zGbwBxES kX9McqH+oRnw3TGzUIbS9fGCHV9SJWhXXCuw9XAVyhZtMjJ2p9xCiDS6IcPervo+H9HN JfGb4XMEhNuHFoFAxW2I0Qs0r9Xdu+5tr+Kfkv2fMgKunxtHet2IN6oeBvJeYJPIvLsw fgFWJUReytqv4/QcJ5+JjQCqwKhhoNuct5HQufE4+eRIokDWrsWTv9ziJsHdOM+2QooL YeDvlgWte+/sE24db9DTpWZulRee7qXuln/7qrFV3ARsnSFeFApI5N2UY0yibH8+awW6 s3SA== 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=6b5ORmsSoqzSEPAny7+62zQGIij7qi7ahR5teOtINdw=; b=JBrBBrYZULSG9mtv/6UsqHftRZvTDrsR00ajrsN1SrbndlppghorpU4FgevwO6nJvB cMziLnviykChjQixxePNwNgvIlHkBi7DjLeeH5+aiIaCje2S3yXr1+MeHbZGyDeOqZ6N bC0yDnoudkHGbocV5kQWswQoNdmFNNVUTFjbBoxlAO3nHc03/FoGswy+MmZjFPprwadJ Mov9X3ewnzOkrkt2E3gLZmT+kPy0wRz/C9l/vFXK7EwEExfKzKG1Z7Joii1ATvwFM8ge qnGbTZyI7g2byPsZeJ5otRaOnwXZqWto3mVH9SosfGC1Km7aanBkkaqBVvHDyzJDfX3p 1VAg== 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 v14si9912288pgq.266.2018.04.23.07.14.04; Mon, 23 Apr 2018 07:14:18 -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 S1755676AbeDWOMO (ORCPT + 99 others); Mon, 23 Apr 2018 10:12:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:36840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755579AbeDWOMH (ORCPT ); Mon, 23 Apr 2018 10:12:07 -0400 Received: from jouet.infradead.org (unknown [177.79.38.152]) (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 CC6FC217D2; Mon, 23 Apr 2018 14:12:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC6FC217D2 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 296CF1457B2; Mon, 23 Apr 2018 11:12:04 -0300 (-03) Date: Mon, 23 Apr 2018 11:12:04 -0300 From: Arnaldo Carvalho de Melo To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH v2] perf test: Adapt test case record+probe_libc_inet_pton.sh for s390 Message-ID: <20180423141204.GA30324@kernel.org> References: <20180423082428.7930-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423082428.7930-1-tmricht@linux.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Apr 23, 2018 at 10:24:28AM +0200, Thomas Richter escreveu: > perf test case 58 (record+probe_libc_inet_pton.sh) > executed on s390x using kernel 4.16.0rc3 > displays this result: > # ./perf trace --no-syscalls > -e probe_libc:inet_pton/call-graph=dwarf/ ping -6 -c 1 ::1 > probe_libc:inet_pton: (3ffa0240448) > __GI___inet_pton (/usr/lib64/libc-2.26.so) > gaih_inet (inlined) > __GI_getaddrinfo (inlined) > main (/usr/bin/ping) > __libc_start_main (/usr/lib64/libc-2.26.so) > _start (/usr/bin/ping) > > After I installed kernel 4.16.0 the same tests uses > commands > # perf record -e probe_libc:inet_pton/call-graph=dwarf/ > -o /tmp/perf.data.abc ping -6 -c 1 ::1 > # perf script -i /tmp/perf.data.abc > and displays: > ping 39048 [006] 84230.381198: probe_libc:inet_pton: (3ffa0240448) > 140448 __GI___inet_pton (/usr/lib64/libc-2.26.so) > fbde1 gaih_inet (inlined) > fe2b9 __GI_getaddrinfo (inlined) > 398d main (/usr/bin/ping) > > Nothing else changed including glibc elfutils and other libraries > picked up by the build. > The entries for __libc_start_main and _start are missing. > > I bisected missing __libc_start_main and _start to commit > 3d20c6246690219881786de10d2dda93f616d0ac > ("perf unwind: Unwind with libdw doesn't take symfs into account") > > When I undo this commit I get this call stack on s390: > [root@s35lp76 perf]# ./perf script -i /tmp/perf.data.abc > ping 39048 [006] 84230.381198: probe_libc:inet_pton: (3ffa0240448) > 140448 __GI___inet_pton (/usr/lib64/libc-2.26.so) > fbde1 gaih_inet (inlined) > fe2b9 __GI_getaddrinfo (inlined) > 398d main (/usr/bin/ping) > 22fbd __libc_start_main (/usr/lib64/libc-2.26.so) > 457b _start (/usr/bin/ping) > > Looks like dwarf functions dwfl_xxx create different call back > stack trace when using file > /usr/lib/debug/usr/bin/ping-20161105-7.fc27.s390x.debug instead of > file /usr/bin/ping. > > Fix this test case on s390 and do not expect any call back stack > entry after the main() function. Also be more robust and accept a > leading __GI_ prefix in front of getaddrinfo. > > On x86 this test case shows the same call stack using > both kernel versions 4.16.0rc3 and 4.16.0 and also > stops at main: Thanks, applied.