Skip to content

Commit 808c9f7

Browse files
Mao Wenanborkmann
authored andcommitted
bpf, doc: Change right arguments for JIT example code
The example code for the x86_64 JIT uses the wrong arguments when calling function bar(). Signed-off-by: Mao Wenan <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b313332 commit 808c9f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/networking/filter.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,10 @@ Some core changes of the new internal format:
770770
callq foo
771771
mov %rax,%r13
772772
mov %rbx,%rdi
773-
mov $0x2,%esi
774-
mov $0x3,%edx
775-
mov $0x4,%ecx
776-
mov $0x5,%r8d
773+
mov $0x6,%esi
774+
mov $0x7,%edx
775+
mov $0x8,%ecx
776+
mov $0x9,%r8d
777777
callq bar
778778
add %r13,%rax
779779
mov -0x228(%rbp),%rbx

0 commit comments

Comments
 (0)