Home
last modified time | relevance | path

Searched refs:StatsValue (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DBpfNetworkStats.cpp48 const BpfMapRO<uint32_t, StatsValue>& getIfaceStatsMap() { in getIfaceStatsMap()
49 static BpfMapRO<uint32_t, StatsValue> ifaceStatsMap(IFACE_STATS_MAP_PATH); in getIfaceStatsMap()
72 int bpfGetUidStatsInternal(uid_t uid, StatsValue* stats, in bpfGetUidStatsInternal()
73 const BpfMapRO<uint32_t, StatsValue>& appUidStatsMap) { in bpfGetUidStatsInternal()
83 int bpfGetUidStats(uid_t uid, StatsValue* stats) { in bpfGetUidStats()
84 static BpfMapRO<uint32_t, StatsValue> appUidStatsMap(APP_UID_STATS_MAP_PATH); in bpfGetUidStats()
88 int bpfGetIfaceStatsInternal(const char* iface, StatsValue* stats, in bpfGetIfaceStatsInternal()
89 const BpfMapRO<uint32_t, StatsValue>& ifaceStatsMap, in bpfGetIfaceStatsInternal()
96 const BpfMapRO<uint32_t, StatsValue>& ifaceStatsMap) -> Result<void> { in bpfGetIfaceStatsInternal()
103 Result<StatsValue> statsEntry = ifaceStatsMap.readValue(key); in bpfGetIfaceStatsInternal()
[all …]
DBpfNetworkStatsTest.cpp75 BpfMap<uint32_t, StatsValue> mFakeAppUidStatsMap;
76 BpfMap<StatsKey, StatsValue> mFakeStatsMap;
78 BpfMap<uint32_t, StatsValue> mFakeIfaceStatsMap;
111 StatsValue value, BpfMap<StatsKey, StatsValue>& map) { in populateFakeStats()
123 void expectStatsEqual(const StatsValue& target, const StatsValue& result) { in expectStatsEqual()
130 void expectStatsLineEqual(const StatsValue target, const char* iface, uint32_t uid, in expectStatsLineEqual()
195 StatsValue value1 = { in TEST_F()
201 StatsValue result1 = {}; in TEST_F()
210 StatsValue value1 = { in TEST_F()
216 StatsValue value2 = { in TEST_F()
[all …]
DNetworkTracePoller.cpp137 StatsValue stats = {}; in TraceIfaces()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/
DBpfNetworkStats.h64 int bpfGetUidStatsInternal(uid_t uid, StatsValue* stats,
65 const BpfMapRO<uint32_t, StatsValue>& appUidStatsMap);
67 int bpfGetIfaceStatsInternal(const char* iface, StatsValue* stats,
68 const BpfMapRO<uint32_t, StatsValue>& ifaceStatsMap,
71 int bpfGetIfIndexStatsInternal(uint32_t ifindex, StatsValue* stats,
72 const BpfMapRO<uint32_t, StatsValue>& ifaceStatsMap);
75 const BpfMapRO<StatsKey, StatsValue>& statsMap,
81 void maybeLogUnknownIface(int ifaceIndex, const BpfMapRO<Key, StatsValue>& statsMap, in maybeLogUnknownIface()
105 const BpfMapRO<uint32_t, StatsValue>& statsMap,
109 int bpfGetUidStats(uid_t uid, StatsValue* stats);
[all …]
/packages/modules/Connectivity/bpf_progs/
Dnetd.h56 } StatsValue; typedef
57 STRUCT_SIZE(StatsValue, 4 * 8); // 32
60 static inline StatsValue& operator+=(StatsValue& lhs, const StatsValue& rhs) {
Dnetd.c91 DEFINE_BPF_MAP_NO_NETD(app_uid_stats_map, HASH, uint32_t, StatsValue, APP_STATS_MAP_SIZE)
92 DEFINE_BPF_MAP_RO_NETD(stats_map_A, HASH, StatsKey, StatsValue, STATS_MAP_SIZE)
93 DEFINE_BPF_MAP_RO_NETD(stats_map_B, HASH, StatsKey, StatsValue, STATS_MAP_SIZE)
94 DEFINE_BPF_MAP_NO_NETD(iface_stats_map, HASH, uint32_t, StatsValue, IFACE_STATS_MAP_SIZE)
188 StatsValue* value = bpf_##the_stats_map##_lookup_elem(key); \ in DEFINE_BPF_MAP_RO_NETD()
190 StatsValue newValue = {}; \ in DEFINE_BPF_MAP_RO_NETD()
/packages/modules/Connectivity/service-t/jni/
Dcom_android_server_net_NetworkStatsService.cpp48 static jobject statsValueToEntry(JNIEnv* env, StatsValue* stats) { in statsValueToEntry()
77 StatsValue stats = {}; in nativeGetTotalStat()
92 StatsValue stats = {}; in nativeGetIfaceStat()
102 StatsValue stats = {}; in nativeGetUidStat()
/packages/modules/Connectivity/netd/
DBpfHandler.h62 BpfMapRO<StatsKey, StatsValue> mStatsMapA;
63 BpfMapRO<StatsKey, StatsValue> mStatsMapB;
DBpfHandlerTest.cpp51 BpfMap<StatsKey, StatsValue> mFakeStatsMapA;
106 StatsValue statsMapValue = {.rxPackets = 1, .rxBytes = 100}; in populateFakeStats()
DBpfHandler.cpp353 const BpfMapRO<StatsKey, StatsValue>&) { in tagSocket() argument
371 BpfMapRO<StatsKey, StatsValue>& currentMap = in tagSocket()