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 19:35:54 +0000 (12:35 -0700)
commitce964f2e6088761f3e2b22535010872327eff264
tree923b8d615d81c20caaf55a1dfbb69c19e765cade
parent069fb4b90ac79910de6812d2ade5bf72f7302852
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