Lines Matching defs:section_defs
8322 static const struct bpf_sec_def section_defs[] = {
8475 int i, n = ARRAY_SIZE(section_defs);
8479 section_defs[i].sec, section_defs[i].len))
8481 return §ion_defs[i];
8488 int i, len = ARRAY_SIZE(section_defs) * MAX_TYPE_NAME_SIZE;
8497 for (i = 0; i < ARRAY_SIZE(section_defs); i++) {
8498 if (attach_type && !section_defs[i].is_attachable)
8501 if (strlen(buf) + strlen(section_defs[i].sec) + 2 > len) {
8506 strcat(buf, section_defs[i].sec);
8777 for (i = 0; i < ARRAY_SIZE(section_defs); i++) {
8778 if (!section_defs[i].is_attach_btf)
8780 if (strncmp(name, section_defs[i].sec, section_defs[i].len))
8783 err = libbpf_find_prog_btf_id(name + section_defs[i].len,
8787 name + section_defs[i].len,
8804 for (i = 0; i < ARRAY_SIZE(section_defs); i++) {
8805 if (strncmp(name, section_defs[i].sec, section_defs[i].len))
8807 if (!section_defs[i].is_attachable)
8809 *attach_type = section_defs[i].expected_attach_type;