Skip to content

Commit

Permalink
ctf: add BTF-to-CTF convertor
Browse files Browse the repository at this point in the history
For kernels that do not provide CTF data, kernel type information can be
obtained at runtime as BTF data.  We pull in that data and generate
equivalent CTF data from it.

Note that BTF is not a true replacement for CTF data.  I.e. it does not
currently provide type information for kernel variables.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
  • Loading branch information
kvanhees committed Nov 8, 2023
1 parent 2a10fab commit 402377c
Show file tree
Hide file tree
Showing 5 changed files with 890 additions and 10 deletions.
1 change: 1 addition & 0 deletions libdtrace/Build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ libdtrace-build_DIR := $(current-dir)
libdtrace-build_SOURCES = dt_aggregate.c \
dt_as.c \
dt_bpf.c \
dt_btf.c \
dt_buf.c \
dt_cc.c \
dt_cg.c \
Expand Down

0 comments on commit 402377c

Please sign in to comment.