2019-11-14 03:46:15

by Mao Wenan

[permalink] [raw]
Subject: [PATCH net] bpf: doc: change right arguments for JIT example code

The example codes for JIT of x86_64, use wrong
arguments to when call function bar().

Signed-off-by: Mao Wenan <[email protected]>
---
Documentation/networking/filter.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/networking/filter.txt b/Documentation/networking/filter.txt
index 319e5e0..c4a328f 100644
--- a/Documentation/networking/filter.txt
+++ b/Documentation/networking/filter.txt
@@ -770,10 +770,10 @@ Some core changes of the new internal format:
callq foo
mov %rax,%r13
mov %rbx,%rdi
- mov $0x2,%esi
- mov $0x3,%edx
- mov $0x4,%ecx
- mov $0x5,%r8d
+ mov $0x6,%esi
+ mov $0x7,%edx
+ mov $0x8,%ecx
+ mov $0x9,%r8d
callq bar
add %r13,%rax
mov -0x228(%rbp),%rbx
--
2.7.4


2019-11-15 22:28:52

by Daniel Borkmann

[permalink] [raw]
Subject: Re: [PATCH net] bpf: doc: change right arguments for JIT example code

On 11/14/19 4:43 AM, Mao Wenan wrote:
> The example codes for JIT of x86_64, use wrong
> arguments to when call function bar().
>
> Signed-off-by: Mao Wenan <[email protected]>

Applied, thanks!