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
Showing
- Android.bp 9 additions, 1 deletionAndroid.bp
- cmds/incident_helper/src/ih_util.cpp 13 additions, 0 deletionscmds/incident_helper/src/ih_util.cpp
- cmds/incident_helper/src/ih_util.h 7 additions, 0 deletionscmds/incident_helper/src/ih_util.h
- cmds/incident_helper/src/main.cpp 3 additions, 0 deletionscmds/incident_helper/src/main.cpp
- cmds/incident_helper/src/parsers/EventLogTagsParser.cpp 84 additions, 0 deletionscmds/incident_helper/src/parsers/EventLogTagsParser.cpp
- cmds/incident_helper/src/parsers/EventLogTagsParser.h 35 additions, 0 deletionscmds/incident_helper/src/parsers/EventLogTagsParser.h
- cmds/incident_helper/testdata/event-log-tags.txt 6 additions, 0 deletionscmds/incident_helper/testdata/event-log-tags.txt
- cmds/incident_helper/tests/EventLogTagsParser_test.cpp 125 additions, 0 deletionscmds/incident_helper/tests/EventLogTagsParser_test.cpp
- cmds/incident_helper/tests/ih_util_test.cpp 19 additions, 0 deletionscmds/incident_helper/tests/ih_util_test.cpp
- cmds/incidentd/Android.mk 43 additions, 6 deletionscmds/incidentd/Android.mk
- cmds/incidentd/src/Section.cpp 176 additions, 11 deletionscmds/incidentd/src/Section.cpp
- cmds/incidentd/src/Section.h 21 additions, 0 deletionscmds/incidentd/src/Section.h
- cmds/incidentd/src/section_list.h 2 additions, 0 deletionscmds/incidentd/src/section_list.h
- cmds/incidentd/tests/Section_test.cpp 21 additions, 1 deletioncmds/incidentd/tests/Section_test.cpp
- core/proto/android/os/incident.proto 51 additions, 0 deletionscore/proto/android/os/incident.proto
- core/proto/android/util/event_log_tags.proto 58 additions, 0 deletionscore/proto/android/util/event_log_tags.proto
- core/proto/android/util/log.proto 88 additions, 0 deletionscore/proto/android/util/log.proto
- libs/incident/proto/android/section.proto 3 additions, 0 deletionslibs/incident/proto/android/section.proto
- tools/incident_section_gen/main.cpp 3 additions, 0 deletionstools/incident_section_gen/main.cpp
Loading
Please register or sign in to comment