函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Kprobe handler

函数原型:static inline __attribute__((__always_inline__)) void __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs, struct trace_event_file *trace_file)

返回类型:void

参数:

类型参数名称
struct trace_kprobe *tk
struct pt_regs *regs
struct trace_event_file *trace_file
1182  call等于trace_probe_event_call( & tp)
1184  WARN_ON(call != event_call)
1186  如果race_trigger_soft_disabled - do triggers and test if soft disabled*@file: The file pointer of the event to test* If any triggers without filters are attached to this event, they* will be called here则返回
1189  local_save_flags(irq_flags)
1190  pc等于抢占计数值
1192  dsize等于Sum up total data length for dynamic arraies (strings)
1193  size等于entry的长度加 trace entry size dsize
1195  event等于trace_event_buffer_lock_reserve( & buffer, trace_file, type, size, irq_flags, pc)
1198  如果非event则返回
1201  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
1202  ip等于 location of the probe point
1203  Store the value of each argument
1205  vent_trigger_unlock_commit_regs - handle triggers and finish event commit*@file: The file pointer assoctiated to the event*@buffer: The ring buffer that the event is being written to*@event: The event meta data in the ring buffer*@entry: The event
调用者
名称描述
kprobe_trace_func