5ee0787024cc446a21008ff5710dec19c6afc834 |
06-Mar-2018 |
Yi Jin <jinyithu@google.com> |
Use uint64_t instead of long long as API type for consistent reason. Bug: 74118023 Test: manual Change-Id: Icd5f506c76d3a008a79cb6c9d2061962ca7fdd40
puFreqParser.cpp
puInfoParser.cpp
ventLogTagsParser.cpp
ernelWakesParser.cpp
ageTypeInfoParser.cpp
rocrankParser.cpp
sParser.cpp
ystemPropertiesParser.cpp
|
6bd2f25f19c6710e7652155f273cfcf330f6e98c |
20-Feb-2018 |
Yi Jin <jinyithu@google.com> |
Add HighAtomic to pagetypeinfo, and don't fail if a header can't be found in proto definition. Bug: 73656242 Test: atest incident_helper Change-Id: Ib89b1a9189445a0598ec5da0c32046f75de3b0c5
ageTypeInfoParser.cpp
|
51d4c54eba8dd613dd0550c6633a747b53e0ce0a |
25-Jan-2018 |
Yi Jin <jinyithu@google.com> |
Make the platform proto naming consistent, Part 1 Change proto names in incident_helper Bug: 72474563 Test: atest incident_helper_test Change-Id: Ia416ef9726a19d247e62d7de1028874408ec53f1
puFreqParser.cpp
puInfoParser.cpp
ernelWakesParser.cpp
ageTypeInfoParser.cpp
rocrankParser.cpp
sParser.cpp
|
3c034c987e1eeb49660fb62d3426c292a01412c9 |
23-Dec-2017 |
Yi Jin <jinyithu@google.com> |
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
ventLogTagsParser.cpp
ventLogTagsParser.h
|
f5cc5759d55f803cd230c7a595e89e634c3c36ee |
21-Dec-2017 |
Kweku Adams <kwekua@google.com> |
incidentd: parsing ps dump into proto. Also changing from execv to execvp so that we don't have to specify the full command path. Bug: 65750831 Test: atest incident_helper_test Change-Id: I92191afff4e7f9a6d08ea22ecfc2de5623d3bde5
puInfoParser.cpp
ernelWakesParser.cpp
sParser.cpp
sParser.h
|
59e6fd792deb31512027548342b66af25056e237 |
28-Dec-2017 |
Kweku Adams <kwekua@google.com> |
incidentd: Parsing battery_type data to proto. Bug: 65750835 Test: atest incident_helper_test Change-Id: I3afefcfbd68924f8b6bd384cf1c7a41daeb243e3
atteryTypeParser.cpp
atteryTypeParser.h
|
526aa056bd555fb3e21201088f94fcdff22b1eac |
21-Dec-2017 |
Yi Jin <jinyithu@google.com> |
Modify system properties proto Test: atest incident_helper_test Change-Id: Id81922e7f4412090e3b72b3a0fc1151995635885
ystemPropertiesParser.cpp
|
f77a07df1cc71d1f25454de1b5c7da301541b837 |
12-Dec-2017 |
Yi Jin <jinyithu@google.com> |
Create a new stream option which generates field name to id mapping recursively for all its submessages. Also fix the wrong prefix for ro.build.version.XXX in proto. It is safe to adjust proto number for now since it is not used yet. Bug: 68774852 Test: atest incident_helper_test Change-Id: I46e43a407da6efc393eb3c39733aaf25a5cceb13
ystemPropertiesParser.cpp
|
9299af93945376c4390cc24f5a0c1844997a694b |
06-Dec-2017 |
Yi Jin <jinyithu@google.com> |
Refactor system properties protos to just include the list treble team defines http://go/treble-sysprop-compatibility. Also refactored system properties proto to have nested proto definitions. The reason to do it is to have flat proto definition makes it super hard to manage its field numbers as well as hard to use. Since we have a predefined list. Support parsing nested proto here. Bug: 68774852 Test: unit tested and on device test $ out/host/linux-x86/bin/incident_report -w system_properties Change-Id: Icfc7cdcae184fb204c81e6434d21399aa84a1285
ystemPropertiesParser.cpp
|
0dc7e54400da07e98cc05e8531465df7501e81a5 |
20-Nov-2017 |
Yi Jin <jinyithu@google.com> |
Merge "Implement Cpu Freq Section"
|
0eb223496c3dee6bd0a33ea4fa664fb92ef557cc |
07-Nov-2017 |
Yi Jin <jinyithu@google.com> |
Implement Cpu Freq Section When poll from sysfs, revents return POLLERR by default, handles this edge case in this cl. Bug: 68774444 Test: unit tested + on device tests Change-Id: I23540299c026d3e7676497f56690e9f8646a47bd
puFreqParser.cpp
puFreqParser.h
|
0dfa752e67116940f04a988ca4a264f7140dd81f |
07-Nov-2017 |
Yi Jin <jinyithu@google.com> |
Implement System Properties Section Bug: 68774852 Test: unit tested and on device tests Change-Id: I0d4aadf8d4203fe56e35bbfb77e5c532116fd27e
ystemPropertiesParser.cpp
ystemPropertiesParser.h
|
e2f7f79d023f0b3ba2fee374492dde61f525ece6 |
02-Nov-2017 |
Yi Jin <jinyithu@google.com> |
Implement Cpu Info Section Support carriage return in Read class, and add a new way to parse lines which is not able to split purly by delimiters Bug: 65642861 Test: unit test and on device test Change-Id: Ib82dd4e458bb7d2fa33462b23fbe11b828325916
puInfoParser.cpp
puInfoParser.h
ernelWakesParser.cpp
ageTypeInfoParser.cpp
rocrankParser.cpp
|
04625ad4886a478bf74bbfc13937c10fa63eb272 |
18-Oct-2017 |
Yi Jin <jinyithu@google.com> |
Refactor incident_helper to use protoutil and cppstream plugin. 1. Split the parsers to its own file to prevent all the parsers in one gaint file. 2. Completely get rid of protobuf-cpp-full in incident_helper, use ProtoOutputStream and cppstream instead, the incident_helper binary is reduced from ~500K to ~113K. 3. Write data to protobuf even its values are zero/default, the reason is for example we have a repeated int32 orders = 1; and people explicitly append 0 so the total repeated field has 10 values, if zero is not written to serialized data, this repeated field will only have 9 values which is not what we want at first place. This also aligns with the default protobuf serialization behavior in incident_helper_test. 4. Use Android.bp for protoutil lib since it is not able to depend on libs compiled by .mk file, it works the other way. 5. Add a new custom message option for streaming_proto, if specified, the cppstream will create extra metadata to get field ids by field name. A Table class is created in incident_helper to use it. Bug: 67860303 Test: unit tested as well as on device test Change-Id: I8e136fd15f343a4a623d20910ec64b622b478a3e
ernelWakesParser.cpp
ernelWakesParser.h
ageTypeInfoParser.cpp
ageTypeInfoParser.h
rocrankParser.cpp
rocrankParser.h
|