Searched refs:lru_map (Results 1 – 3 of 3) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | lru_bug.c | 15 } lru_map SEC(".maps"); 26 bpf_map_update_elem(&lru_map, &(int){0}, &v, 0); in printk() 36 bpf_map_update_elem(&lru_map, &(int){0}, &val, 0); in nanosleep() 37 v = bpf_map_lookup_elem(&lru_map, &(int){0}); in nanosleep() 40 bpf_map_delete_elem(&lru_map, &(int){0}); in nanosleep()
|
H A D | test_xdp_noinline.c | 524 bool is_ipv6, void *lru_map) in get_packet_dst() argument 568 bpf_map_update_elem(lru_map, &pckt->flow, &new_dst_lru, 0); in get_packet_dst() 576 void *lru_map) in connection_table_lookup() argument 583 dst_lru = bpf_map_lookup_elem(lru_map, &pckt->flow); in connection_table_lookup() 673 void *lru_map = &lru_cache; in process_packet() local 729 connection_table_lookup(&dst, &pckt, lru_map); in process_packet() 743 if (!get_packet_dst(&dst, &pckt, vip_info, is_ipv6, lru_map)) in process_packet()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 116 static int map_equal(int lru_map, int expected) in map_equal() argument 118 return map_subset(lru_map, expected) && map_subset(expected, lru_map); in map_equal()
|