From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124980 invoked by alias); 17 Feb 2017 14:42:09 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 124834 invoked by uid 48); 17 Feb 2017 14:41:56 -0000 From: "thommyj at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/21174] libdw with perf: duplication of entries in callstack Date: Fri, 17 Feb 2017 14:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thommyj at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2017-q1/txt/msg00059.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21174 --- Comment #6 from Thommy Jakobsson --- Hi again and thanks for spending the time. >>Maybe you can debug by triggering the pr_debug () Switched the pr_debug to a normal printf, and also added a printout of prog= ram counter directly in the libdw frame callback (see attached patch). And from what I can see the duplication of symbol comes from libdw >>eu-readelf --debug-dump=3Dframe /usr/local/bin/Application Not fully understand how to read the callstack debug data, is this what you want? I guess you are supposed to unroll the entire register file from last function with this info, so I would have expected more data. [ 1ad8] FDE length=3D36 cie=3D[ 1aa0] CIE_pointer: 6816 initial_location: 0x00000000006e35d8 address_range: 0x58 Program: advance_loc 2 to 0x4 def_cfa_offset 32 offset r29 (x29) at cfa-32 offset r30 (x30) at cfa-24 advance_loc 2 to 0x8 def_cfa_register r29 (x29) advance_loc 38 to 0x54 restore r30 (x30) restore r29 (x29) def_cfa r31 (sp) at offset 0 [ 1b00] CIE length=3D12 CIE_id: 18446744073709551615 version: 1 augmentation: "" code_alignment_factor: 2 data_alignment_factor: -4 return_address_register: 30 Program: def_cfa r31 (sp) at offset 0 BR, Thommy Jakobsson --=20 You are receiving this mail because: You are on the CC list for the bug.