Skip to contentSkip to conversation

Decode ebpf errors

DISCUSSION Tushar Dave 1 participant 1 message Apr 18, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

When ebpf program fails it dumps log as eBPF instruction.

e.g.
[samples/bpf]# ./xyz
0: (bf) r6 = r1
1: (b7) r1 = 171602533
2: (63) *(u32 *)(r10 -40) = r1
3: (18) r1 = 0x6461654820534452
5: (7b) *(u64 *)(r10 -48) = r1
6: (b7) r7 = 0
7: (73) *(u8 *)(r10 -36) = r7
8: (bf) r1 = r10
9: (07) r1 += -48
10: (b7) r2 = 13
11: (85) call bpf_trace_printk#6
...
.

Is there a way I can dump jited instruction (e.g. x86 assembly) instead for ease of understanding?

Thanks.

-Tushar