Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_bpf.c Create Date:2022-07-28 06:27:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:run_one

Proto:static int run_one(const struct bpf_prog *fp, struct bpf_test *test)

Type:int

Parameter:

TypeParameterName
const struct bpf_prog *fp
struct bpf_test *test
6680  err_cnt = 0 , runs = MAX_TESTRUNS
6682  When i < General test specific settings cycle
6687  If data_size == 0 && result == 0 Then Break
6691  data = generate_test_data(test, i)
6692  If Not data && Not (aux & Flags that can be passed to test cases ) Then
6694  err_cnt++
6695  Break
6697  ret = __run_one(fp, data, runs, & duration)
6698  release_test_data(test, data)
6700  If ret == result Then
6702  Else
6705  err_cnt++
6709  Return err_cnt
Caller
NameDescribe
test_bpf