函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_events_hist_init

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

返回类型:int

参数:

6502  struct dentry * entry = NULL
6504  err等于0
6506  err等于dyn_event_register( & synth_event_ops)
6507  如果err
6508  打印警告信息("Could not register synth_event_ops\n")
6509  返回:err
6512  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
6513  如果是错误
6514  err等于错误
6515  转到:err
6518  entry等于tracefs_create_file("synthetic_events", 0644, d_tracer, NULL, & synth_events_fops)
6520  如果非entry
6521  err等于负ENODEV
6522  转到:err
6525  返回:err
6526  err :
6527  打印警告信息("Could not create tracefs 'synthetic_events' entry\n")
6529  返回:err