diff options
author | Ryan Savitski <rsavitski@google.com> | 2019-06-03 23:57:09 +0100 |
---|---|---|
committer | Ryan Savitski <rsavitski@google.com> | 2019-06-05 22:56:08 +0100 |
commit | 09a847902fa428f97841c3689b9f11243cc60460 (patch) | |
tree | debef863dcc0f70e459159b09bbd2ee0a59f4042 /cmds/incident_helper | |
parent | 277082c2d8bc4905701a7f610fc741d5451d479b (diff) |
userdebug: support perfetto traces as a section in incident reports
This set of patches adds a way for the perfetto command line client to
save a trace to a hardcoded location,
/data/misc/perfetto-traces/incident-trace, and call into incidentd to
start a report, which will include said trace in a new section.
This is not a long-term solution, and is structured to minimize changes
to perfetto and incidentd. The latter is currently architected in a way
where it can only pull pre-defined information out of the system, so
we're resorting to persisting the intermediate results in a hardcoded
location.
This will introduce at most two more linked files at the same time.
Bug: 130543265
Tested: manually on blueline-userdebug
Change-Id: Iaaa312d2d9da73ca329807211227a8c7a049102c
Diffstat (limited to 'cmds/incident_helper')
-rw-r--r-- | cmds/incident_helper/src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/incident_helper/src/main.cpp b/cmds/incident_helper/src/main.cpp index 809a77163fb4..ff5fd86cf11e 100644 --- a/cmds/incident_helper/src/main.cpp +++ b/cmds/incident_helper/src/main.cpp @@ -72,6 +72,8 @@ static TextParserBase* selectParser(int section) { return new PsParser(); case 2006: return new BatteryTypeParser(); + case 3026: // system_trace is already a serialized protobuf + return new NoopParser(); default: // Return no op parser when no specific ones are implemented. return new NoopParser(); |