Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_return_for_leaf

Proto:static struct ftrace_graph_ret_entry *get_return_for_leaf(struct trace_iterator *iter, struct ftrace_graph_ent_entry *curr)

Type:struct ftrace_graph_ret_entry

Parameter:

TypeParameterName
struct trace_iterator *iter
struct ftrace_graph_ent_entry *curr
423  data = private
424  struct ring_buffer_iter * ring_iter = NULL
432  If data && failed Then
433  curr = Place to preserve last processed entry.
434  next = ret
435  Else
437  ring_iter = trace_buffer_iter(iter, cpu)
440  If ring_iter Then event = g_buffer_iter_peek - peek at the next event to be read*@iter: The ring buffer iterator*@ts: The timestamp counter of this event.* This will return the event that will be read next, but does* not increment the iterator.
442  Else
453  If Not event Then Return NULL
456  next = g_buffer_event_data - return the data of the event*@event: the event to get the data from
458  If data Then
469  If type == TRACE_GRAPH_RET Then ret = next
471  Else type = type
476  If type != TRACE_GRAPH_RET Then Return NULL
479  If pid != pid || Current function != Current function Then Return NULL
484  If ring_iter Then g_buffer_read - read the next item in the ring buffer by the iterator*@iter: The ring buffer iterator*@ts: The time stamp of the event read.* This reads the next event in the ring buffer and increments the iterator.
487  Return next
Caller
NameDescribe
print_graph_entry