函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__enable_trace_kprobe

函数原型:static inline int __enable_trace_kprobe(struct trace_kprobe *tk)

返回类型:int

参数:

类型参数名称
struct trace_kprobe *tk
319  ret等于0
321  如果trace_kprobe_is_registered(tk)且非trace_kprobe_has_gone(tk)则
322  如果trace_kprobe_is_return(tk)则ret等于enable_kretprobe( & Use rp.kp for kprobe use )
324  否则ret等于Enable one kprobe
328  返回:ret
调用者
名称描述
enable_trace_kprobeEnable trace_probe* if the file is NULL, enable "perf" handler, or enable "trace" handler.