Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_hw_breakpoint

Proto:int __init init_hw_breakpoint(void)

Type:int

Parameter:Nothing

666  When i < TYPE_MAX cycle nr_slots[i] = hw_breakpoint_slots(i)
669  for_each_possible_cpu(cpu)
670  When i < TYPE_MAX cycle
671  info = get_bp_info(cpu, i)
680  constraints_initialized = 1
682  perf_pmu_register( & perf_breakpoint, "breakpoint", PERF_TYPE_BREAKPOINT)
684  Return register_die_notifier( & hw_breakpoint_exceptions_nb)
686  err_alloc :
687  for_each_possible_cpu(err_cpu)
688  When i < TYPE_MAX cycle kfree(sk_pinned[n] is the number of tasks having n+1 breakpoints )
690  If err_cpu == cpu Then Break
694  Return -ENOMEM
Caller
NameDescribe
perf_event_init