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
5 files changed
tree: 6d78e099de73afc84f04a0b74f0b74f3ec88b5b9
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/
  5. rust/
  6. OWNERS
  7. PREUPLOAD.cfg
  8. TEST_MAPPING