Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934962AbcLTOEX (ORCPT ); Tue, 20 Dec 2016 09:04:23 -0500 Received: from mail.kdab.com ([176.9.126.58]:44660 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934868AbcLTODy (ORCPT ); Tue, 20 Dec 2016 09:03:54 -0500 From: Milian Wolff To: "Steinar H. Gunderson" Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Jiri Olsa Subject: Re: Inlined functions in perf report Date: Tue, 20 Dec 2016 15:03:40 +0100 Message-ID: <3116188.fHYjqyENF0@milian-kdab2> Organization: KDAB In-Reply-To: <20161220134341.GA4183@sesse.net> References: <20161220115954.GA35897@sesse.net> <2027151.EnbG4A8ymx@milian-kdab2> <20161220134341.GA4183@sesse.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1669547.q3jtxJdDNG"; micalg="sha1"; protocol="application/pkcs7-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9701 Lines: 152 --nextPart1669547.q3jtxJdDNG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, December 20, 2016 2:43:41 PM CET Steinar H. Gunderson wrote: > On Tue, Dec 20, 2016 at 02:27:10PM +0100, Milian Wolff wrote: > > It is not even possible with that, perf report is lacking the steps > > required to add inline frames - it will only add "real" frames it gets > > from either of the unwind libraries. > > > > I have a WIP patch available for this functionality though, it can be > > found > > here (depends on libbfd, i.e. bfd_find_inliner_info): > > > > https://github.com/milianw/linux/commit/ > > 71d031c9d679bfb4a4044226e8903dd80ea601b3 > > Thanks, I'll be sure to try it out. I assume this works only with -g dwarf? > I.e., for non-graph runs, I will still get the bottom function only, not the > inlined one. There is no -g dwarf to my knowldge. There is only `perf record -g`, which is the framepointer based unwinding and that should also work. But I only really tested this WIP branch with `--call-graph dwarf` so far. I'm not so sure whether I understand your sentence about "non-graph runs". It has nothing to do with `perf report -g graph` (yes, perf is confusing!). You'll have to: perf record [-g | --call-graph lbr | --call-graph dwarf ] (pick one) perf report -g srcline (and anything else) Cheers -- Milian Wolff | milian.wolff@kdab.com | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt Experts --nextPart1669547.q3jtxJdDNG Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUdzCCBGYw ggNOoAMCAQICEFEmCpMc4n+cw6VfeeByroIwDQYJKoZIhvcNAQEFBQAwgZMxCzAJBgNVBAYTAlVT MQswCQYDVQQIEwJVVDEXMBUGA1UEBxMOU2FsdCBMYWtlIENpdHkxHjAcBgNVBAoTFVRoZSBVU0VS VFJVU1QgTmV0d29yazEhMB8GA1UECxMYaHR0cDovL3d3dy51c2VydHJ1c3QuY29tMRswGQYDVQQD ExJVVE4gLSBEQVRBQ29ycCBTR0MwHhcNMDUwNjA3MDgwOTEwWhcNMTkwNjI0MTkwNjMwWjBvMQsw CQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVy bmFsIFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MIIBIjAN BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/caM+byAAQtOeBOW+0fvGwPzbX6I7bO3psRM5ek KUx9k5+9SryT7QMa44/P5W1QWtaXKZRagLBJetsulf24yr83OC0ePpFBrXBWx/BPP+gynnTKyJBU 6cZfD3idmkA8Dqxhql4Uj56HoWpQ3NeaTq8Fs6ZxlJxxs1BgCscTnTgHhgKo6ahpJhiQq0ywTyOr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