| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_map.sh | |
| H A D | flow_dissector_load.h | 12 const char *map_name, in bpf_flow_load() argument 35 prog_array = bpf_object__find_map_by_name(*obj, map_name); in bpf_flow_load()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_obj_pinning.c | 43 const char *map_name = "fsmount_map"; in bpf_obj_pinning_detached() local 75 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, map_name, 4, 4, 1, NULL); in bpf_obj_pinning_detached() 82 err = bpf_obj_pin_opts(map_fd, map_name, &pin_opts); in bpf_obj_pinning_detached() 89 map_fd2 = bpf_obj_get_opts(map_name, &get_opts); in bpf_obj_pinning_detached() 123 static void validate_pin(int map_fd, const char *map_name, int src_value, in validate_pin() argument 131 snprintf(abs_path, sizeof(abs_path), "/sys/fs/bpf/%s", map_name); in validate_pin() 143 pin_path = map_name; in validate_pin() 150 pin_path = map_name; in validate_pin() 183 static void validate_get(int map_fd, const char *map_name, int src_value, in validate_get() argument 191 snprintf(abs_path, sizeof(abs_path), "/sys/fs/bpf/%s", map_name); in validate_get() [all …]
|
| H A D | btf.c | 63 const char *map_name; member 135 .map_name = "struct_test1_map", 190 .map_name = "struct_test2_map", 215 .map_name = "struct_test3_map", 256 .map_name = "struct_test1_map", 301 .map_name = ".bss", 323 .map_name = ".bss", 345 .map_name = ".bss", 367 .map_name = ".bss", 392 .map_name = ".bss", [all …]
|
| H A D | global_func_args.c | 10 const char *map_name = "values"; in test_global_func_args0() local 12 map_fd = bpf_find_map(__func__, obj, map_name); in test_global_func_args0() 14 map_name, strerror(errno))) in test_global_func_args0()
|
| H A D | obj_name.c | 51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name() 52 name_len : sizeof(attr.map_name); in test_obj_name() 59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
|
| H A D | pinning_htab.c | 6 static void unpin_map(const char *map_name, const char *pin_path) in unpin_map() argument 16 map = bpf_object__find_map_by_name(skel->obj, map_name); in unpin_map()
|
| H A D | verifier.c | 301 static int init_test_val_map(struct bpf_object *obj, char *map_name) in init_test_val_map() argument 310 map = bpf_object__find_map_by_name(obj, map_name); in init_test_val_map() 312 PRINT_FAIL("Can't find map '%s'\n", map_name); in init_test_val_map() 318 PRINT_FAIL("Error while updating map '%s': %d\n", map_name, err); in init_test_val_map()
|
| H A D | sockmap_listen.c | 1313 const char *family_name, *map_name, *sotype_name; in test_ops() local 1319 map_name = map_type_str(map); in test_ops() 1324 snprintf(s, sizeof(s), "%s %s %s %s", map_name, family_name, in test_ops() 1354 const char *family_name, *map_name; in test_redir() local 1359 map_name = map_type_str(map); in test_redir() 1362 snprintf(s, sizeof(s), "%s %s %s", map_name, family_name, in test_redir() 1386 const char *family_name, *map_name, *sotype_name; in test_reuseport() local 1391 map_name = map_type_str(map); in test_reuseport() 1399 snprintf(s, sizeof(s), "%s %s %s %s", map_name, family_name, in test_reuseport()
|
| H A D | task_local_storage.c | 464 static void test_uptr_map_failure(const char *map_name, int expected_errno) in test_uptr_map_failure() 476 map = bpf_object__find_map_by_name(skel->obj, map_name); in test_uptr_map_failure() 486 map_fd = bpf_map_create(bpf_map__type(map), map_name, in test_uptr_map_failure() 457 test_uptr_map_failure(const char * map_name,int expected_errno) test_uptr_map_failure() argument
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | map_in_map_batch_ops.c | 36 char map_name[16]; in create_inner_maps() local 39 memset(map_name, 0, sizeof(map_name)); in create_inner_maps() 40 snprintf(map_name, sizeof(map_name), "inner_map_fd_%d", map_index); in create_inner_maps() 41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), in create_inner_maps() 46 map_type, map_name, strerror(errno)); in create_inner_maps() 62 map_type, map_name, strerror(errno)); in create_inner_maps()
|
| /linux/tools/lib/bpf/ |
| H A D | skel_internal.h | 246 const char *map_name, in skel_map_create() argument 263 if (strscpy(attr.map_name, map_name) < 0) in skel_map_create() 266 strncpy(attr.map_name, map_name, sizeof(attr.map_name)); in skel_map_create()
|
| H A D | libbpf.c | 1876 char map_name[BPF_OBJ_NAME_LEN], *p; in internal_map_name() local 1924 snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, in internal_map_name() 1928 for (p = map_name; *p && p < map_name + sizeof(map_name); p++) in internal_map_name() 1932 return strdup(map_name); in internal_map_name() 2497 static bool get_map_field_int(const char *map_name, const struct btf *btf, in get_map_field_int() argument 2507 map_name, name, btf_kind_str(t)); in get_map_field_int() 2514 map_name, name, t->type); in get_map_field_int() 2519 map_name, name, btf_kind_str(arr_t)); in get_map_field_int() 2527 static bool get_map_field_long(const char *map_name, const struct btf *btf, in get_map_field_long() argument 2537 ret = get_map_field_int(map_name, btf, m, &res32); in get_map_field_long() [all …]
|
| H A D | bpf_gen_internal.h | 61 enum bpf_map_type map_type, const char *map_name,
|
| H A D | gen_loader.c | 489 const char *map_name, in bpf_gen__map_create() argument 504 if (map_name) in bpf_gen__map_create() 505 libbpf_strlcpy(attr.map_name, map_name, sizeof(attr.map_name)); in bpf_gen__map_create() 514 map_name, map_idx, map_type, map_attr->btf_value_type_id, in bpf_gen__map_create() 551 map_name, map_idx, map_type, value_size, in bpf_gen__map_create()
|
| /linux/drivers/media/tuners/ |
| H A D | tda18271-maps.c | 1058 char *map_name; in tda18271_lookup_pll_map() local 1066 map_name = "main_pll"; in tda18271_lookup_pll_map() 1070 map_name = "cal_pll"; in tda18271_lookup_pll_map() 1074 map_name = "undefined"; in tda18271_lookup_pll_map() 1079 tda_warn("%s map is not set!\n", map_name); in tda18271_lookup_pll_map() 1087 map_name, *freq); in tda18271_lookup_pll_map() 1097 i, map_name, *post_div, *div); in tda18271_lookup_pll_map() 1109 char *map_name; in tda18271_lookup_map() local 1117 map_name = "bp_filter"; in tda18271_lookup_map() 1121 map_name = "km"; in tda18271_lookup_map() [all …]
|
| /linux/drivers/media/rc/ |
| H A D | gpio-ir-recv.c | 98 rcdev->map_name = of_get_property(np, "linux,rc-map-name", NULL); in gpio_ir_recv_probe() 99 if (!rcdev->map_name) in gpio_ir_recv_probe() 100 rcdev->map_name = RC_MAP_EMPTY; in gpio_ir_recv_probe()
|
| H A D | meson-ir.c | 450 const char *map_name; in meson_ir_probe() local 504 map_name = of_get_property(node, "linux,rc-map-name", NULL); in meson_ir_probe() 505 ir->rc->map_name = map_name ? map_name : RC_MAP_EMPTY; in meson_ir_probe()
|
| /linux/drivers/of/ |
| H A D | base.c | 1559 char *map_name __free(kfree) = kasprintf(GFP_KERNEL, "%s-map", stem_name); in of_parse_phandle_with_args_map() 1576 if (!cells_name || !map_name || !mask_name || !pass_name) in of_parse_phandle_with_args_map() 1597 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map() 2171 * @map_name: property name of the map to use. 2192 const char *map_name, const char *cells_name, in of_map_id() 2201 if (!np || !map_name || !cells_name || !arg) in of_map_id() 2206 map = of_get_property(np, map_name, &map_bytes); in of_map_id() 2244 np, map_name, map_mask_name, map_mask, id_base); in of_map_id() 2272 np, map_name, cells_name); in of_map_id() 2298 np, map_name, id_le in of_map_id() 2184 of_map_id(const struct device_node * np,u32 id,const char * map_name,const char * cells_name,const char * map_mask_name,struct device_node * const * filter_np,struct of_phandle_args * arg) of_map_id() argument [all...] |
| /linux/arch/arm/include/asm/mach/ |
| H A D | flash.h | 25 const char *map_name; member
|
| /linux/Documentation/bpf/ |
| H A D | maps.rst | 50 .map_name = "example_array"; 59 .. note:: Valid characters for ``map_name`` are ``A-Z``, ``a-z``, ``0-9``,
|
| /linux/tools/bpf/bpftool/ |
| H A D | map.c | 1258 const char *map_name = NULL; in do_create() local 1286 map_name = GET_ARG(); in do_create() 1287 if (strlen(map_name) > BPF_OBJ_NAME_LEN - 1) { in do_create() 1346 if (!map_name) { in do_create() 1353 fd = bpf_map_create(map_type, map_name, key_size, value_size, max_entries, &attr); in do_create()
|
| /linux/drivers/mtd/maps/ |
| H A D | pxa2xx-flash.c | 83 info->mtd = do_map_probe(flash->map_name, &info->map); in pxa2xx_flash_probe()
|
| /linux/arch/arm/mach-sa1100/ |
| H A D | jornada720.c | 353 .map_name = "cfi_probe",
|
| /linux/kernel/bpf/ |
| H A D | diagnostics.c | 2105 const char *map_name; in diag_reg_snapshot() local 2133 map_name = diag_reg_map_name(snapshot->map_ptr); in diag_reg_snapshot() 2134 if (map_name) in diag_reg_snapshot() 2135 return bpf_diag_fmt(env, "%s from %s %s", kind, map_name, offset); in diag_reg_snapshot() 2140 map_name = diag_reg_map_name(snapshot->map_ptr); in diag_reg_snapshot() 2141 if (map_name) in diag_reg_snapshot() 2142 return bpf_diag_fmt(env, "map pointer for map %s", map_name); in diag_reg_snapshot()
|