Home
last modified time | relevance | path

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

/samples/bpf/
Dbpf_load.c402 int map_sz_elf, map_sz_copy; in load_elf_maps_section() local
451 map_sz_copy = sizeof(struct bpf_load_map_def); in load_elf_maps_section()
452 if (map_sz_elf < map_sz_copy) { in load_elf_maps_section()
457 map_sz_copy = map_sz_elf; in load_elf_maps_section()
458 } else if (map_sz_elf > map_sz_copy) { in load_elf_maps_section()
489 memcpy(&maps[i].def, def, map_sz_copy); in load_elf_maps_section()
493 addr = (unsigned char *) def + map_sz_copy; in load_elf_maps_section()