Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kcov_check_handle

Proto:static inline bool kcov_check_handle(u64 handle, bool common_valid, bool uncommon_valid, bool zero_valid)

Type:bool

Parameter:

TypeParameterName
u64handle
boolcommon_valid
booluncommon_valid
boolzero_valid
531  If handle & ~(KCOV_SUBSYSTEM_MASK | KCOV_INSTANCE_MASK) Then Return false
534  Case & == KCOV_SUBSYSTEM_COMMON
535  Return If handle & KCOV_INSTANCE_MASK Then common_valid Else zero_valid
537  Case & == KCOV_SUBSYSTEM_USB
538  Return uncommon_valid
539  Default
540  Return false
542  Return false
Caller
NameDescribe
kcov_ioctl_locked
kcov_remote_startkcov_remote_start() and kcov_remote_stop() can be used to annotate a section* of code in a kernel background thread to allow kcov to be used to collect* coverage from that part of code