Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_function

Proto:void trace_function(struct trace_array *tr, unsigned long ip, unsigned long parent_ip, unsigned long flags, int pc)

Type:void

Parameter:

TypeParameterName
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, size of entry , flags, pc)
2856  If Not event Then Return
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  If Not call_filter_check_discard(call, entry, buffer, event) Then
2863  If static_branch_unlikely( & ftrace_exports_enabled) Then ftrace_exports(event)
2865  __buffer_unlock_commit(buffer, event)
Caller
NameDescribe
function_trace_call
function_stack_trace_call
irqsoff_tracer_callqsoff uses its own tracer function to keep the overhead down: