Cut off process names for profiling.

/proc/<pid>/comm cannot be longer than 16 characters. Because of this,
packages starting with android.hardware.* etc.. are indistinguishable
between tool that use comm to identify processes. This makes using tools
like systrace extremely difficult and error prone.

Test: external/chromium-trace/systrace.py -b 32000 audio sched freq idle
workq irq binder_driver am sync hal app pm ss -t 5
Test: (sanity) hidl_test
Bug: 33664825

(cherry picked from commit 405d76134f5ec033817a21fbbcc13083fe0349fe)
Merged-In: I4c9ba4d75b9ad1c1161335fe3595e13ac3222bb6
Change-Id: I4c9ba4d75b9ad1c1161335fe3595e13ac3222bb6
2 files changed