Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/trace/ftrace.c __ftrace_match_addr() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 4096-ptr_max |
| PARAM_VALUE | 0 | hash->buckets | 16,4096-ptr_max |
| PARAM_VALUE | 0 | hash->size_bits | 10 |
| PARAM_VALUE | 1 | ip | 1-u64max |
| BUF_SIZE | 0 | hash | 48 |
| DATA_SOURCE | 0 | hash | $0 |
| DATA_SOURCE | 1 | ip | r ftrace_location |
| NOSPEC | 1 | ip | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ip | 1-u64max |
| LOCK2 | &ops->func_hash->regex_lock | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct ftrace_ops_hash)->regex_lock |
kernel/trace/ftrace.c append_hash() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 4096-ptr_max |
| PARAM_VALUE | 0 | hash->size_bits | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | hash | (-1),48 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | ip | unit_byte |
| HALF_LOCKED2 | _T->lock |
kernel/trace/ftrace.c enter_record() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 0,4096-ptr_max |
| BUF_SIZE | 0 | hash | (-1),48 |
| BUF_SIZE | 0 | hash | (-1),48 |
| DATA_SOURCE | 0 | hash | $0 |
| STR_LEN | 0 | hash | (-1)-1010101 |
| STR_LEN | 0 | hash | (-1)-1010101 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | ip | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &ops->func_hash->regex_lock | ||
| HALF_LOCKED2 | global &trace_types_lock |
kernel/trace/ftrace.c ftrace_graph_set_hash() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 0,4096-ptr_max |
| BUF_SIZE | 0 | hash | (-1),48 |
| BUF_SIZE | 0 | hash | (-1),48 |
| DATA_SOURCE | 0 | hash | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | ip | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | global &parser_lock | ||
| HALF_LOCKED2 | irq |
kernel/trace/ftrace.c intersect_hash() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 4096-ptr_max |
| CAPPED_DATA | 1 | ip | 1 |
| CAPPED_DATA | 1 | ip | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | ip | unit_byte |
| HALF_LOCKED2 | _T->lock |
kernel/trace/ftrace.c register_ftrace_direct() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 4096-ptr_max |
| PARAM_VALUE | 0 | hash->buckets | 16,4096-ptr_max |
| PARAM_VALUE | 0 | hash->size_bits | 0-12 |
| BUF_SIZE | 0 | hash | 48 |
| CAPPED_DATA | 0 | hash->size_bits | 1 |
| DATA_SOURCE | 0 | hash | r alloc_ftrace_hash |
| UNITS | 1 | ip | unit_byte |
| LOCK2 | global &direct_mutex |
kernel/trace/ftrace.c register_ftrace_direct() -> add_hash_entry()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hash | 4096-ptr_max |
| PARAM_VALUE | 0 | hash->buckets | 16,4096-ptr_max |
| PARAM_VALUE | 0 | hash->size_bits | 0-12 |
| BUF_SIZE | 0 | hash | 48 |
| CAPPED_DATA | 0 | hash->size_bits | 1 |
| DATA_SOURCE | 0 | hash | r alloc_ftrace_hash |
| UNITS | 1 | ip | unit_byte |
| LOCK2 | global &direct_mutex |