commit | 7463de1e8e2b32762b98515ba8baeb51cc5035a0 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Thu May 21 14:43:01 2020 +0000 |
committer | Mike Yu <yumike@google.com> | Mon May 25 13:48:31 2020 +0800 |
tree | 4420983510aa3876a9f00258cdeb6610ff283cd9 | |
parent | ac4fc1bd5834ba1fcf8cf9d26b77a72252c5963f [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) Merged-In: Ie1724dc5775cdeff6ee00a51b5f74e8f8a32d5d3 Change-Id: Ib914878654e41bfb7ef47463fb8812f6d15d3bd7 (cherry picked from commit 094f148531ecfeca172941a9d8808121ac2f6bb4)
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.