Lines Matching refs:sec_name
118 static bool get_datasec_ident(const char *sec_name, char *buf, size_t buf_sz) in get_datasec_ident() argument
124 if (strcmp(sec_name, ".addr_space.1") == 0) { in get_datasec_ident()
132 if (str_has_prefix(sec_name, pfx)) { in get_datasec_ident()
133 snprintf(buf, buf_sz, "%s", sec_name + 1); in get_datasec_ident()
153 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() local
159 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_datasec_def()
162 if (strcmp(sec_name, ".kconfig") != 0) in codegen_datasec_def()
183 sec_name, i, need_off, off); in codegen_datasec_def()
334 const char *sec_name, *var_name; in codegen_subskel_datasecs() local
350 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs()
351 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_subskel_datasecs()
354 strip_mods = strcmp(sec_name, ".kconfig") != 0; in codegen_subskel_datasecs()
2388 const char *sec_name = btf__name_by_offset(btf, sec->sec_name_off); in btfgen_record_obj() local
2404 err = bpf_core_calc_relo_insn(sec_name, relo, relo_idx, btf, cands, in btfgen_record_obj()