libbpf / bpftool

Automated upstream mirror for bpftool stand-alone build.
Other
398 stars 71 forks source link

Error: No JIT disassembly support #112

Closed LikeTheWindGone closed 1 year ago

LikeTheWindGone commented 1 year ago

after loading .o file to kernel, use

bpftool prog dump jited id 42

to see disassembly code , but the output is

Error: No JIT disassembly support

platform: ubuntu 23 on vmware bpftool version: bpftool v7.1.0 using libbpf v1.1

how to fix that?

qmonnet commented 1 year ago

Hi, where did you get your bpftool binary from? Ubuntu packages bpftool without the JIT disassembler, so if you installed from the APT repositories, this is expected. If you compiled yourself, this means that you (likely) didn't have the relevant libraries for supporting the feature.

In both cases, you'll have to get a new binary:

LikeTheWindGone commented 1 year ago

yes, i get my bpftool from ubuntu apt repositories, thank you