Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c461 } value = { .cnt = 0xeB9f, .lock = 1, }, lookup_value; in test_sk_storage_map_basic() local
479 memcpy(&lookup_value, &value, sizeof(value)); in test_sk_storage_map_basic()
484 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic()
486 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic()
489 err, errno, lookup_value.lock, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic()
498 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic()
500 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic()
503 err, errno, lookup_value.lock, lookup_value.cnt, value.cnt); in test_sk_storage_map_basic()
511 err = bpf_map_lookup_elem_flags(map_fd, &sk_fd, &lookup_value, in test_sk_storage_map_basic()
513 CHECK(err || lookup_value.lock || lookup_value.cnt != value.cnt, in test_sk_storage_map_basic()
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Dhwtstamp_config.c22 lookup_value(const char **names, int size, const char *name) in lookup_value() function
102 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); in main()
103 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); in main()