Searched refs:TEST_MAP_SIZE (Results 1 – 5 of 5) sorted by relevance
/system/bpf/libbpf_android/ |
D | BpfMapTest.cpp | 47 constexpr uint32_t TEST_MAP_SIZE = 10; variable 115 BpfMap<uint32_t, uint32_t> testMap2(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 122 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 138 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 152 BpfMap<uint32_t, uint32_t> testMap1(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 165 BpfMap<uint32_t, uint32_t> testMap1(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 182 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F() 183 populateMap(TEST_MAP_SIZE, testMap); in TEST_F() 188 EXPECT_GE((uint32_t)TEST_MAP_SIZE, key); in TEST_F() 194 EXPECT_EQ((int)TEST_MAP_SIZE, totalCount); in TEST_F() [all …]
|
/system/netd/tests/benchmarks/ |
D | bpf_benchmark.cpp | 24 constexpr uint32_t TEST_MAP_SIZE = 10000; variable 32 BpfBenchMark() : mBpfTestMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC) {} in BpfBenchMark() 44 for (uint32_t i = 0; i < TEST_MAP_SIZE; i++) { in BENCHMARK_DEFINE_F() 55 for (uint32_t i = 0; i < TEST_MAP_SIZE; i++) { in BENCHMARK_DEFINE_F()
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 49 constexpr int TEST_MAP_SIZE = 10; variable 84 mFakeCookieTagMap = BpfMap<uint64_t, UidTagValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 87 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 90 mFakeStatsMap = BpfMap<StatsKey, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 93 mFakeIfaceIndexNameMap = BpfMap<uint32_t, IfaceValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 96 mFakeIfaceStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
|
/system/netd/server/ |
D | TetherControllerTest.cpp | 52 constexpr int TEST_MAP_SIZE = 10; variable 71 BpfMap<uint32_t, TetherStatsValue> mFakeTetherStatsMap{BPF_MAP_TYPE_HASH, TEST_MAP_SIZE}; 72 BpfMap<uint32_t, uint64_t> mFakeTetherLimitMap{BPF_MAP_TYPE_HASH, TEST_MAP_SIZE};
|
D | TrafficControllerTest.cpp | 49 constexpr int TEST_MAP_SIZE = 10; variable 81 TEST_MAP_SIZE, 0)); in SetUp() 85 createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint8_t), TEST_MAP_SIZE, 0)); in SetUp() 89 TEST_MAP_SIZE, 0)); in SetUp() 93 TEST_MAP_SIZE, 0)); in SetUp() 101 TEST_MAP_SIZE, 0)); in SetUp() 104 createMap(BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(uint8_t), TEST_MAP_SIZE, 0)); in SetUp()
|