OSDN Git Service

lshal: Add option to print cmd lines instead of pids.
authorYifan Hong <elsk@google.com>
Wed, 15 Feb 2017 01:33:50 +0000 (17:33 -0800)
committerYifan Hong <elsk@google.com>
Thu, 16 Feb 2017 00:30:35 +0000 (16:30 -0800)
commitae09a3ddfec51c82257e338346e39ee472470061
tree89d7657e868047708dfd5eae424575ecfac3bf34
parente2dadf0c4f132d3a39309f4e274f1a35f7caaaed
lshal: Add option to print cmd lines instead of pids.

Add -m to arguments of lshal. When this flag is set,
/proc/{pid}/cmdline is printed instead of a plain PID.
If the file doesn't exist, it will be striped out from
the PID column as well (the process is considered died
and won't hold a reference to the binder object.)

Test: lshal -icm

Bug: 35160832

Change-Id: I4345bf06112a1f87ce91bec6f6f787703e46cd17
cmds/lshal/Lshal.cpp
cmds/lshal/Lshal.h
cmds/lshal/TableEntry.h