Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__buffer_unlock_commit

Proto:static __always_inline void __buffer_unlock_commit(struct ring_buffer *buffer, struct ring_buffer_event *event)

Type:void

Parameter:

TypeParameterName
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  If Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(trace_buffered_event) == event Then
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  Else 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.
Caller
NameDescribe
__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