OSDN Git Service

atrace: setup saved_cmdlines_size and write only if available
authorJoel Fernandes <joelaf@google.com>
Tue, 6 Jun 2017 19:20:29 +0000 (12:20 -0700)
committerJoel Fernandes <joelaf@google.com>
Tue, 6 Jun 2017 20:42:45 +0000 (20:42 +0000)
commit9351f72049a2bc65170afcf131008c8bd1710959
treeae6f4ea047c325365dd08151a165367575a23acb
parent7258088ea589874770b6b47a1612d59429f16bab
atrace: setup saved_cmdlines_size and write only if available

Older kernels (bullhead etc) don't have saved_cmdlines_size, check and
write only if available. Also make work on non-root by setting
permissions in rc file (thanks John Reck for suggestion).

Bug: 62375794

Change-Id: Iefffc3203afd092ffb6cf420a144b38844aaee39
Signed-off-by: Joel Fernandes <joelaf@google.com>
cmds/atrace/atrace.cpp
cmds/atrace/atrace.rc