Home
last modified time | relevance | path

Searched refs:prog_type_str (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/tools/bpf/bpftool/
Dfeature.c551 probe_prog_type(enum bpf_prog_type prog_type, const char *prog_type_str, in probe_prog_type() argument
584 if (strlen(prog_type_str) > maxlen) { in probe_prog_type()
589 sprintf(feat_name, "have_%s_prog_type", prog_type_str); in probe_prog_type()
590 sprintf(define_name, "%s_prog_type", prog_type_str); in probe_prog_type()
592 sprintf(plain_desc, "%s%s", plain_comment, prog_type_str); in probe_prog_type()
724 const char *prog_type_str, bool supported_type, in probe_helpers_for_progtype() argument
742 sprintf(feat_name, "%s_available_helpers", prog_type_str); in probe_helpers_for_progtype()
747 prog_type_str); in probe_helpers_for_progtype()
763 define_prefix, id, prog_type_str, in probe_helpers_for_progtype()
939 const char *prog_type_str; in section_program_types() local
[all …]
Dlink.c158 const char *prog_type_str; in show_link_close_json() local
175 prog_type_str = libbpf_bpf_prog_type_str(prog_info.type); in show_link_close_json()
177 if (prog_type_str) in show_link_close_json()
178 jsonw_string_field(json_wtr, "prog_type", prog_type_str); in show_link_close_json()
270 const char *prog_type_str; in show_link_close_plain() local
285 prog_type_str = libbpf_bpf_prog_type_str(prog_info.type); in show_link_close_plain()
287 if (prog_type_str) in show_link_close_plain()
288 printf("\n\tprog_type %s ", prog_type_str); in show_link_close_plain()
Dmap.c489 const char *prog_type_str; in show_map_close_json() local
491 prog_type_str = libbpf_bpf_prog_type_str(prog_type); in show_map_close_json()
492 if (prog_type_str) in show_map_close_json()
494 prog_type_str); in show_map_close_json()
579 const char *prog_type_str; in show_map_close_plain() local
581 prog_type_str = libbpf_bpf_prog_type_str(prog_type); in show_map_close_plain()
582 if (prog_type_str) in show_map_close_plain()
583 printf("owner_prog_type %s ", prog_type_str); in show_map_close_plain()
Dprog.c413 const char *prog_type_str; in print_prog_header_json() local
417 prog_type_str = libbpf_bpf_prog_type_str(info->type); in print_prog_header_json()
419 if (prog_type_str) in print_prog_header_json()
420 jsonw_string_field(json_wtr, "type", prog_type_str); in print_prog_header_json()
502 const char *prog_type_str; in print_prog_header_plain() local
506 prog_type_str = libbpf_bpf_prog_type_str(info->type); in print_prog_header_plain()
507 if (prog_type_str) in print_prog_header_plain()
508 printf("%s ", prog_type_str); in print_prog_header_plain()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c174 const char *prog_type_str; in test_libbpf_bpf_prog_type_str() local
178 prog_type_str = libbpf_bpf_prog_type_str(prog_type); in test_libbpf_bpf_prog_type_str()
179 ASSERT_OK_PTR(prog_type_str, prog_type_name); in test_libbpf_bpf_prog_type_str()
181 snprintf(buf, sizeof(buf), "BPF_PROG_TYPE_%s", prog_type_str); in test_libbpf_bpf_prog_type_str()