Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

kernel/bpf/stream.c bpf_stream_vprintk() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 3 num_args 0-12
PARAM_VALUE 4 data 2153784047559315456
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 1
PARAM_VALUE 4 data->get_buf 1
DATA_SOURCE 0 fmt $1
DATA_SOURCE 2 raw_args $2
STR_LEN 0 fmt 0-18446744073709551613

kernel/bpf/verifier.c check_bpf_snprintf_call() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 0 fmt 4096-ptr_max
PARAM_VALUE 1 fmt_size u32max
PARAM_VALUE 2 raw_args 0
PARAM_VALUE 4 data 5429485298297020416
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 0
PARAM_VALUE 4 data->get_buf 0
UNITS 0 fmt unit_byte

kernel/trace/bpf_trace.c ____bpf_seq_printf() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 3 num_args 0-12
PARAM_VALUE 4 data 7592659938421100544
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 1
PARAM_VALUE 4 data->get_buf 0
DATA_SOURCE 0 fmt $1
DATA_SOURCE 1 fmt_size $2
DATA_SOURCE 2 raw_args $3

kernel/trace/bpf_trace.c ____bpf_trace_printk() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 2 raw_args 4096-ptr_max
PARAM_VALUE 3 num_args 3
PARAM_VALUE 4 data 6215029853955776512
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 1
PARAM_VALUE 4 data->get_buf 1
BUF_SIZE 2 raw_args 24
DATA_SOURCE 0 fmt $0
DATA_SOURCE 1 fmt_size $1

kernel/trace/bpf_trace.c ____bpf_trace_vprintk() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 3 num_args 0-12
PARAM_VALUE 4 data 5769927407986282496
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 1
PARAM_VALUE 4 data->get_buf 1
DATA_SOURCE 0 fmt $0
DATA_SOURCE 1 fmt_size $1
DATA_SOURCE 2 raw_args $2

kernel/bpf/helpers.c ____bpf_snprintf() -> bpf_bprintf_prepare()

Type Parameter Key Value
PARAM_VALUE 1 fmt_size u32max
PARAM_VALUE 3 num_args 0-12
PARAM_VALUE 4 data 8712268586059083776
PARAM_VALUE 4 data->bin_args 0
PARAM_VALUE 4 data->buf 0
PARAM_VALUE 4 data->get_bin_args 1
PARAM_VALUE 4 data->get_buf 0
DATA_SOURCE 0 fmt $2
DATA_SOURCE 2 raw_args $3