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:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_boot_kprobe_events

Proto:static __init void setup_boot_kprobe_events(void)

Type:void

Parameter:Nothing

1667  cmd = Kprobe early definition from command line
1670  strreplace - Replace all occurrences of character in string.*@s: The string to operate on.*@old: The character being replaced.*@new: The character @old is replaced with.* Returns pointer to the nul byte at the end of @s.
1672  When cmd && cmd != '\0' cycle
1673  p = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
1674  If p Then p++ = '\0'
1677  ret = trace_run_command(cmd, create_or_delete_trace_kprobe)
1678  If ret Then pr_warn("Failed to add event(%d): %s\n", ret, cmd)
1680  Else kprobe_boot_events_enabled = true
1683  cmd = p
1686  enable_boot_kprobe_events()
Caller
NameDescribe
init_kprobe_traceMake a tracefs interface for controlling probe points