commit | 5beb07872587da07400893562fa5afd16e49d957 | [log] [tgz] |
---|---|---|
author | Fabien Sanglard <sanglardf@google.com> | Wed Jun 14 01:29:23 2023 +0000 |
committer | Fabien Sanglard <sanglardf@google.com> | Tue Jun 20 19:03:06 2023 +0000 |
tree | 6d78e099de73afc84f04a0b74f0b74f3ec88b5b9 | |
parent | 9c4db54e0468a5579e87beb20807a0adda5e7cdf [diff] |
Add logcat process name resolution (proto only) When outputting protobuffer, logcat now has the option to also resolve pid name. It does so by first looking into /proc/pid/cmdline and then , if that failed, in /proc/pid/comm. To limit I/O impact, process names are cached in memory. The cache is made of a maximum of 100 entries, containing roughly 30 bytes each. The eviction policy is LRU. Test: lru_tests.cpp Bug: 257127748 Change-Id: I2ff4e74ca8e6f6bc26d7e31dc8a185bb0aa15b96