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

@ -805,6 +805,9 @@ endif
$(call inherit-product, system/core/trusty/trusty-storage.mk)
$(call inherit-product, system/core/trusty/trusty-base.mk)
# Trusty dump
include device/google/gs-common/trusty/trusty.mk
# Trusty unit test tool
PRODUCT_PACKAGES_DEBUG += trusty-ut-ctrl \
tipc-test

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;

View file

@ -66,7 +66,6 @@ class Dumpstate : public BnDumpstateDevice {
void dumpAoCSection(int fd);
void dumpRamdumpSection(int fd);
void dumpMiscSection(int fd);
void dumpTrustySection(int fd);
void dumpLEDSection(int fd);
void dumpLogSection(int fd, int fdModem);