/system/netd/libnetdbpf/include/netdbpf/ |
D | BpfNetworkStats.h | 59 const BpfMap<uint32_t, StatsValue>& appUidStatsMap); 62 const BpfMap<uint32_t, StatsValue>& ifaceStatsMap, 67 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap, 74 const BpfMap<Key, StatsValue>& statsMap, uint32_t ifaceIndex, char* ifname, in getIfaceNameFromMap() 86 void maybeLogUnknownIface(int ifaceIndex, const BpfMap<Key, StatsValue>& statsMap, in maybeLogUnknownIface() 110 const BpfMap<uint32_t, StatsValue>& statsMap,
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStats.cpp | 50 const BpfMap<uint32_t, StatsValue>& appUidStatsMap) { in bpfGetUidStatsInternal() 62 BpfMap<uint32_t, StatsValue> appUidStatsMap( in bpfGetUidStats() 74 const BpfMap<uint32_t, StatsValue>& ifaceStatsMap, in bpfGetIfaceStatsInternal() 81 const BpfMap<uint32_t, StatsValue>& ifaceStatsMap) { in bpfGetIfaceStatsInternal() 88 StatsValue statsEntry; in bpfGetIfaceStatsInternal() 101 BpfMap<uint32_t, StatsValue> ifaceStatsMap(mapRetrieve(IFACE_STATS_MAP_PATH, BPF_OPEN_FLAGS)); in bpfGetIfaceStats() 118 stats_line populateStatsEntry(const StatsKey& statsKey, const StatsValue& statsEntry, in populateStatsEntry() 134 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap, in parseBpfNetworkStatsDetailInternal() 140 const BpfMap<StatsKey, StatsValue>& statsMap) { in parseBpfNetworkStatsDetailInternal() 158 StatsValue statsEntry; in parseBpfNetworkStatsDetailInternal() [all …]
|
D | BpfNetworkStatsTest.cpp | 74 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; 75 BpfMap<StatsKey, StatsValue> mFakeStatsMap; 77 BpfMap<uint32_t, StatsValue> mFakeIfaceStatsMap; 87 mFakeAppUidStatsMap = BpfMap<uint32_t, StatsValue>(createMap( in SetUp() 88 BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp() 91 mFakeStatsMap = BpfMap<StatsKey, StatsValue>( in SetUp() 92 createMap(BPF_MAP_TYPE_HASH, sizeof(struct StatsKey), sizeof(struct StatsValue), in SetUp() 100 mFakeIfaceStatsMap = BpfMap<uint32_t, StatsValue>(createMap( in SetUp() 101 BPF_MAP_TYPE_HASH, sizeof(uint32_t), sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp() 113 StatsValue value, BpfMap<StatsKey, StatsValue>& map) { in populateFakeStats() [all …]
|
/system/netd/server/ |
D | TrafficController.h | 37 using android::bpf::StatsValue; 156 BpfMap<uint32_t, StatsValue> mAppUidStatsMap; 167 BpfMap<StatsKey, StatsValue> mStatsMapA GUARDED_BY(mMutex); 169 BpfMap<StatsKey, StatsValue> mStatsMapB GUARDED_BY(mMutex); 182 BpfMap<uint32_t, StatsValue> mIfaceStatsMap;
|
D | TrafficController.cpp | 371 const StatsKey& key, BpfMap<StatsKey, StatsValue>&) { in tagSocket() argument 389 BpfMap<StatsKey, StatsValue>& currentMap = in tagSocket() 496 BpfMap<StatsKey, StatsValue>& map) { in deleteTagData() 520 auto deleteAppUidStatsEntry = [uid](const uint32_t& key, BpfMap<uint32_t, StatsValue>& map) { in deleteTagData() 1002 auto printAppUidStatsInfo = [&dw](const uint32_t& key, const StatsValue& value, in dump() 1003 const BpfMap<uint32_t, StatsValue>&) { in dump() argument 1017 const auto printStatsInfo = [&dw, this](const StatsKey& key, const StatsValue& value, in dump() 1018 const BpfMap<StatsKey, StatsValue>&) { in dump() argument 1058 const auto printIfaceStatsInfo = [&dw, this](const uint32_t& key, const StatsValue& value, in dump() 1059 const BpfMap<uint32_t, StatsValue>&) { in dump() argument
|
D | TrafficControllerTest.cpp | 70 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap; 71 BpfMap<StatsKey, StatsValue> mFakeStatsMapA; 90 sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp() 94 sizeof(struct StatsValue), TEST_MAP_SIZE, 0)); in SetUp() 156 StatsValue statsMapValue = {.rxPackets = 1, .rxBytes = 100}; in populateFakeStats() 287 StatusOr<StatsValue> statsMapResult = mFakeStatsMapA.readValue(tagStatsMapKey); in expectFakeStatsUnchanged() 503 StatusOr<StatsValue> statsMapResult = mFakeStatsMapA.readValue(tagStatsMapKey); in TEST_F() 556 StatusOr<StatsValue> statsMapResult = mFakeStatsMapA.readValue(tagStatsMapKey2); in TEST_F() 590 StatusOr<StatsValue> statsMapResult = mFakeStatsMapA.readValue(tagStatsMapKey1); in TEST_F()
|
/system/netd/tests/ |
D | bpf_base_test.cpp | 166 BpfMap<StatsKey, StatsValue> statsMapA(mapRetrieve(STATS_MAP_A_PATH, 0)); in TEST_F() 168 BpfMap<StatsKey, StatsValue> statsMapB(mapRetrieve(STATS_MAP_B_PATH, 0)); in TEST_F() 170 BpfMap<uint32_t, StatsValue> appUidStatsMap(mapRetrieve(APP_UID_STATS_MAP_PATH, 0)); in TEST_F() 175 StatsValue statsMapValue = {.rxPackets = 1, .rxBytes = 100}; in TEST_F() 181 StatusOr<StatsValue> statsResult = statsMapA.readValue(key); in TEST_F()
|
/system/bpf/libbpf_android/include/bpf/ |
D | BpfUtils.h | 81 struct StatsValue { struct 180 bool operator==(const StatsValue& lhs, const StatsValue& rhs);
|
/system/bpf/libbpf_android/ |
D | BpfUtils.cpp | 69 bool operator==(const StatsValue& lhs, const StatsValue& rhs) { in operator ==()
|