函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_hw_breakpoint

函数原型:int __init init_hw_breakpoint(void)

返回类型:int

参数:

666 i小于TYPE_MAX循环nr_slots[i]等于hw_breakpoint_slots(i)
669  遍历可用CPU(cpu)
670 i小于TYPE_MAX循环
671  info等于get_bp_info(cpu, i)
680  constraints_initialized等于1
682  perf_pmu_register( & perf_breakpoint, "breakpoint", PERF_TYPE_BREAKPOINT)
684  返回:register_die_notifier( & hw_breakpoint_exceptions_nb)
686  err_alloc :
687  遍历可用CPU(err_cpu)
688 i小于TYPE_MAX循环kfree(sk_pinned[n] is the number of tasks having n+1 breakpoints )
690  如果err_cpu恒等于cpu退出
694  返回:负ENOMEM
调用者
名称描述
perf_event_init