函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_function

函数原型:void trace_function(struct trace_array *tr, unsigned long ip, unsigned long parent_ip, unsigned long flags, int pc)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
unsigned longip
unsigned longparent_ip
unsigned longflags
intpc
2849  call等于event_function
2850  buffer等于buffer
2854  event等于__trace_buffer_lock_reserve(buffer, TRACE_FN, entry的长度, flags, pc)
2856  如果非event则返回
2858  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
2859  ip等于ip
2860  parent_ip等于parent_ip
2862  如果非call_filter_check_discard(call, entry, buffer, event)则
2863  如果static_branch_unlikely( & ftrace_exports_enabled)则ftrace_exports(event)
2865  __buffer_unlock_commit(buffer, event)
调用者
名称描述
function_trace_call
function_stack_trace_call
irqsoff_tracer_callqsoff uses its own tracer function to keep the overhead down: