From: Michael Matz <matz@suse.de>
To: Indu Bhagat <indu.bhagat@oracle.com>
Cc: binutils@sourceware.org
Subject: Re: [PATCH,RFC 0/7] Definition and Implementation of CTF Frame format
Date: Fri, 13 May 2022 13:08:40 +0000 (UTC) [thread overview]
Message-ID: <alpine.LSU.2.20.2205131304510.20118@wotan.suse.de> (raw)
In-Reply-To: <20220507005223.3093035-1-indu.bhagat@oracle.com>
Hello,
On Fri, 6 May 2022, Indu Bhagat via Binutils wrote:
> PT_GNU_CTF_FRAME) in ELF linked binaries. The CTF Frame format specifies the
> minimal necessary unwind information, i.e., information needed to recover only
> the CFA and the return address (RA) for all insns of a program. This
> information is a subset of what .eh_frame can convey: .eh_frame specifies how
> to resurrect all callee-saved registers, if need be.
So, it's designed to be less complete than .eh_frame. That in itself is
not a problem, but ...
> ratio = (.ctf_frame / (.eh_frame+.eh_frame_hdr))
>
> ---------------------------------------------------
> program | [x86_64] ratio | [aarch64] ratio
> ---------------------------------------------------
> addr2line | 1.13 | 0.67
> ar | 1.03 | 0.70
> as | 1.00 | 0.73
> c++filt | 1.08 | 0.64
> elfedit | 1.03 | 0.66
> gprof | 1.06 | 0.71
> ld | 1.02 | 0.73
> nm | 1.07 | 0.69
> objcopy | 1.08 | 0.72
> objdump | 1.08 | 0.73
> size | 1.10 | 0.67
> strings | 1.09 | 0.67
... this is. You need more space on x86-64 to store severely less
information, and even on aarch64 the savings are meager when compared to
the information loss.
So, hmm, who would want to ever enable .ctf_frame instead of .eh_frame?
Ciao,
Michael.
next prev parent reply other threads:[~2022-05-13 13:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-07 0:52 Indu Bhagat
2022-05-07 0:52 ` [PATCH,RFC 1/7] ctf-frame.h: Add CTF Frame format definition Indu Bhagat
2022-05-07 0:52 ` [PATCH,RFC 2/7] gas: generate .ctf_frame Indu Bhagat
2022-05-07 0:52 ` [PATCH,RFC 4/7] bfd: linker: merge .ctf_frame sections Indu Bhagat
2022-05-07 0:52 ` [PATCH,RFC 5/7] readelf/objdump: support for CTF Frame section Indu Bhagat
2022-05-07 0:52 ` [PATCH,RFC 6/7] unwinder: generate backtrace using CTF Frame format Indu Bhagat
2022-05-07 0:52 ` [PATCH, RFC 7/7] gdb: sim: buildsystem changes to accommodate libctfframe Indu Bhagat
[not found] ` <20220507005223.3093035-4-indu.bhagat@oracle.com>
2022-05-08 22:00 ` [PATCH,RFC 3/7] libctfframe: add the CTF Frame library Indu Bhagat
2022-05-17 13:44 ` Jan Beulich
2022-05-13 13:08 ` Michael Matz [this message]
2022-05-13 17:50 ` [PATCH, RFC 0/7] Definition and Implementation of CTF Frame format Indu Bhagat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.2.20.2205131304510.20118@wotan.suse.de \
--to=matz@suse.de \
--cc=binutils@sourceware.org \
--cc=indu.bhagat@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).