Log netd traffic nicely.
Create a LocalLog class for logging within a service for dumping in dumps. Use it in the NativeDaemonConnector so we can get some insight into what is happening in these lockups. bug:5864209 Change-Id: I68ddc58847f3c8de613be9528570f8c3157d8274
This commit is contained in:
@@ -163,7 +163,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub
|
||||
}
|
||||
|
||||
mConnector = new NativeDaemonConnector(
|
||||
new NetdCallbackReceiver(), "netd", 10, NETD_TAG);
|
||||
new NetdCallbackReceiver(), "netd", 10, NETD_TAG, 50);
|
||||
mThread = new Thread(mConnector, NETD_TAG);
|
||||
|
||||
// Add ourself to the Watchdog monitors.
|
||||
@@ -1265,6 +1265,10 @@ public class NetworkManagementService extends INetworkManagementService.Stub
|
||||
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||
mContext.enforceCallingOrSelfPermission(DUMP, TAG);
|
||||
|
||||
pw.println("NetworkManagementService NativeDaemonConnector Log:");
|
||||
mConnector.dump(fd, pw, args);
|
||||
pw.println();
|
||||
|
||||
pw.print("Bandwidth control enabled: "); pw.println(mBandwidthControlEnabled);
|
||||
|
||||
synchronized (mQuotaLock) {
|
||||
|
||||
Reference in New Issue
Block a user