summaryrefslogtreecommitdiff
path: root/util/ec_panicinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* util/ec_parse_panicinfo: Parse older structuresNicolas Boichat2021-03-101-13/+48
| | | | | | | | | | | | | | | | | | | | | | | | For devices on older FW branches, we need to be able to parse panicinfo even if the size of the structures don't match. Realign trailer (struct_size and magic) for that purpose. Also, add WARNING/ERROR tags to messages so that we can grep for those in a test. Make a similar change in ectool (use the return value that indicates the size). BUG=b:182087232 TEST=make build/bds/util/ec_parse_panicinfo TEST=build/bds/util/ec_parse_panicinfo < \ ./upload_file_eccrash-857e3693bfce1e1f.eccrash BRANCH=none Change-Id: I97650aa3085e753b0a2256058402e33d11238f52 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738577 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* util: support ec_parse_panicinfo to parse RV32iTzung-Bi Shih2020-12-251-0/+31
| | | | | | | | | | | | | BRANCH=none BUG=b:176269554 TEST=emerge-asurada ec-utils && cros deploy $DUT ec-utils && /usr/sbin/ec_parse_panicinfo < x.eccrash Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Change-Id: I7c46af99d5801a9ffaa7b07b61dafc4ec6227264 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2603078 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* common: replace 1 << digits, with BIT(digits)Gwendal Grignou2019-03-261-0/+1
| | | | | | | | | | | | | | | | Requested for linux integration, use BIT instead of 1 << First step replace bit operation with operand containing only digits. Fix an error in motion_lid try to set bit 31 of a signed integer. BUG=None BRANCH=None TEST=compile Change-Id: Ie843611f2f68e241f0f40d4067f7ade726951d29 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1518659 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* util: Add ec_parse_panicinfo tool to parse binary panicinfoNicolas Boichat2016-09-061-0/+125
To be able to parse binary panicinfo from feedback reports, we need a host tool: - Move panicinfo generic parsing functions to a separate C file - Create a new host utility to parse panicinfo BRANCH=none BUG=chromium:643062 TEST=base64 -d | ec_parse_panicinfo Change-Id: Idd8560a2894f270d0ab3a9f654c333135759e57f Reviewed-on: https://chromium-review.googlesource.com/379639 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>