Searched refs:lookup_value (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 465 } value = { .cnt = 0xeB9f, .lock = 0, }, lookup_value; in test_sk_storage_map_basic() local 483 memcpy(&lookup_value, &value, sizeof(value)); in test_sk_storage_map_basic() 488 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic() 490 CHECK(err || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic() 493 err, errno, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic() 501 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic() 503 CHECK(err || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic() 506 err, errno, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic() 513 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic() 515 CHECK(err || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 20 lookup_value(const char **names, int size, const char *name) in lookup_value() function 100 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); in main() 101 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); in main()
|