• Alexei Starovoitov's avatar
    net: filter: additional BPF tests · 9def624a
    Alexei Starovoitov authored
    All tests should pass with and without JIT.
    
    Example output:
    test_bpf: #0 TAX 35 16 16 PASS
    test_bpf: #1 TXA 7 7 7 PASS
    test_bpf: #2 ADD_SUB_MUL_K 10 PASS
    test_bpf: #3 DIV_KX 33 PASS
    test_bpf: #4 AND_OR_LSH_K 10 10 PASS
    test_bpf: #5 LD_IND 8 8 8 PASS
    test_bpf: #6 LD_ABS 8 8 8 PASS
    test_bpf: #7 LD_ABS_LL 13 14 PASS
    test_bpf: #8 LD_IND_LL 12 12 12 PASS
    test_bpf: #9 LD_ABS_NET 10 12 PASS
    test_bpf: #10 LD_IND_NET 11 12 12 PASS
    ...
    
    Numbers are times in nsec per filter for given input data.
    Signed-off-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9def624a
test_bpf.c 41.5 KB