函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_return_for_leaf

函数原型:static struct ftrace_graph_ret_entry *get_return_for_leaf(struct trace_iterator *iter, struct ftrace_graph_ent_entry *curr)

返回类型:struct ftrace_graph_ret_entry

参数:

类型参数名称
struct trace_iterator *iter
struct ftrace_graph_ent_entry *curr
423  data等于private
424  struct ring_buffer_iter * ring_iter = NULL
432  如果datafailed
433  curr等于 Place to preserve last processed entry.
434  next等于ret
435  否则
437  ring_iter等于trace_buffer_iter(iter, cpu)
440  如果ring_iterevent等于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  否则
453  如果非event则返回:NULL
456  next等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
458  如果data
469  如果type恒等于TRACE_GRAPH_RETret等于next
471  否则type等于type
476  如果type不等于TRACE_GRAPH_RET则返回:NULL
479  如果pid不等于pidCurrent function 不等于Current function 则返回:NULL
484  如果ring_iterg_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  返回:next
调用者
名称描述
print_graph_entry