函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kcov.c Create Date:2022-07-27 12:37:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void kcov_remote_start(u64 handle)

返回类型:void

参数:

类型参数名称
u64handle
768  如果WARN_ON(!kcov_check_handle(handle, true, true, true))则返回
770  如果WARN_ON(!in_task())则返回
772  t等于当前进程
777  如果WARN_ON(kcov)则返回
780  kcov_debug("handle = %llx\n", handle)
782  加自旋锁
783  remote等于Must be called with kcov_remote_lock locked.
784  如果非remote
785  kcov_debug("no remote found")
786  自旋锁解锁
787  返回
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  自旋锁解锁
802  如果非area
803  area等于vmalloc(size * sizeof(unsignedlong))
804  如果非area
805  kcov = NULL
806  kcov_put(kcov)
807  返回
811  area等于0
813  kcov_debug("area = %px, size = %u", area, size)
815  kcov_start(t, size, area, mode, sequence)