函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hardlockup_detector_event_create

函数原型:static int hardlockup_detector_event_create(void)

返回类型:int

参数:

168  cpu等于当前cpu ID()
172  wd_attr等于wd_hw_attr
173  sample_period等于hw_nmi_get_sample_period(watchdog_thresh)
176  evt等于perf_event_create_kernel_counter*@attr: attributes of the counter to create*@cpu: cpu in which the counter is bound*@task: task to profile (NULL for percpu)
178  如果是错误
179  pr_debug("Perf event create on CPU %d failed with %ld\n", cpu, 错误)
181  返回:错误
183  抢占保护下的写CPU(watchdog_ev, evt)
184  返回:0
调用者
名称描述
hardlockup_detector_perf_enablehardlockup_detector_perf_enable - Enable the local event
hardlockup_detector_perf_inithardlockup_detector_perf_init - Probe whether NMI event is available at all