Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hardlockup_detector_event_create

Proto:static int hardlockup_detector_event_create(void)

Type:int

Parameter:Nothing

168  cpu = smp_processor_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  If IS_ERR(evt) Then
179  pr_debug("Perf event create on CPU %d failed with %ld\n", cpu, PTR_ERR(evt))
181  Return PTR_ERR(evt)
183  this_cpu_write(watchdog_ev, evt)
184  Return 0
Caller
NameDescribe
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