Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_event_perf.c Create Date:2022-07-28 12:23:31
Last Modify:2020-03-17 20:20:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_ftrace_function_call

Proto:static void perf_ftrace_function_call(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct pt_regs *pt_regs)

Type:void

Parameter:

TypeParameterName
unsigned longip
unsigned longparent_ip
struct ftrace_ops *ops
struct pt_regs *pt_regs
443  If private != smp_processor_id() Then Return
446  event = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ops, structperf_event, ftrace_ops)
454  first = hlist_entry
459  BUILD_BUG_ON - break compile if a condition is true(@event->hlist entry is NULL (per INIT_HLIST_NODE), and all* the perf code does is hlist_for_each_entry_rcu(), so we can* get away with simply setting the @head.first pointer in order* to create a singular list. > PERF_MAX_TRACE_SIZE)
461  memset( & regs, 0, size of regs )
462  perf_fetch_caller_regs( & regs)
464  entry = perf_trace_buf_alloc(@event->hlist entry is NULL (per INIT_HLIST_NODE), and all* the perf code does is hlist_for_each_entry_rcu(), so we can* get away with simply setting the @head.first pointer in order* to create a singular list., NULL, & rctx)
465  If Not entry Then Return
468  ip = ip
469  parent_ip = parent_ip
470  perf_trace_buf_submit(entry, @event->hlist entry is NULL (per INIT_HLIST_NODE), and all* the perf code does is hlist_for_each_entry_rcu(), so we can* get away with simply setting the @head.first pointer in order* to create a singular list., rctx, TRACE_FN, 1, & regs, & head, NULL)