Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:append_trace_kprobe

Proto:static int append_trace_kprobe(struct trace_kprobe *tk, struct trace_kprobe *to)

Type:int

Parameter:

TypeParameterName
struct trace_kprobe *tk
struct trace_kprobe *to
592  ret = trace_probe_compare_arg_type( & tp, & tp)
593  If ret Then
595  trace_probe_log_set_index(ret + 1)
596  trace_probe_log_err(0, DIFF_ARG_TYPE)
597  Return -EEXIST
599  If trace_kprobe_has_same_kprobe(to, tk) Then
600  trace_probe_log_set_index(0)
601  trace_probe_log_err(0, SAME_PROBE)
602  Return -EEXIST
606  ret = trace_probe_append( & tp, & tp)
607  If ret Then Return ret
611  ret = Internal register function - just handle k*probes and flags
612  If ret == -ENOENT && Not trace_kprobe_module_exist(tk) Then
613  pr_warn("This probe might be able to register after target module is loaded. Continue.\n")
614  ret = 0
617  If ret Then trace_probe_unlink( & tp)
619  Else dyn_event_add( & devent)
622  Return ret
Caller
NameDescribe
register_trace_kprobeRegister a trace_probe and probe_event