aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bpf.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-09test_bpf: Rename second ALU64_SMOD_X to ALU64_SMOD_KTiezhu Yang1-1/+1
2023-11-30bpf/tests: Remove duplicate JSGT testsYujie Liu1-2/+0
2023-11-15bpf: Remove test for MOVSX32 with offset=32Puranjay Mohan1-16/+0
2023-09-15bpf/tests: add tests for cpuv4 instructionsPuranjay Mohan1-0/+371
2023-08-18bpf/tests: Enhance output on error and fix typosHelge Deller1-5/+7
2023-06-29lib/test_bpf: Call page_address() on page acquired with GFP_KERNEL flagSumitra Sharma1-11/+1
2023-05-31bpf/tests: Use struct_size()Su Hui1-2/+1
2022-11-11net: remove skb->vlan_presentEric Dumazet1-1/+0
2022-06-22test_bpf: fix incorrect netdev featuresJian Shen1-2/+2
2022-04-01bpf, tests: Add load store test case for tail callXu Kuohai1-0/+30
2022-04-01bpf, tests: Add tests for BPF_LDX/BPF_STX with different offsetsXu Kuohai1-4/+281
2021-11-16bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33Tiezhu Yang1-2/+2
2021-10-28bpf, tests: Add module parameter test_suite to test_bpf moduleTiezhu Yang1-77/+135
2021-10-07bpf, tests: Add more LD_IMM64 testsJohan Almbladh1-3/+117
2021-10-01bpf/tests: Add test of LDX_MEM with operand aliasingJohan Almbladh1-0/+58
2021-10-01bpf/tests: Add test of ALU shifts with operand register aliasingJohan Almbladh1-13/+149
2021-10-01bpf/tests: Add exhaustive tests of BPF_ATOMIC register combinationsJohan Almbladh1-0/+422
2021-10-01bpf/tests: Add exhaustive tests of ALU register combinationsJohan Almbladh1-71/+763
2021-10-01bpf/tests: Minor restructuring of ALU testsJohan Almbladh1-72/+65
2021-10-01bpf/tests: Add more tests for ALU and ATOMIC register clobberingJohan Almbladh1-70/+197
2021-10-01bpf/tests: Add tests to check source register zero-extensionJohan Almbladh1-0/+143
2021-10-01bpf/tests: Add exhaustive tests of BPF_ATOMIC magnitudesJohan Almbladh1-1/+503
2021-10-01bpf/tests: Add zero-extension checks in BPF_ATOMIC testsJohan Almbladh1-5/+17
2021-10-01bpf/tests: Add tests of BPF_LDX and BPF_STX with small sizesJohan Almbladh1-0/+254
2021-09-28bpf: Replace "want address" users of BPF_CAST_CALL with BPF_CALL_IMMKees Cook1-1/+1
2021-09-28bpf/tests: Add tail call limit test with external function callJohan Almbladh1-3/+83
2021-09-28bpf/tests: Fix error in tail call limit testsJohan Almbladh1-10/+27
2021-09-28bpf/tests: Add more BPF_END byte order conversion testsJohan Almbladh1-0/+122
2021-09-28bpf/tests: Expand branch conversion JIT testJohan Almbladh1-34/+91
2021-09-28bpf/tests: Add JMP tests with degenerate conditionalJohan Almbladh1-0/+229
2021-09-28bpf/tests: Add JMP tests with small offsetsJohan Almbladh1-0/+71
2021-09-28bpf/tests: Add test case flag for verifier zero-extensionJohan Almbladh1-0/+3
2021-09-28bpf/tests: Add exhaustive test of LD_IMM64 immediate magnitudesJohan Almbladh1-0/+63
2021-09-28bpf/tests: Add staggered JMP and JMP32 testsJohan Almbladh1-0/+829
2021-09-28bpf/tests: Add exhaustive tests of JMP operand magnitudesJohan Almbladh1-0/+779
2021-09-28bpf/tests: Add exhaustive tests of ALU operand magnitudesJohan Almbladh1-0/+772
2021-09-28bpf/tests: Add exhaustive tests of ALU shift valuesJohan Almbladh1-0/+260
2021-09-28bpf/tests: Reduce memory footprint of test suiteJohan Almbladh1-14/+12
2021-09-28bpf/tests: Allow different number of runs per test caseJohan Almbladh1-0/+4
2021-09-10selftests/bpf: Test new __sk_buff field hwtstampVadim Fedorenko1-0/+1
2021-08-17bpf: Refactor BPF_PROG_RUN into a functionAndrii Nakryiko1-1/+1
2021-08-16bpf, tests: Fix spelling mistake "shoft" -> "shift"Colin Ian King1-1/+1
2021-08-10bpf, tests: Add tail call test suiteJohan Almbladh1-0/+248
2021-08-10bpf, tests: Add tests for BPF_CMPXCHGJohan Almbladh1-0/+166
2021-08-10bpf, tests: Add tests for atomic operationsJohan Almbladh1-86/+166
2021-08-10bpf, tests: Add test for 32-bit context pointer argument passingJohan Almbladh1-0/+16
2021-08-10bpf, tests: Add branch conversion JIT testJohan Almbladh1-0/+43
2021-08-10bpf, tests: Add word-order tests for load/store of double wordsJohan Almbladh1-0/+36
2021-08-10bpf, tests: Add tests for ALU operations implemented with function callsJohan Almbladh1-0/+141
2021-08-10bpf, tests: Add more ALU64 BPF_MUL testsJohan Almbladh1-0/+48
2021-08-10bpf, tests: Add more BPF_LSH/RSH/ARSH tests for ALU64Johan Almbladh1-2/+542
2021-08-10bpf, tests: Add more ALU32 tests for BPF_LSH/RSH/ARSHJohan Almbladh1-0/+102
2021-08-10bpf, tests: Add more tests of ALU32 and ALU64 bitwise operationsJohan Almbladh1-0/+210
2021-08-10bpf, tests: Fix typos in test case descriptionsJohan Almbladh1-4/+4
2021-08-10bpf, tests: Add BPF_MOV tests for zero and sign extensionJohan Almbladh1-0/+84
2021-08-10bpf, tests: Add BPF_JMP32 test casesJohan Almbladh1-0/+511
2021-07-23bpf/tests: Do not PASS tests without actually testing the resultJohan Almbladh1-1/+8
2021-07-23bpf/tests: Fix copy-and-paste error in double word testJohan Almbladh1-2/+2
2021-07-08lib/test: fix spelling mistakesZhen Lei1-1/+1
2021-01-20test_bpf: Remove EXPECTED_FAIL flag from bpf_fill_maxinsns11Gary Lin1-6/+1
2021-01-14bpf: Rename BPF_XADD and prepare to encode other atomics in .immBrendan Jackman1-7/+7
2020-07-16bpf: revert "test_bpf: Flag tests that cannot be jited on s390"Seth Forshee1-20/+0
2020-02-24bpf/tests: Use migrate disable instead of preempt disableDavid Miller1-2/+2
2019-10-30bpf, testing: Introduce 'gso_linear_no_head_frag' skb_segment testShmulik Ladkani1-0/+63
2019-10-30bpf, testing: Refactor test_skb_segment() for testing skb_segment() on differ...Shmulik Ladkani1-10/+41
2019-08-20test_bpf: Fix a new clang warning about xor-ing two numbersNathan Chancellor1-1/+1
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295Thomas Gleixner1-9/+1
2019-02-25bpf: test_bpf: turn off preemption in function __run_onceAnders Roxell1-0/+2
2018-11-16net: remove VLAN_TAG_PRESENTMichał Mirosław1-6/+8
2018-09-27bpf: test_bpf: add init_net to dev for flow_dissectorSong Liu1-0/+1
2018-06-28test_bpf: flag tests that cannot be jited on s390Kleber Sacilotto de Souza1-0/+20
2018-06-03bpf: add also cbpf long jump test cases with heavy expansionDaniel Borkmann1-0/+63
2018-05-03bpf: migrate ebpf ld_abs/ld_ind tests to test_verifierDaniel Borkmann1-212/+358
2018-03-29test_bpf: Fix NULL vs IS_ERR() check in test_skb_segment()Dan Carpenter1-1/+1
2018-03-25net: bpf: add a test for skb_segment in test_bpf moduleYonghong Song1-2/+91
2018-03-20test_bpf: Fix testing with CONFIG_BPF_JIT_ALWAYS_ON=y on other archesThadeu Lima de Souza Cascardo1-1/+1
2018-02-28test_bpf: reduce MAX_TESTRUNSEric Dumazet1-1/+1
2018-02-26test_bpf: add a schedule pointEric Dumazet1-0/+2
2018-02-05bpf: fix selftests/bpf test_kmod.sh failure when CONFIG_BPF_JIT_ALWAYS_ON=yYonghong Song1-5/+26
2018-01-26bpf: add further test cases around div/mod and othersDaniel Borkmann1-2/+6
2018-01-19bpf: add couple of test cases for signed extended immsDaniel Borkmann1-0/+104
2018-01-09bpf: introduce BPF_JIT_ALWAYS_ON configAlexei Starovoitov1-4/+7
2017-12-15bpf: add test case for ld_abs and helper changing pkt dataDaniel Borkmann1-0/+43
2017-08-09bpf: add BPF_J{LT,LE,SLT,SLE} instructionsDaniel Borkmann1-0/+364
2017-06-20net: introduce __skb_put_[zero, data, u8]yuan linyu1-1/+1
2017-06-14test_bpf: Add test to make conditional jump cross a large number of insns.David Daney1-0/+32
2017-05-31bpf: fix stack_depth usage by test_bpf.koAlexei Starovoitov1-1/+24
2017-05-25test_bpf: Add a couple of tests for BPF_JSGE.David Daney1-0/+38
2017-05-03test_bpf: Use ULL suffix for 64-bit constantsGeert Uytterhoeven1-5/+5
2017-05-02bpf, arm64: fix jit branch offset related to ldimm64Daniel Borkmann1-0/+45
2017-05-02bpf, arm64: implement jiting of BPF_XADDDaniel Borkmann1-0/+105
2016-10-20bpf, test: fix ld_abs + vlan push/pop stress testDaniel Borkmann1-1/+1
2016-09-15test_bpf: fix the dummy skb after dissector changesJakub Kicinski1-0/+1
2016-05-16bpf: prepare bpf_int_jit_compile/bpf_prog_select_runtime apisDaniel Borkmann1-1/+4
2016-04-06lib/test_bpf: Add additional BPF_ADD testsNaveen N. Rao1-0/+128
2016-04-06lib/test_bpf: Add test to check for result of 32-bit add that overflowsNaveen N. Rao1-0/+64
2016-04-06lib/test_bpf: Add tests for unsigned BPF_JGTNaveen N. Rao1-0/+29
2016-04-06lib/test_bpf: Fix JMP_JSET testsNaveen N. Rao1-4/+4
2015-12-18bpf, test: add couple of test casesDaniel Borkmann1-0/+120
2015-11-05bpf: add mod default A and X test casesYang Shi1-0/+30
2015-08-06test_bpf: add tests checking that JIT/interpreter sets A and X to 0.Nicolas Schichan1-0/+158
2015-08-06test_bpf: add more tests for LD_ABS and LD_IND.Nicolas Schichan1-0/+296
2015-08-06test_bpf: add module parameters to filter the tests to run.Nicolas Schichan1-0/+71
2015-08-06test_bpf: test LD_ABS and LD_IND instructions on fragmented skbs.Nicolas Schichan1-0/+142
2015-08-06test_bpf: allow tests to specify an skb fragment.Nicolas Schichan1-1/+38
2015-08-06test_bpf: avoid oopsing the kernel when generate_test_data() fails.Nicolas Schichan1-0/+5
2015-07-30test_bpf: assign type to native eBPF test casesDaniel Borkmann1-0/+2
2015-07-20test_bpf: add bpf_skb_vlan_push/pop() testsAlexei Starovoitov1-3/+95
2015-07-08test_bpf: extend tests for 32-bit endianness conversionXi Wang1-0/+6
2015-05-27test_bpf: add similarly conflicting jump test case only for classicDaniel Borkmann1-0/+57
2015-05-25test_bpf: add more eBPF jump torture casesDaniel Borkmann1-0/+67
2015-05-22test_bpf: Add backward jump test caseMichael Holzheu1-0/+16
2015-05-14test_bpf: fix sparse warningsMichael Holzheu1-61/+61
2015-05-14test_bpf: add tests related to BPF_MAXINSNSDaniel Borkmann1-9/+308
2015-05-12test_bpf: add 173 new testcases for eBPFMichael Holzheu1-0/+2192
2015-05-11test: bpf: extend "load 64-bit immediate" testcaseXi Wang1-1/+2
2015-04-30test_bpf: indicate whether bpf prog got jited in test suiteDaniel Borkmann1-1/+11
2014-12-08test: bpf: expand DIV_KX to DIV_MOD_KXDenis Kirjanov1-2/+8
2014-10-30test: bpf: add a testcase reduced from nmapAlexei Starovoitov1-0/+43
2014-09-22net: bpf: fix compiler warnings in test_bpfAlexei Starovoitov1-2/+2
2014-09-09net: filter: add "load 64-bit immediate" eBPF instructionAlexei Starovoitov1-0/+21
2014-09-05net: bpf: make eBPF interpreter images read-onlyDaniel Borkmann1-1/+1
2014-08-25bpf: x86: add missing 'shift by register' instructions to x64 eBPF JITAlexei Starovoitov1-0/+38
2014-08-02net: filter: split 'struct sk_filter' into socket and bpf partsAlexei Starovoitov1-12/+12
2014-07-24net: filter: rename 'struct sock_filter_int' into 'struct bpf_insn'Alexei Starovoitov1-2/+2
2014-06-11net: filter: fix nlattr and nlattr_nest BPF testsAlexei Starovoitov1-13/+21
2014-06-02net: filter: fix length calculation in BPF testsuiteChema Gonzalez1-5/+16
2014-06-01net: filter: add test for loading SKF_AD_OFF limitsDaniel Borkmann1-0/+22
2014-06-01net: filter: add slot overlapping test with fully filled M[]Daniel Borkmann1-1/+74
2014-05-30net: filter: use block statements in tcpdump testsDaniel Borkmann1-68/+75
2014-05-30net: filter: test fill/spill of all M[] regsDaniel Borkmann1-0/+90
2014-05-23net: filter: add test case for jump with holes and ret x variantsDaniel Borkmann1-0/+94
2014-05-23net: filter: improve test case frameworkDaniel Borkmann1-155/+233
2014-05-23net: filter: let unattached filters use sock_fprog_kernDaniel Borkmann1-1/+1
2014-05-23lib/test_bpf.c: don't use gcc union shortcutAndrew Morton1-52/+52
2014-05-21net: filter: cleanup invocation of internal BPFAlexei Starovoitov1-2/+2
2014-05-12net: filter: additional BPF testsAlexei Starovoitov1-0/+1224
2014-05-12net: filter: BPF testsuiteAlexei Starovoitov1-0/+322