commit | 21072606e4dd76e04a56b59770c0deb21bbde03c | [log] [tgz] |
---|---|---|
author | Frank Li <lifr@google.com> | Tue Nov 28 23:30:24 2023 +0800 |
committer | Frank Li <lifr@google.com> | Tue Nov 28 23:44:13 2023 +0800 |
tree | 79a94dd7da26d6ad5993f7e351372a6779ee807b | |
parent | 8d2e14a64b3a50ea9881f13fcbc11172aace3e52 [diff] |
Added the test for UID field of NetwrokDnsEventReported atom Bug: 309575211 Test: atest resolv_unit_test, resolv_stats_test_utils_test statsd_testdrive Metrics dump: event_type: EVENT_GETADDRINFO, return_code: RC_EAI_NO_ERROR, latency_micros: 105375, hints_ai_flags: 1024, res_nsend_flags: -1, network_type: NT_CELLULAR, private_dns_modes: PDM_OPPORTUNISTIC, dns_query_events: { dns_query_event: [{ rcode: NS_R_NO_ERROR, type: NS_T_AAAA, cache_hit: CS_NOTFOUND, ip_version: IV_IPV6, protocol: PROTO_UDP, retry_times: 0, dns_server_index: 0, latency_micros: 98227, linux_errno: SYS_NO_ERROR },{ rcode: NS_R_NO_ERROR, type: NS_T_A, cache_hit: CS_NOTFOUND, ip_version: IV_IPV6, protocol: PROTO_UDP, retry_times: 0, dns_server_index: 0, latency_micros: 101843, linux_errno: SYS_NO_ERROR }] }, sampling_rate_denom: 400, uid: 10230 Change-Id: I113e1671ae28feed8751afd720743bc0f6745e3b
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.