summaryrefslogtreecommitdiff
path: root/server/TrafficController.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/TrafficController.h')
-rw-r--r--server/TrafficController.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/TrafficController.h b/server/TrafficController.h
index 05d91dfd..79f7d141 100644
--- a/server/TrafficController.h
+++ b/server/TrafficController.h
@@ -132,6 +132,13 @@ class TrafficController {
BpfMap<uint32_t, uint8_t> mUidCounterSetMap;
/*
+ * mAppUidStatsMap: Store the total traffic stats for a uid regardless of
+ * tag, counterSet and iface. The stats is used by TrafficStats.getUidStats
+ * API to return persistent stats for a specific uid since device boot.
+ */
+ BpfMap<uint32_t, StatsValue> mAppUidStatsMap;
+
+ /*
* mUidStatsMap: Store the traffic statistics for a specific combination of
* uid, iface and counterSet. We maintain this map in addition to
* mTagStatsMap because we want to be able to track per-UID data usage even