]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf, open: new API for getting the size of CTF/BTF file sections
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 10:51:04 +0000 (11:51 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:43 +0000 (18:07 +0100)
commitf7f72bcca656527fd69b18b485cfe96b8c18dea8
tree6d8aa3c1538e409656eb9441f82997311864386b
parent4837852527158d74151671fd4bd6bc7f47421491
libctf, open: new API for getting the size of CTF/BTF file sections

I wrote this for BTF type size querying programs, but it might be
of more general use and it's impossible to get this info in any
other way, so we might want to keep it.

New API:
+size_t ctf_sect_size (ctf_dict_t *, ctf_sect_names_t sect);
include/ctf-api.h
libctf/ctf-open.c
libctf/libctf.ver