Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_find_last_bit

Proto:static int __init test_find_last_bit(const void *bitmap, unsigned long len)

Type:int

Parameter:

TypeParameterName
const void *bitmap
unsigned longlen
82  cnt = 0
85  time = ktime_get()
86  Do
87  cnt++
88  l = find_last_bit(bitmap, len)
89  If l >= len Then Break
91  len = l
92  When len cycle
93  time = ktime_get() - time
94  pr_err("find_last_bit: %18llu ns, %6ld iterations\n", time, cnt)
96  Return 0
Caller
NameDescribe
find_bit_test