Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp600226imm; Mon, 9 Jul 2018 07:26:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdnoT2otcccqwT7QWNDGdCcJR0gRm7+hBIPQH0yAgfcUpg6j9hgZtBA2l2Rr1E8u5XMd9ox X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr21220156pli.3.1531146395131; Mon, 09 Jul 2018 07:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531146395; cv=none; d=google.com; s=arc-20160816; b=wbBgdMHfnMMkv0ufOwld8km1CQHyBYXeJFtH7H2vn3BpUoh0bpSX3QRdWeZKKAPlBU wHCJzQfa/ouo8Ux3JtcN2FdH81k0jrns9NloFfhSnbssr8u/yLbwcYMpyu9qiVdKw2PY XazfmjMLH1oFw7WzWTHjuIaOY34LT/rVSCId4/nGz67VfeHy+KeeW0FBOZz8zs4jbkqI 4ssrJ9gko9nTIhs+hzi4tadDx2iKyUDQBFe7R672c/HIW1d9YZ4y2JIvfAzustjRppr+ aC/cICNZFOGeeNSBPzmnWN2Cbu0IKT4Xph0FVWhnTnIKGz85bzPI26rQ2YWi3W9NW3QK CNOA== 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:arc-authentication-results; bh=/TGBisgFJ0OAAVysVpcQo+86wDDtds8VsKcjZy7h7kk=; b=wrw7Av+Ro3IQYgkcEP/Avt0rsKX0xYT5UH8/dET8cusuQYZSKJwP1CWUoLs1eewl+K U0RM2Y+uGHLEquXm6tZyVKxrKJMnOATf3hMgf5UhfqLMnnSFKtfx1VbFVBRCCGsyhll3 OO9eHQpZzz98rKutmHe6Pegsp13c/A4VKLnoQDitSONjqOfhyLivAlv3KE0wb0Dy56am e6ZU9NNQYa94D+8HcP34B/yM6/xKQKJNZpoVORqpSGo0LyilwOL/xnZYZ4mDLVE4iUx6 JeJjxvSF0AZc2lfGr2kjJIG/UaZUTvstc934FIpJONciVAP84DTjRGOIM71QWJTVM97D w0ng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r87-v6si15506930pfj.331.2018.07.09.07.26.20; Mon, 09 Jul 2018 07:26:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbeGIOZM (ORCPT + 99 others); Mon, 9 Jul 2018 10:25:12 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752112AbeGIOZL (ORCPT ); Mon, 9 Jul 2018 10:25:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AE46C40201A2; Mon, 9 Jul 2018 14:25:10 +0000 (UTC) Received: from krava (ovpn-204-174.brq.redhat.com [10.40.204.174]) by smtp.corp.redhat.com (Postfix) with SMTP id 7A37D2026D6B; Mon, 9 Jul 2018 14:25:08 +0000 (UTC) Date: Mon, 9 Jul 2018 16:25:07 +0200 From: Jiri Olsa To: Sandipan Das , Milian Wolff Cc: acme@kernel.org, linux-kernel@vger.kernel.org, namhyung@kernel.org, ravi.bangoria@linux.ibm.com, naveen.n.rao@linux.vnet.ibm.com Subject: Re: [PATCH] perf script: Show correct offsets for DWARF-based unwinding Message-ID: <20180709142507.GA7917@krava> References: <20180703120555.32971-1-sandipan@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703120555.32971-1-sandipan@linux.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 09 Jul 2018 14:25:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 09 Jul 2018 14:25:10 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 05:35:55PM +0530, Sandipan Das wrote: SNIP > > After: > > # perf report --stdio --no-children -s sym,srcline -g address > > # Samples: 1 of event 'probe_libc:inet_pton' > # Event count (approx.): 1 > # > # Overhead Symbol Source:Line > # ........ .................... ........... > # > 100.00% [.] __GI___inet_pton inet_pton.c > | > ---gaih_inet.constprop.7 getaddrinfo.c:537 > getaddrinfo getaddrinfo.c:2304 > main ping.c:519 > generic_start_main.isra.0 libc-start.c:308 > __libc_start_main libc-start.c:102 > ... > > # perf script -F comm,ip,sym,symoff,srcline,dso > > ping > 7fffb38aaf28 __GI___inet_pton+0x8 (/usr/lib64/libc-2.26.so) > inet_pton.c:68 > 7fffb385fa53 gaih_inet.constprop.7+0xf43 (/usr/lib64/libc-2.26.so) > getaddrinfo.c:537 > 7fffb38605b3 getaddrinfo+0x163 (/usr/lib64/libc-2.26.so) > getaddrinfo.c:2304 > 130782d6f main+0x3df (/usr/bin/ping) > ping.c:519 > 7fffb377369f generic_start_main.isra.0+0x13f (/usr/lib64/libc-2.26.so) > libc-start.c:308 > 7fffb3773897 __libc_start_main+0xb7 (/usr/lib64/libc-2.26.so) > libc-start.c:102 > > Fixes: 67540759151a ("perf unwind: Use addr_location::addr instead of ip for entries") > Signed-off-by: Sandipan Das looks good to me, Milian? Acked-by: Jiri Olsa thanks, jirka