Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Make a tracefs interface for controlling probe points

Proto:static __init int init_kprobe_trace(void)

Type:int

Parameter:Nothing

1696  ret = dyn_event_register( & trace_kprobe_ops)
1697  If ret Then Return ret
1700  If register_module_notifier( & trace_kprobe_module_nb) Then Return -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  If IS_ERR(d_tracer) Then Return 0
1707  entry = tracefs_create_file("kprobe_events", 0644, d_tracer, NULL, & kprobe_events_ops)
1711  If Not entry Then pr_warn("Could not create tracefs 'kprobe_events' entry\n")
1715  entry = tracefs_create_file("kprobe_profile", 0444, d_tracer, NULL, & kprobe_profile_ops)
1718  If Not entry Then pr_warn("Could not create tracefs 'kprobe_profile' entry\n")
1721  setup_boot_kprobe_events()
1723  Return 0