Lines Matching refs:sec_name
101 static bool get_datasec_ident(const char *sec_name, char *buf, size_t buf_sz) in get_datasec_ident() argument
109 if (str_has_prefix(sec_name, pfx)) { in get_datasec_ident()
110 snprintf(buf, buf_sz, "%s", sec_name + 1); in get_datasec_ident()
130 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() local
136 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_datasec_def()
139 if (strcmp(sec_name, ".kconfig") != 0) in codegen_datasec_def()
160 sec_name, i, need_off, off); in codegen_datasec_def()
304 const char *sec_name, *var_name; in codegen_subskel_datasecs() local
320 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs()
321 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_subskel_datasecs()
324 strip_mods = strcmp(sec_name, ".kconfig") != 0; in codegen_subskel_datasecs()
2085 const char *sec_name = btf__name_by_offset(btf, sec->sec_name_off); in btfgen_record_obj() local
2101 err = bpf_core_calc_relo_insn(sec_name, relo, relo_idx, btf, cands, in btfgen_record_obj()