Thread (8 messages) 8 messages, 5 authors, 2019-10-26

Re: [PATCH] bpftool: Allow to read btf as raw data

From: Jakub Kicinski <hidden>
Date: 2019-10-24 17:55:42
Also in: bpf

On Thu, 24 Oct 2019 15:30:25 +0200, Jiri Olsa wrote:
The bpftool interface stays the same, but now it's possible
to run it over BTF raw data, like:

  $ bpftool btf dump file /sys/kernel/btf/vmlinux
  [1] INT '(anon)' size=4 bits_offset=0 nr_bits=32 encoding=(none)
  [2] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
  [3] CONST '(anon)' type_id=2

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
v3 changes:
 - fix title

v2 changes:
 - added is_btf_raw to find out which btf__parse_* function to call
 - changed labels and error propagation in btf__parse_raw
 - drop the err initialization, which is not needed under this change

Aw, this is v3? Looks like I replied to the older now, such confusion :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help