diff options
author | Yi Jin <jinyithu@google.com> | 2017-12-22 17:36:47 -0800 |
---|---|---|
committer | Yi Jin <jinyithu@google.com> | 2018-01-06 20:33:14 -0800 |
commit | 3c034c987e1eeb49660fb62d3426c292a01412c9 (patch) | |
tree | 168d3f0040e3e74ac1b2741f91d2dbfcee166535 /tools/incident_section_gen/main.cpp | |
parent | a598c05d632d303a49ba06fe306136e0039c785d (diff) |
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
Diffstat (limited to 'tools/incident_section_gen/main.cpp')
-rw-r--r-- | tools/incident_section_gen/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index 102bbf9d07d7..e7b269aaa9a5 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -408,6 +408,9 @@ static bool generateSectionListCpp(Descriptor const* descriptor) { splitAndPrint(s.args()); printf(" NULL),\n"); break; + case SECTION_LOG: + printf(" new LogSection(%d, %s),\n", field->number(), s.args().c_str()); + break; } } printf(" NULL };\n"); |