Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-28 12:34:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_events_hist_init

Proto:static __init int trace_events_hist_init(void)

Type:int

Parameter:Nothing

6502  struct dentry * entry = NULL
6504  err = 0
6506  err = dyn_event_register( & synth_event_ops)
6507  If err Then
6508  pr_warn("Could not register synth_event_ops\n")
6509  Return 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  If IS_ERR(d_tracer) Then
6514  err = PTR_ERR(d_tracer)
6515  Go to err
6518  entry = tracefs_create_file("synthetic_events", 0644, d_tracer, NULL, & synth_events_fops)
6520  If Not entry Then
6521  err = -ENODEV
6522  Go to err
6525  Return err
6526  err :
6527  pr_warn("Could not create tracefs 'synthetic_events' entry\n")
6529  Return err