Skip to content

Commit 8c633c7

Browse files
committed
examples/bpf_query: Fix disassemble output
The BPF prog disassemble output seems incorrect compared to bpftool. Change the bitness to 64 fix this. Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
1 parent e8c360b commit 8c633c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bpf_query/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn prog(args: ProgArgs) {
3939
{
4040
use iced_x86::Formatter;
4141

42-
let mut d = iced_x86::Decoder::new(32, &prog.jited_prog_insns, 0);
42+
let mut d = iced_x86::Decoder::new(64, &prog.jited_prog_insns, 0);
4343
let mut f = iced_x86::GasFormatter::new();
4444
while d.can_decode() {
4545
let ip = d.ip();

0 commit comments

Comments
 (0)