Defined in 2 files as a function:
Referenced in 11 files:
- tools/bpf/bpftool/btf.c, line 681
- tools/lib/bpf/btf.c, line 2777
- tools/lib/bpf/btf.h, line 569
- tools/lib/bpf/btf_dump.c
- tools/lib/bpf/libbpf.c
- tools/lib/bpf/relo_core.c
- tools/perf/builtin-trace.c
- tools/sched_ext/include/scx/compat.h, line 42
- tools/testing/selftests/bpf/prog_tests/core_reloc.c, line 462
- tools/testing/selftests/bpf/test_progs.c, line 1272
- tools/testing/selftests/bpf/veristat.c
Smatch caller information:
kernel/bpf/relo_core.c bpf_core_calc_enumval_relo() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | t | r btf_type_by_id |
| HALF_LOCKED2 | global &cand_cache_mutex |
kernel/bpf/relo_core.c bpf_core_enums_match() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | t | 4096-ptr_max |
| CAPPED_DATA | 0 | t->size | 1 |
| DATA_SOURCE | 0 | t | $1 |
kernel/bpf/relo_core.c bpf_core_enums_match() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | t | 4096-ptr_max |
| CAPPED_DATA | 0 | t->size | 1 |
| DATA_SOURCE | 0 | t | $3 |
kernel/bpf/relo_core.c bpf_core_format_spec() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | t | 4096-ptr_max |
| DATA_SOURCE | 0 | t | r skip_mods_and_typedefs |
| HALF_LOCKED2 | global &cand_cache_mutex |
kernel/bpf/relo_core.c bpf_core_parse_spec() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | t | 4096-ptr_max |
| DATA_SOURCE | 0 | t | r skip_mods_and_typedefs |
| HALF_LOCKED2 | global &cand_cache_mutex |
kernel/bpf/relo_core.c bpf_core_spec_match() -> btf_is_enum()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | t | 4096-ptr_max |
| DATA_SOURCE | 0 | t | r skip_mods_and_typedefs |
| HALF_LOCKED2 | global &cand_cache_mutex |