move trusty dump from gs201 to gs-common
Bug: 244504232 Test: adb bugreport Change-Id: I7d92225a02c64a8e7371ba7c25e7ea38e99b1d1a
This commit is contained in:
parent
3ff55a2bd8
commit
8a0f7e41ad
3 changed files with 3 additions and 6 deletions
|
@ -805,6 +805,9 @@ endif
|
||||||
$(call inherit-product, system/core/trusty/trusty-storage.mk)
|
$(call inherit-product, system/core/trusty/trusty-storage.mk)
|
||||||
$(call inherit-product, system/core/trusty/trusty-base.mk)
|
$(call inherit-product, system/core/trusty/trusty-base.mk)
|
||||||
|
|
||||||
|
# Trusty dump
|
||||||
|
include device/google/gs-common/trusty/trusty.mk
|
||||||
|
|
||||||
# Trusty unit test tool
|
# Trusty unit test tool
|
||||||
PRODUCT_PACKAGES_DEBUG += trusty-ut-ctrl \
|
PRODUCT_PACKAGES_DEBUG += trusty-ut-ctrl \
|
||||||
tipc-test
|
tipc-test
|
||||||
|
|
|
@ -235,7 +235,6 @@ Dumpstate::Dumpstate()
|
||||||
{ "aoc", [this](int fd) { dumpAoCSection(fd); } },
|
{ "aoc", [this](int fd) { dumpAoCSection(fd); } },
|
||||||
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
||||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||||
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
|
||||||
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
||||||
},
|
},
|
||||||
mLogSections{
|
mLogSections{
|
||||||
|
@ -1076,10 +1075,6 @@ void Dumpstate::dumpMiscSection(int fd) {
|
||||||
DumpFileToFd(fd, "VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
|
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
|
// Dump items related to LED
|
||||||
void Dumpstate::dumpLEDSection(int fd) {
|
void Dumpstate::dumpLEDSection(int fd) {
|
||||||
struct stat buffer;
|
struct stat buffer;
|
||||||
|
|
|
@ -66,7 +66,6 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
void dumpAoCSection(int fd);
|
void dumpAoCSection(int fd);
|
||||||
void dumpRamdumpSection(int fd);
|
void dumpRamdumpSection(int fd);
|
||||||
void dumpMiscSection(int fd);
|
void dumpMiscSection(int fd);
|
||||||
void dumpTrustySection(int fd);
|
|
||||||
void dumpLEDSection(int fd);
|
void dumpLEDSection(int fd);
|
||||||
|
|
||||||
void dumpLogSection(int fd, int fdModem);
|
void dumpLogSection(int fd, int fdModem);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue