mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Add two tests to check that sequence of 1024 jumps is verifiable. Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
19 lines
324 B
C
19 lines
324 B
C
{
|
|
"scale: scale test 1",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_scale,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 1,
|
|
},
|
|
{
|
|
"scale: scale test 2",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_scale,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 2,
|
|
},
|