Home
last modified time | relevance | path

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

/system/bpf/libbpf_android/
DBpfMapTest.cpp47 constexpr uint32_t TEST_MAP_SIZE = 10; variable
64 mMapFd = createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint32_t), TEST_MAP_SIZE, in SetUp()
123 BpfMap<uint32_t, uint32_t> testMap3(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
174 BpfMap<uint32_t, uint32_t> testMap1(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
192 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
197 EXPECT_GE((uint32_t)TEST_MAP_SIZE, key); in TEST_F()
203 EXPECT_EQ((int)TEST_MAP_SIZE, totalCount); in TEST_F()
204 EXPECT_EQ(((1 + TEST_MAP_SIZE - 1) * (TEST_MAP_SIZE - 1)) / 2, (uint32_t)totalSum); in TEST_F()
212 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
218 EXPECT_GE((uint32_t)TEST_MAP_SIZE, key); in TEST_F()
[all …]
/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp23 constexpr uint32_t TEST_MAP_SIZE = 10000; variable
30 BpfBenchMark() : mBpfTestMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC) {} in BpfBenchMark()
41 for (uint32_t i = 0; i < TEST_MAP_SIZE; i++) { in BENCHMARK_DEFINE_F()
50 for (uint32_t i = 0; i < TEST_MAP_SIZE; i++) { in BENCHMARK_DEFINE_F()
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp48 constexpr int TEST_MAP_SIZE = 10; variable
84 BPF_MAP_TYPE_HASH, sizeof(uint64_t), sizeof(struct UidTag), TEST_MAP_SIZE, 0)); in SetUp()
88 BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp()
93 TEST_MAP_SIZE, 0)); in SetUp()
97 createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(IfaceValue), TEST_MAP_SIZE, 0)); in SetUp()
101 BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp()
/system/netd/server/
DTrafficControllerTest.cpp50 constexpr int TEST_MAP_SIZE = 10; variable
82 sizeof(struct UidTag), TEST_MAP_SIZE, 0)); in SetUp()
86 createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint8_t), TEST_MAP_SIZE, 0)); in SetUp()
90 sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp()
94 sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp()
102 TEST_MAP_SIZE, 0)); in SetUp()
105 createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint8_t), TEST_MAP_SIZE, 0)); in SetUp()