bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] bpf: doc: change right arguments for JIT example code
@ 2019-11-14  3:43 Mao Wenan
  2019-11-15 22:27 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: Mao Wenan @ 2019-11-14  3:43 UTC (permalink / raw)
  To: ast, daniel, kafai, songliubraving, yhs, andriin, davem, corbet
  Cc: netdev, bpf, linux-doc, linux-kernel, kernel-janitors, Mao Wenan

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

Signed-off-by: Mao Wenan <maowenan@huawei.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] bpf: doc: change right arguments for JIT example code
  2019-11-14  3:43 [PATCH net] bpf: doc: change right arguments for JIT example code Mao Wenan
@ 2019-11-15 22:27 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2019-11-15 22:27 UTC (permalink / raw)
  To: Mao Wenan, ast, kafai, songliubraving, yhs, andriin, davem, corbet
  Cc: netdev, bpf, linux-doc, linux-kernel, kernel-janitors

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 <maowenan@huawei.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-15 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14  3:43 [PATCH net] bpf: doc: change right arguments for JIT example code Mao Wenan
2019-11-15 22:27 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).