forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add couple of test cases for interpreter but also JITs, f.e. to test that when imm32 moves are being done, upper 32bits of the regs are being zero extended. Without JIT: [...] [ 1114.129301] test_bpf: torvalds#43 MOV REG64 jited:0 128 PASS [ 1114.130626] test_bpf: torvalds#44 MOV REG32 jited:0 139 PASS [ 1114.132055] test_bpf: torvalds#45 LD IMM64 jited:0 124 PASS [...] With JIT (generated code can as usual be nicely verified with the help of bpf_jit_disasm tool): [...] [ 1062.726782] test_bpf: torvalds#43 MOV REG64 jited:1 6 PASS [ 1062.726890] test_bpf: torvalds#44 MOV REG32 jited:1 6 PASS [ 1062.726993] test_bpf: torvalds#45 LD IMM64 jited:1 6 PASS [...] Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters