Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

kernel/trace/trace_events.c function_test_events_call() -> trace_event_buffer_lock_reserve()

Type Parameter Key Value
PARAM_VALUE 0 current_rb 112420082631118848
PARAM_VALUE 1 trace_file 4643662663543836672
PARAM_VALUE 2 type 1
PARAM_VALUE 3 len 24
PARAM_VALUE 4 trace_ctx 0-16777215
DATA_SOURCE 4 trace_ctx r tracing_gen_ctx
PREEMPT_ADD <- disables preempt
UNITS 3 len unit_byte

kernel/trace/trace_events.c trace_event_buffer_reserve() -> trace_event_buffer_lock_reserve()

Type Parameter Key Value
PARAM_VALUE 0 current_rb 4096-ptr_max
PARAM_VALUE 1 trace_file 4096-ptr_max
PARAM_VALUE 1 trace_file->event_call 4096-ptr_max
PARAM_VALUE 4 trace_ctx 0-16777214
BUF_SIZE 1 trace_file s32min-(-1),1-s32max
BUF_SIZE 1 trace_file s32min-(-1),1-s32max
DATA_SOURCE 1 trace_file $1
DATA_SOURCE 3 len $2
DATA_SOURCE 4 trace_ctx r tracing_gen_ctx_dec
STR_LEN 0 current_rb (-1),8
STR_LEN 1 trace_file (-1),8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 3 len unit_byte
HALF_LOCKED2 &ucb->mutex
HALF_LOCKED2 global &event_mutex
HALF_LOCKED2 rcu_read