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
109 BpfMap<uint32_t, uint32_t> testMap2(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
114 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
128 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
140 BpfMap<uint32_t, uint32_t> testMap1(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
151 BpfMap<uint32_t, uint32_t> testMap1(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
166 BpfMap<uint32_t, uint32_t> testMap(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, BPF_F_NO_PREALLOC); in TEST_F()
167 populateMap(TEST_MAP_SIZE, testMap); in TEST_F()
172 EXPECT_GE((uint32_t)TEST_MAP_SIZE, key); in TEST_F()
178 EXPECT_EQ((int)TEST_MAP_SIZE, totalCount); in TEST_F()
[all …]
/system/netd/tests/benchmarks/
Dbpf_benchmark.cpp24 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/
DBpfNetworkStatsTest.cpp49 constexpr int TEST_MAP_SIZE = 10; variable
83 mFakeCookieTagMap = BpfMap<uint64_t, UidTagValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
86 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
89 mFakeStatsMap = BpfMap<StatsKey, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
92 mFakeIfaceIndexNameMap = BpfMap<uint32_t, IfaceValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
95 mFakeIfaceStatsMap = BpfMap<uint32_t, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
/system/netd/server/
DTrafficControllerTest.cpp50 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()