Home
last modified time | relevance | path

Searched refs:name_off (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/tools/objtool/
Dwarn.h22 unsigned long name_off; in offstr() local
27 name_off = offset - func->offset; in offstr()
30 name_off = offset; in offstr()
36 sprintf(str, "%s()+0x%lx", name, name_off); in offstr()
38 sprintf(str, "%s+0x%lx", name, name_off); in offstr()
/Linux-v5.4/include/uapi/linux/
Dbtf.h32 __u32 name_off; member
99 __u32 name_off; member
116 __u32 name_off; member
139 __u32 name_off; member
/Linux-v5.4/tools/include/uapi/linux/
Dbtf.h32 __u32 name_off; member
99 __u32 name_off; member
116 __u32 name_off; member
139 __u32 name_off; member
/Linux-v5.4/tools/lib/bpf/
Dbtf_dump.c105 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument
107 return btf__name_by_offset(d->btf, name_off); in btf_name_of()
429 if (btf_is_composite(t) && through_ptr && t->name_off != 0) in btf_dump_order_type()
456 if (through_ptr && t->name_off != 0) in btf_dump_order_type()
468 if (t->name_off != 0) { in btf_dump_order_type()
484 if (t->name_off != 0 || !tstate->referenced) { in btf_dump_order_type()
589 if (t->name_off == 0) in btf_dump_is_blacklisted()
591 return strcmp(btf_name_of(d, t->name_off), "__builtin_va_list") == 0; in btf_dump_is_blacklisted()
638 if (t->name_off == 0) { in btf_dump_emit_type()
717 if (top_level_def || t->name_off == 0) { in btf_dump_emit_type()
[all …]
Dbtf.c311 const char *name = btf__name_by_offset(btf, t->name_off); in btf__find_by_name()
510 const char *name = btf__name_by_offset(btf, t->name_off); in btf_fixup_datasec()
541 name = btf__name_by_offset(btf, t_var->name_off); in btf_fixup_datasec()
1459 r = fn(&t->name_off, ctx); in btf_for_each_str_off()
1470 r = fn(&m->name_off, ctx); in btf_for_each_str_off()
1482 r = fn(&m->name_off, ctx); in btf_for_each_str_off()
1494 r = fn(&m->name_off, ctx); in btf_for_each_str_off()
1729 h = hash_combine(0, t->name_off); in btf_hash_common()
1737 return t1->name_off == t2->name_off && in btf_equal_common()
1771 h = hash_combine(0, t->name_off); in btf_hash_enum()
[all …]
Dlibbpf.c1046 const char *name = btf__name_by_offset(btf, m->name_off); in get_map_field_int()
1088 map_name = btf__name_by_offset(obj->btf, var->name_off); in bpf_object__init_user_btf_map()
1140 const char *name = btf__name_by_offset(obj->btf, m->name_off); in bpf_object__init_user_btf_map()
1296 name = btf__name_by_offset(obj->btf, t->name_off); in bpf_object__init_user_btf_maps()
1393 name = (char *)btf__name_by_offset(btf, t->name_off); in bpf_object__sanitize_btf()
1408 m->name_off = vt->name_off; in bpf_object__sanitize_btf()
2427 if (m->name_off) { in bpf_core_spec_parse()
2428 name = btf__name_by_offset(btf, m->name_off); in bpf_core_spec_parse()
2515 local_name = btf__name_by_offset(local_btf, t->name_off); in bpf_core_find_cands()
2527 targ_name = btf__name_by_offset(targ_btf, t->name_off); in bpf_core_find_cands()
[all …]
/Linux-v5.4/tools/bpf/bpftool/
Dbtf_dumper.c292 jsonw_name(d->jw, btf__name_by_offset(d->btf, m[i].name_off)); in btf_dumper_struct()
319 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var()
341 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec()
439 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
443 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
447 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
451 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
465 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
496 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
500 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
[all …]
Dbtf.c97 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type()
100 btf_str(btf, t->name_off)); in dump_btf_type()
160 const char *name = btf_str(btf, m->name_off); in dump_btf_type()
206 const char *name = btf_str(btf, v->name_off); in dump_btf_type()
251 const char *name = btf_str(btf, p->name_off); in dump_btf_type()
/Linux-v5.4/kernel/bpf/
Dbtf.c170 #define BTF_STR_OFFSET_VALID(name_off) ((name_off) <= BTF_MAX_NAME_OFFSET) argument
704 __btf_name_by_offset(btf, t->name_off), in __btf_verifier_log_type()
750 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
756 __btf_name_by_offset(btf, member->name_off), in btf_verifier_log_member()
1588 if (!t->name_off || in btf_ref_type_check_meta()
1589 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_ref_type_check_meta()
1594 if (t->name_off) { in btf_ref_type_check_meta()
1816 if (!t->name_off || in btf_fwd_check_meta()
1817 !btf_name_valid_identifier(env->btf, t->name_off)) { in btf_fwd_check_meta()
1886 if (t->name_off) { in btf_array_check_meta()
[all …]
Dcore.c564 func_name = btf_name_by_offset(prog->aux->btf, type->name_off); in bpf_get_prog_name()
/Linux-v5.4/Documentation/bpf/
Dbtf.rst94 __u32 name_off;
118 ``name_off`` in ``struct btf_type`` specifies the offset in the string table.
125 * ``name_off``: any valid offset
177 * ``name_off``: 0
189 * ``name_off``: 0
234 * ``name_off``: 0 or offset to a valid C identifier
243 __u32 name_off;
249 * ``name_off``: offset to a valid C identifier
280 * ``name_off``: 0 or offset to a valid C identifier
289 __u32 name_off;
[all …]
/Linux-v5.4/fs/btrfs/
Dbackref.h47 u32 name_len, unsigned long name_off,
Dbackref.c1613 u32 name_len, unsigned long name_off, argument
1634 name_off, name_len);
1666 name_off = (unsigned long)(iref + 1);
1995 typedef int (iterate_irefs_t)(u64 parent, u32 name_len, unsigned long name_off,
2147 static int inode_to_path(u64 inum, u32 name_len, unsigned long name_off, argument
2162 name_off, eb, inum, fspath_min, bytes_left);
Dsend.c900 unsigned long name_off; in iterate_inode_ref() local
933 name_off = (unsigned long)(iref + 1); in iterate_inode_ref()
939 name_off = (unsigned long)&extref->name; in iterate_inode_ref()
946 name_off, eb, dir, in iterate_inode_ref()
959 name_len, name_off, in iterate_inode_ref()
970 ret = fs_path_add_from_extent_buffer(p, eb, name_off, in iterate_inode_ref()
/Linux-v5.4/tools/perf/util/
Dbpf-event.c134 short_name = btf__name_by_offset(btf, t->name_off); in synthesize_bpf_prog_name()
Dsymbol-elf.c2174 size_t name_off, desc_off, offset; in construct_sdt_notes_list() local
2201 for (offset = 0; (next = gelf_getnote(data, offset, &nhdr, &name_off, in construct_sdt_notes_list()
2204 !memcmp(data->d_buf + name_off, SDT_NOTE_NAME, in construct_sdt_notes_list()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf.c4254 fname = btf__name_by_offset(btf, t->name_off); in do_test_file()