Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1102209imm; Wed, 25 Jul 2018 11:31:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe1Zbkt+uZXPjCvQp2vILWTiFBTMoHzrdXprk4cLgsORbX3nMknvLKqXitTLxi9Dkiwu4J+ X-Received: by 2002:a63:5b0d:: with SMTP id p13-v6mr21829354pgb.202.1532543490680; Wed, 25 Jul 2018 11:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532543490; cv=none; d=google.com; s=arc-20160816; b=VrvvhwYv/AF8xQgNKnko7N59gfLr1PFBqju/Gta7ii5QdvBuD6GLWTBv+0dBd+gY6j p4bv90T/JRLBNfuvl/JIXmobBy01GoTPE+4jXqc4Dr0ucNyNFQYRC2jmXLgIJC3a9D+1 7E2+Sz2+56FtuVYdwAajOhXpXGwdErMwmir/an58BBnfgTMSjwq7hLlBJS9L4S4YSl3Q xMGlYt/IfL26yeHe8+y7K6nfMIPBdhttgHlZrn1Rz2KVuUNFFXq9BTSa9aWHJGQxCYYL oK4T7oMPfz2LcRd1nYo/66K0BkJu9n9FGur05n32K7vRrM3xZ4mOZEAt5x3B0T70MuEp fHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :organization:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Y8O72nL386ShfejRqpyXSgnttzK7GmWbIQH+Rk+e6sA=; b=Wm+MJ+O8G8Ys5IJEHVyi3X2H69Ua58Bam4/GopNkD5iuxYSpp9hkzifOa5zCc6OXjs wfQwfDKsxEvi6YEdaQBviGGDRSjduuzQFyNc6UYm3Xvz5y5YDv4O8FZ1GpjlO8TCu0Cs 7a/fpgw5mmDR64f4UNKt8flc2G02SVaXH/ntF4LzQYBap+lY8APGUHpGU+NmHC5etjCV VKWCAPUaLceF2ZTlHk9n2nTCtNLjfnT2CZt2/Ff9/mRfVe7GzXpCIFAMeVTG6sNowjP5 C9QMFGYIjbXTTv6Q1pUvFMU44FI3mwoAK0givPPZBHxHsgbssOoqaP347Hpsq1e5VjDb VKOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kdab.com header.s=dkim header.b=uSoAwf75; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kdab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j124-v6si14541916pfg.157.2018.07.25.11.31.14; Wed, 25 Jul 2018 11:31:30 -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=@kdab.com header.s=dkim header.b=uSoAwf75; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kdab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730498AbeGYTnO (ORCPT + 99 others); Wed, 25 Jul 2018 15:43:14 -0400 Received: from mail.kdab.com ([176.9.126.58]:22867 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729939AbeGYTnO (ORCPT ); Wed, 25 Jul 2018 15:43:14 -0400 X-Greylist: delayed 415 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Jul 2018 15:43:12 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kdab.com; h= content-type:content-type:mime-version:references:in-reply-to :organization:message-id:date:date:subject:subject:from:from; s= dkim; t=1532543005; x=1533407006; bh=Y8O72nL386ShfejRqpyXSgnttzK 7GmWbIQH+Rk+e6sA=; b=uSoAwf75auc8oCJPFxj0rA7aGKfgAjf0asuWs5/wQbG +iSClLg4beYwmqawGPDWM2LHGqu/TH0Ys0PZMizvwM6Ivepsec1KkUo0zv0PgfAv pKa1bwW33h4a0WRc1cdti1tY1RSuS7KDnmrgsYYwG8J/sXf7idAjegCJN5oovGGw = X-Virus-Scanned: amavisd-new at kdab.com From: Milian Wolff To: Jiri Olsa Cc: Sandipan Das , 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 Date: Wed, 25 Jul 2018 20:23:18 +0200 Message-ID: <1962880.1xTuyOsKT9@agathebauer> Organization: KDAB In-Reply-To: <20180709142507.GA7917@krava> References: <20180703120555.32971-1-sandipan@linux.ibm.com> <20180709142507.GA7917@krava> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4551067.DBdu5eTDgD"; micalg="sha256"; protocol="application/pkcs7-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart4551067.DBdu5eTDgD Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Montag, 9. Juli 2018 16:25:07 CEST Jiri Olsa wrote: > 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 Sorry for the delay, I was on vacation. The above looks somewhat strange to me - why is there no `(inlined)` suffix visible anymore? Also, I can't test this patch locally, since - even without this patch - inline frame resolution with perf seems to be completely broken for me. It doesn't seem to be a perf regression - going back in time doesn't resole this - but rather of its dependencies or even of the DWARF emitted by the compilers I have available to test... Cheers -- Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer KDAB (Deutschland) GmbH, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt, C++ and OpenGL Experts --nextPart4551067.DBdu5eTDgD Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCDEIw ggXmMIIDzqADAgECAhBqm+E4O/8ra58B1dm4p1JWMA0GCSqGSIb3DQEBDAUAMIGFMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYD VQQKExFDT01PRE8gQ0EgTGltaXRlZDErMCkGA1UEAxMiQ09N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