OSDN Git Service

Log RA listening statistics
authorHugo Benichi <hugobenichi@google.com>
Tue, 7 Jun 2016 06:35:16 +0000 (15:35 +0900)
committerHugo Benichi <hugobenichi@google.com>
Thu, 30 Jun 2016 09:26:33 +0000 (18:26 +0900)
commit647c86d70a0f2162dcc95854e9dccb925c16ecf3
treec14fe0cfab67d3a0c44e2c54b8d182915380d23e
parent4fc3ee5be223122792ebc0ee8a05c93d93e26a52
Log RA listening statistics

This patch adds a new ApfStats event class that counts RA packet
reception statistics on the RA listener thread of ApfFilter and reports
the maximum program size advertised by hardware.

Statistics are gathered for the lifetime of a network with APF
capabilities and uploaded at network teardown when the listener thread
exits.

Example event:
ConnectivityMetricsEvent(15:44:23.741, 0, 0): ApfStats(284945ms 2048B RA: 2 received, 0 matching, 0 ignored, 0 expired, 0 parse errors, 2 program updates)

Bug: 28204408
Change-Id: Id2eaafdca97f61152a4b66d06061c971bc0aba4c
api/system-current.txt
core/java/android/net/metrics/ApfStats.java [new file with mode: 0644]
services/net/java/android/net/apf/ApfFilter.java