commit | cb902c9464c074d705c71251e442a1ee6842568e | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed May 20 19:26:56 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Thu May 21 18:41:38 2020 +0800 |
tree | 4b70b6626e270844635e61b82eaa8c782b7086a7 | |
parent | eb85d8b0fa558653309a3c40c4165a93f4bbb6cd [diff] |
Don't use Fwmark to rename threads Use the least 16 significant bits, which are supposed to represent netId, of the network mark for resolver threads name. This is in preparation for dropping Fwmark used in DnsResolver. No naming rule change. Bug: 151895202 Test: adb shell ps -AT $(adb shell pidof netd) Change-Id: Ie1724dc5775cdeff6ee00a51b5f74e8f8a32d5d3
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.