Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbbHMI7i (ORCPT ); Thu, 13 Aug 2015 04:59:38 -0400 Received: from mail.kdab.com ([176.9.126.58]:59148 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654AbbHMI7f (ORCPT ); Thu, 13 Aug 2015 04:59:35 -0400 X-Greylist: delayed 355 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Aug 2015 04:59:34 EDT From: Milian Wolff To: Jiri Olsa Cc: Perf Users , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf script: Initialize callchain_param.record_mode Date: Thu, 13 Aug 2015 10:53:36 +0200 Message-ID: <6934587.54gAAgWtJU@agathebauer> Organization: KDAB (Deutschland) GmbH&Co KG, a KDAB Group company In-Reply-To: <20150813071724.GA21322@krava.brq.redhat.com> References: <2045576.NEBzYG4lu7@agathebauer> <20150813071724.GA21322@krava.brq.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2975969.HDXOueoYkC"; 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: 11312 Lines: 207 --nextPart2975969.HDXOueoYkC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Thursday, August 13, 2015 09:17:24 AM Jiri Olsa wrote: > On Wed, Jul 22, 2015 at 08:48:40PM +0200, Milian Wolff wrote: > > Hey all, > >=20 > > I recorded a perf data file using > >=20 > > perf record --call-graph dwarf kwrite > >=20 > > when I report it I see backtraces pointing to the user space code: > >=20 > > perf report --stdio -g graph --no-children > >=20 > > 16.36% kwrite libKF5TextEditor.so.5.13.0 [.] > >=20 > > QArrayData::data > >=20 > > ---QArrayData::data > > =20 > > |--15.46%-- QTypedArrayData::da= ta > >=20 > > but when I run perf script, I do not see _any_ backtraces into user spa= ce. > >=20 > > perf script -F comm,tid,time,event,ip,sym,trace,period > >=20 > > :4898 4898 17486.943365: 1 cycles: > > 25f83a native_write_msr_safe > > 234f8a __intel_pmu_enable_all > > 235010 intel_pmu_enable_all > > 22e1ec x86_pmu_enable > > 356fb7 perf_pmu_enable.part.53 > > 35824d perf_event_context_sched_in.isra.64 > > 358e0b perf_event_exec > > 3e8c93 setup_new_exec > > 439a9f load_elf_binary > > 3e7f48 search_binary_handler > > 3e89cf do_execveat_common.isra.15 > > 3e8e4a sys_execve > > 78b895 return_from_execve > >=20 > > kwrite 4898 17486.943893: 1 cycles: > > kwrite 4898 17486.944211: 1 cycles: > > ... > > kwrite 4898 17486.953664: 461703 cycles: > >=20 > > kwrite 4898 17486.953838: 490150 cycles: > > 78d4c0 page_fault > >=20 > > kwrite 4898 17486.954009: 516694 cycles: > > ... > >=20 > > kwrite 4898 17510.765568: 766937 cycles: > > 78979b down_write > > 39bd82 unlink_file_vma > > 3944d0 free_pgtables > > 39eef6 exit_mmap > > 275d45 mmput > > 27b514 do_exit > > 27bdfb do_group_exit > > 27be84 [unknown] > > 78b56e system_call > >=20 > > So it looks to me as if only kernel-space call stacks are unwound in pe= rf > > script. Is there a magic switch that I'm missing to get user-space stac= ks > > unwound? Note I'm using perf 4.1.0 on a Linux 4.1.2 system. >=20 > hi, > right you are.. does attached patch help? Hey Jiri, it works a treat! Many thanks, much appreciated. =2D-=20 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 --nextPart2975969.HDXOueoYkC Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUdzCCBGYw ggNOoAMCAQICEFEmCpMc4n+cw6VfeeByroIwDQYJKoZIhvcNAQE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oQ Icz1M5G9RmrKYIppgkMPXjEzylJY37qy/OT5KIcbINerf/RLip46/FiUlLcAp8+mMVXzjmVnnGwU GvQGCHiaE0T1xTdv3nlFqN07oX0C2anveZ9lNhQQNbuhHfImQWZRRZrN8Jb4uxCp8x/x3qSQEY2P 6nNyXEvKp4t/8vs1nhMATvKfYOb1IGAUDLkZG0uG5xnNNShAaExDzvNoB7+NNJOOVv0ELWGBAg/8 V7EyMYd+hC01DaZXDVtm358dN0TLTJsHVW8AAAAAAAA= --nextPart2975969.HDXOueoYkC-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/