• Home
  • Raw
  • Download

Lines Matching refs:pinning

1079 	unsigned int		pinning;  member
1323 uint32_t pinning) in bpf_custom_pinning() argument
1327 entry = ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)]; in bpf_custom_pinning()
1328 while (entry && entry->pinning != pinning) in bpf_custom_pinning()
1335 uint32_t pinning) in bpf_no_pinning() argument
1337 switch (pinning) { in bpf_no_pinning()
1344 return !bpf_custom_pinning(ctx, pinning); in bpf_no_pinning()
1349 const struct bpf_elf_ctx *ctx, uint32_t pinning) in bpf_make_pathname() argument
1351 switch (pinning) { in bpf_make_pathname()
1365 bpf_custom_pinning(ctx, pinning), name); in bpf_make_pathname()
1371 uint32_t pinning) in bpf_probe_pinned() argument
1375 if (bpf_no_pinning(ctx, pinning) || !bpf_get_work_dir(ctx->type)) in bpf_probe_pinned()
1378 bpf_make_pathname(pathname, sizeof(pathname), name, ctx, pinning); in bpf_probe_pinned()
1430 const struct bpf_elf_ctx *ctx, uint32_t pinning) in bpf_place_pinned() argument
1436 if (bpf_no_pinning(ctx, pinning) || !bpf_get_work_dir(ctx->type)) in bpf_place_pinned()
1439 if (pinning == PIN_OBJECT_NS) in bpf_place_pinned()
1441 else if ((tmp = bpf_custom_pinning(ctx, pinning))) in bpf_place_pinned()
1446 bpf_make_pathname(pathname, sizeof(pathname), name, ctx, pinning); in bpf_place_pinned()
1510 fprintf(stderr, " - Pinning: %u\n", map->pinning); in bpf_map_report()
1566 fd = bpf_probe_pinned(name, ctx, map->pinning); in bpf_map_attach()
1610 ret = bpf_place_pinned(fd, name, ctx, map->pinning); in bpf_map_attach()
2283 static bool bpf_pinning_reserved(uint32_t pinning) in bpf_pinning_reserved() argument
2285 switch (pinning) { in bpf_pinning_reserved()
2299 uint32_t pinning; in bpf_hash_init() local
2307 while ((ret = bpf_read_pin_mapping(fp, &pinning, subpath))) { in bpf_hash_init()
2315 if (bpf_pinning_reserved(pinning)) { in bpf_hash_init()
2317 db_file, pinning); in bpf_hash_init()
2327 entry->pinning = pinning; in bpf_hash_init()
2335 entry->next = ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)]; in bpf_hash_init()
2336 ctx->ht[pinning & (ARRAY_SIZE(ctx->ht) - 1)] = entry; in bpf_hash_init()