Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_resize_ring_buffer

Proto:static ssize_t tracing_resize_ring_buffer(struct trace_array *tr, unsigned long size, int cpu_id)

Type:ssize_t

Parameter:

TypeParameterName
struct trace_array *tr
unsigned longsize
intcpu_id
5648  ret = size
5650  mutex_lock( & race_types_lock is used to protect the trace_types list.)
5652  If cpu_id != RING_BUFFER_ALL_CPUS Then
5655  ret = -EINVAL
5656  Go to out
5660  ret = __tracing_resize_ring_buffer(tr, size, cpu_id)
5661  If ret < 0 Then ret = -ENOMEM
5664  out :
5665  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
5667  Return ret
Caller
NameDescribe
tracing_entries_write
tracing_free_buffer_release