Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_bpf

Proto:static __init int test_bpf(void)

Type:int

Parameter:Nothing

6986  err_cnt = 0 , pass_cnt = 0
6987  jit_cnt = 0 , run_cnt = 0
6989  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(tests) cycle
6993  cond_resched()
6994  If exclude_test(i) Then Continue
6997  pr_info("#%d %s ", i, descr)
6999  fp = generate_filter(i, & err)
7000  If (fp == NULL) Then
7001  If err == 0 Then
7002  pass_cnt++
7003  Continue
7005  err_cnt++
7006  Continue
7009  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("jited:%u ", Is our filter JIT'ed? )
7011  run_cnt++
7012  If Is our filter JIT'ed? Then jit_cnt++
7015  err = run_one(fp, & tests[i])
7016  release_filter(fp, i)
7018  If err Then
7020  err_cnt++
7021  Else
7023  pass_cnt++
7027  pr_info("Summary: %d PASSED, %d FAILED, [%d/%d JIT'ed]\n", pass_cnt, err_cnt, jit_cnt, run_cnt)
7030  Return If err_cnt Then -EINVAL Else 0
Caller
NameDescribe
test_bpf_init