Searched refs:BPF_OBJ_NAME_LEN (Results 1 – 5 of 5) sorted by relevance
/tools/bpf/bpftool/ |
D | common.c | 696 (!tag && strncmp(nametag, info.name, BPF_OBJ_NAME_LEN))) { in prog_fd_by_nametag() 761 if (strlen(name) > BPF_OBJ_NAME_LEN - 1) { in prog_parse_fds() 847 if (strncmp(name, info.name, BPF_OBJ_NAME_LEN)) { in map_fd_by_name() 898 if (strlen(name) > BPF_OBJ_NAME_LEN - 1) { in map_parse_fds()
|
/tools/include/uapi/linux/ |
D | bpf.h | 1253 #define BPF_OBJ_NAME_LEN 16U macro 1268 char map_name[BPF_OBJ_NAME_LEN]; 1316 char prog_name[BPF_OBJ_NAME_LEN]; 5575 char name[BPF_OBJ_NAME_LEN]; 5609 char name[BPF_OBJ_NAME_LEN];
|
/tools/lib/bpf/ |
D | bpf.c | 94 min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_create_map_xattr() 177 min(strlen(name), BPF_OBJ_NAME_LEN - 1)); in bpf_create_map_in_map_node() 270 min(strlen(load_attr->name), (size_t)BPF_OBJ_NAME_LEN - 1)); in libbpf__bpf_prog_load()
|
D | gen_loader.c | 397 min((unsigned)strlen(map_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_gen__map_create() 620 min((unsigned)strlen(load_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_gen__prog_load()
|
D | libbpf.c | 436 char name[BPF_OBJ_NAME_LEN]; 1407 char map_name[BPF_OBJ_NAME_LEN], *p; in internal_map_name() 1410 int pfx_len = min((size_t)BPF_OBJ_NAME_LEN - sfx_len - 1, in internal_map_name() 3961 if (name_len == BPF_OBJ_NAME_LEN - 1 && strncmp(map->name, info.name, name_len) == 0) in bpf_map__reuse_fd()
|