move trusty dump from gs201 to gs-common

Bug: 244504232
Test: adb bugreport
Change-Id: I7d92225a02c64a8e7371ba7c25e7ea38e99b1d1a
This commit is contained in:
Adam Shih 2022-09-19 11:29:56 +08:00
parent 3ff55a2bd8
commit 8a0f7e41ad
3 changed files with 3 additions and 6 deletions

View file

@ -235,7 +235,6 @@ Dumpstate::Dumpstate()
{ "aoc", [this](int fd) { dumpAoCSection(fd); } },
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
{ "led", [this](int fd) { dumpLEDSection(fd); } },
},
mLogSections{
@ -1076,10 +1075,6 @@ void Dumpstate::dumpMiscSection(int fd) {
DumpFileToFd(fd, "VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
}
void Dumpstate::dumpTrustySection(int fd) {
RunCommandToFd(fd, "Trusty TEE0 Logs", {"/vendor/bin/sh", "-c", "cat /dev/trusty-log0"}, CommandOptions::WithTimeout(1).Build());
}
// Dump items related to LED
void Dumpstate::dumpLEDSection(int fd) {
struct stat buffer;