函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:event_trace_init

函数原型:__init int event_trace_init(void)

返回类型:int

参数:

3179  tr等于The global tracer (top) should be the first trace array added,* but we check the flag anyway.
3180  如果非tr则返回:负ENODEV
3183  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
3184  如果是错误则返回:0
3187  entry等于tracefs_create_file("available_events", 0444, d_tracer, tr, & ftrace_avail_fops)
3189  如果非entry打印警告信息("Could not create tracefs 'available_events' entry\n")
3192  如果trace_define_generic_fields()则打印警告信息("tracing: Failed to allocated generic fields")
3195  如果trace_define_common_fields()则打印警告信息("tracing: Failed to allocate common fields")
3198  ret等于The top trace array already had its file descriptors created.* Now the files themselves need to be created.
3199  如果ret则返回:ret
3203  ret等于register_module_notifier( & trace_module_nb)
3204  如果ret打印警告信息("Failed to register trace events module notifier\n")
3207  返回:0
调用者
名称描述
tracer_init_tracefs