函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__buffer_unlock_commit

函数原型:static __always_inline void __buffer_unlock_commit(struct ring_buffer *buffer, struct ring_buffer_event *event)

返回类型:void

参数:

类型参数名称
struct ring_buffer *buffer
struct ring_buffer_event *event
830  __this_cpu_write(To prevent the comm cache from being overwritten when no* tracing is active, only save the comm when a trace event* occurred., true)
833  如果Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(trace_buffered_event)恒等于event
835  g_buffer_write - write data to the buffer without reserving*@buffer: The ring buffer to write to
837  this_cpu_dec(trace_buffered_event_cnt)
838  否则g_buffer_unlock_commit - commit a reserved*@buffer: The buffer to commit to*@event: The event pointer to commit.* This commits the data to the ring buffer, and releases any locks held.* Must be paired with ring_buffer_lock_reserve.
调用者
名称描述
__trace_puts__trace_puts - write a constant string into the trace buffer.*@ip: The address of the caller*@str: The constant string to write*@size: The size of the string.
__trace_bputs__trace_bputs - write the pointer to a constant string into trace buffer*@ip: The address of the caller*@str: The constant string to write to the buffer to
trace_buffer_unlock_commit_regs
trace_buffer_unlock_commit_nostackSimilar to trace_buffer_unlock_commit_regs() but do not dump stack.
trace_function
__ftrace_trace_stack
trace_vbprintkrace_vbprintk - write binary msg to tracing buffer*@ip: The address of the caller*@fmt: The string format to write to the buffer*@args: Arguments for @fmt
__trace_array_vprintk
tracing_mark_write
tracing_mark_raw_write