函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Make a tracefs interface for controlling probe points

函数原型:static __init int init_kprobe_trace(void)

返回类型:int

参数:

1696  ret等于dyn_event_register( & trace_kprobe_ops)
1697  如果ret则返回:ret
1700  如果register_module_notifier( & trace_kprobe_module_nb)则返回:负EINVAL
1703  d_tracer等于racing_init_dentry - initialize top level trace array* This is called when creating files or directories in the tracing* directory. It is called via fs_initcall() by any of the boot up code
1704  如果是错误则返回:0
1707  entry等于tracefs_create_file("kprobe_events", 0644, d_tracer, NULL, & kprobe_events_ops)
1711  如果非entry打印警告信息("Could not create tracefs 'kprobe_events' entry\n")
1715  entry等于tracefs_create_file("kprobe_profile", 0444, d_tracer, NULL, & kprobe_profile_ops)
1718  如果非entry打印警告信息("Could not create tracefs 'kprobe_profile' entry\n")
1721  setup_boot_kprobe_events()
1723  返回:0