OSDN Git Service

Implement a new type of section which reads from logd and dumps proto.
authorYi Jin <jinyithu@google.com>
Sat, 23 Dec 2017 01:36:47 +0000 (17:36 -0800)
committerYi Jin <jinyithu@google.com>
Sun, 7 Jan 2018 04:33:14 +0000 (20:33 -0800)
commit3c034c987e1eeb49660fb62d3426c292a01412c9
tree168d3f0040e3e74ac1b2741f91d2dbfcee166535
parenta598c05d632d303a49ba06fe306136e0039c785d
Implement a new type of section which reads from logd and dumps proto.

And implement a file section which reads from event-log-tags for
decoding binary logs.

Bug: 70936599
Test: atest incidentd_test && atest incident_helper_test and flush on
device and test log sections and event_log_tag_map
Change-Id: Ib3d35e317f355de69f01ded012482486e9a43da6
19 files changed:
Android.bp
cmds/incident_helper/src/ih_util.cpp
cmds/incident_helper/src/ih_util.h
cmds/incident_helper/src/main.cpp
cmds/incident_helper/src/parsers/EventLogTagsParser.cpp [new file with mode: 0644]
cmds/incident_helper/src/parsers/EventLogTagsParser.h [new file with mode: 0644]
cmds/incident_helper/testdata/event-log-tags.txt [new file with mode: 0644]
cmds/incident_helper/tests/EventLogTagsParser_test.cpp [new file with mode: 0644]
cmds/incident_helper/tests/ih_util_test.cpp
cmds/incidentd/Android.mk
cmds/incidentd/src/Section.cpp
cmds/incidentd/src/Section.h
cmds/incidentd/src/section_list.h
cmds/incidentd/tests/Section_test.cpp
core/proto/android/os/incident.proto
core/proto/android/util/event_log_tags.proto [new file with mode: 0644]
core/proto/android/util/log.proto [new file with mode: 0644]
libs/incident/proto/android/section.proto
tools/incident_section_gen/main.cpp