Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kcov_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

Proto:void kcov_remote_start(u64 handle)

Type:void

Parameter:

TypeParameterName
u64handle
768  If WARN_ON(!kcov_check_handle(handle, true, true, true)) Then Return
770  If WARN_ON(!in_task()) Then Return
772  t = current process
777  If WARN_ON(kcov) Then Return
780  kcov_debug("handle = %llx\n", handle)
782  spin_lock( & kcov_remote_lock)
783  remote = Must be called with kcov_remote_lock locked.
784  If Not remote Then
785  kcov_debug("no remote found")
786  spin_unlock( & kcov_remote_lock)
787  Return
790  kcov_get(kcov)
791  kcov = kcov
796  size = Size of remote area (in long's).
797  mode = mode
798  sequence = Sequence is incremented each time kcov is reenabled, used by* kcov_remote_stop(), see the comment there.
799  area = Must be called with kcov_remote_lock locked.
800  spin_unlock( & kcov_remote_lock)
802  If Not area Then
803  area = vmalloc(size * sizeof(unsignedlong))
804  If Not area Then
805  kcov = NULL
806  kcov_put(kcov)
807  Return
811  area = 0
813  kcov_debug("area = %px, size = %u", area, size)
815  kcov_start(t, size, area, mode, sequence)