Defined in 1 files as a function:
Referenced in 28 files:
- arch/powerpc/kernel/process.c, line 1419
- arch/powerpc/kernel/security.c
- arch/powerpc/platforms/pseries/papr_scm.c
- block/partitions/core.c, line 132
- drivers/android/tests/binder_alloc_kunit.c, line 381
- drivers/clk/tegra/clk-bpmp.c, line 390
- drivers/hid/usbhid/hid-core.c, line 1403
- drivers/hid/usbhid/usbkbd.c, line 298
- drivers/hid/usbhid/usbmouse.c, line 146
- drivers/input/joystick/analog.c, line 341
- drivers/input/serio/i8042-acpipnpio.h, line 1485
- drivers/pci/p2pdma.c, line 719
- fs/resctrl/rdtgroup.c, line 4806
- include/linux/trace_seq.h, line 33
- kernel/panic.c, line 907
- kernel/rcu/refscale.c, line 1366
- kernel/sched/core.c, line 8093
- kernel/sched/ext/ext.c
- kernel/trace/trace_dynevent.c, line 431
- kernel/trace/trace_events_hist.c
- kernel/trace/trace_events_synth.c
- lib/alloc_tag.c, line 125
- lib/kunit/string-stream.c, line 130
- lib/tests/seq_buf_kunit.c, line 16
- mm/alloc_tag.c, line 136
- mm/memcontrol.c
- security/selinux/ima.c, line 53
- tools/testing/nvdimm/test/ndtest.c, line 676
Smatch caller information:
kernel/rcu/refscale.c process_durations() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1107221001693487104 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 864 |
| BUF_SIZE | 1 | buf | 864 |
| BUF_SIZE | 1 | buf | 864 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| NOCHECK_CALL |
kernel/panic.c _print_tainted() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 3086245427015393280 |
| PARAM_VALUE | 2 | size | 1-1010102 |
| BUF_SIZE | 1 | buf | 350 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c mem_cgroup_print_oom_meminfo() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 3503798228575346688 |
| PARAM_VALUE | 1 | buf | 5966675480474316800 |
| PARAM_VALUE | 2 | size | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &oom_lock |
mm/memcontrol.c memory_stat_show() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 5360496957691879424 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/firewire/core-trace.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock |
kernel/trace/trace_output.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
drivers/android/tests/binder_alloc_kunit.c gen_buf_offsets() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 3335009613733273696 |
| PARAM_VALUE | 0 | s->buffer | 0 |
| PARAM_VALUE | 0 | s->len | 0 |
| PARAM_VALUE | 0 | s->size | 0 |
| PARAM_VALUE | 2 | size | 91 |
| BUF_SIZE | 1 | buf | 91 |
| BIT_INFO | 1 | buf | 0x0,0x0 |
| NOCHECK_CALL |
kernel/trace/power-traces.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock |
kernel/trace/trace_events_filter.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | _T->lock |
kernel/trace/trace_events_hist.c create_field_var_hist() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 7209113189316698112 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 256 |
| BUF_SIZE | 1 | buf | 256 |
| BUF_SIZE | 1 | buf | 256 |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
kernel/trace/trace_events_hist.c expr_str() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4897505821431169024 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 256 |
| BUF_SIZE | 1 | buf | 256 |
| BUF_SIZE | 1 | buf | 256 |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/trace/trace_events_hist.c find_synthetic_field_var() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 5065834095398940672 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 256 |
| BUF_SIZE | 1 | buf | 256 |
| BUF_SIZE | 1 | buf | 256 |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
drivers/pci/p2pdma.c calc_map_type_and_dist() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 336045717069578240 |
| PARAM_VALUE | 1 | buf | 671182114919051264 |
| PARAM_VALUE | 2 | size | 128 |
| BUF_SIZE | 1 | buf | 128 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
fs/resctrl/rdtgroup.c resctrl_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 3687974728692822016 |
| PARAM_VALUE | 1 | buf | 7827951751753613312 |
| PARAM_VALUE | 2 | size | 512 |
| BUF_SIZE | 1 | buf | 512 |
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
kernel/trace/trace_events_synth.c parse_synth_field() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 8125206313132281856 |
| PARAM_VALUE | 1 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 2 | size | 0-4000000 |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| BYTE_COUNT | 1 | ==buf2 | 8050 |
| LOCK2 | global &event_mutex | ||
| HALF_LOCKED2 | global &dyn_event_ops_mutex |
kernel/trace/trace_events_synth.c parse_synth_field() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 8125206313132281856 |
| PARAM_VALUE | 0 | s->buffer | 4096-ptr_max |
| PARAM_VALUE | 0 | s->size | 0-4000000 |
| PARAM_VALUE | 1 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 2 | size | 0-4000000 |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| TERMINATED | 0 | s->buffer | 1 |
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
| LOCK2 | global &event_mutex | ||
| HALF_LOCKED2 | global &dyn_event_ops_mutex |
kernel/trace/trace_remote.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | _T->lock |
block/partitions/core.c check_partition() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &disk->open_mutex | ||
| HALF_LOCKED2 | &hd->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
kernel/trace/trace_recursion_record.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | global &recursed_function_lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/trace/trace.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &iter->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &all_cpu_access_lock | ||
| HALF_LOCKED2 | global &trace_event_sem | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock |
drivers/input/joystick/analog.c analog_name() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4591522588600877056 |
| PARAM_VALUE | 2 | size | 128 |
| BUF_SIZE | 1 | buf | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &gameport_mutex |
drivers/hid/usbhid/hid-core.c usbhid_probe() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1804826638345322496 |
| PARAM_VALUE | 2 | size | 128 |
| BUF_SIZE | 1 | buf | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
net/tipc/trace.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock |
security/selinux/ima.c selinux_ima_collect_state() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 5072802559627210752 |
| PARAM_VALUE | 1 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 2 | size | 0-4000000 |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | buf | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| BYTE_COUNT | 1 | ==buf2 | 8050 |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
samples/trace_events/trace-events-sample.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock |
kernel/trace/trace_dynevent.c dynevent_cmd_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 12332751505821696,197226990950920192,1012535740145287168,1220874740983013376,2404632739837820928,3033727847088775168,3979185032077746176 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 256,2048 |
| BUF_SIZE | 1 | buf | 256,2048 |
| BUF_SIZE | 1 | buf | 256,2048 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | size | $2 |
| MEM_ZERO | 0 | s | |
| NOCHECK_CALL |
kernel/trace/ftrace.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 8884223723105214464 |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/trace/trace_events.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |
lib/tests/seq_buf_kunit.c seq_buf_init_test() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 8145574296148705280 |
| PARAM_VALUE | 1 | buf | 3453510255928188928 |
| PARAM_VALUE | 2 | size | 32 |
| BUF_SIZE | 1 | buf | 32 |
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
drivers/input/serio/i8042.c i8042_pnp_id_to_string() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 801395774540148736 |
| PARAM_VALUE | 1 | buf | 3719692744757698560,5668329302092423168 |
| PARAM_VALUE | 2 | size | 128 |
| BUF_SIZE | 1 | buf | 128 |
| BUF_SIZE | 1 | buf | 128 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | size | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
kernel/sched/core.c preempt_model_str() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 7417164243146493952 |
| PARAM_VALUE | 1 | buf | 6582131622907822080 |
| PARAM_VALUE | 2 | size | 128 |
| BUF_SIZE | 1 | buf | 128 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
lib/kunit/string-stream.c string_stream_get_string() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 8685055887102013440 |
| PARAM_VALUE | 1 | buf | 16,4096-ptr_max |
| PARAM_VALUE | 2 | size | 0-4000000 |
| BUF_SIZE | 1 | buf | 0-u64max |
| DATA_SOURCE | 1 | buf | r _kzalloc_noprof |
| NOCHECK_CALL |
kernel/trace/trace_seq.c trace_seq_init() -> seq_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | size | 8156 |
| BUF_SIZE | 1 | buf | 8156 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | size | unit_byte |