Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <maowenan@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191114034351.162740-1-maowenan@huawei.com

authored by

Mao Wenan and committed by
Daniel Borkmann
808c9f7e b3133329

+4 -4
+4 -4
Documentation/networking/filter.txt
··· 770 770 callq foo 771 771 mov %rax,%r13 772 772 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 777 777 callq bar 778 778 add %r13,%rax 779 779 mov -0x228(%rbp),%rbx