diff options
| author | 2023-02-15 14:50:31 -0800 | |
|---|---|---|
| committer | 2023-02-15 15:00:01 -0800 | |
| commit | 78aa294c47e362e860472b8b0997fd89486d877c (patch) | |
| tree | 7e8e072c676bf5a9f525645ca9563ee70b180ac9 | |
| parent | c4914ee17a9217a3b46e0a4b08f36ce4cf86ae2d (diff) | |
Add some /proc files to bug reports.
/proc/cpuinfo is useful for knowing which CPU features are enabled on
the target. /proc/meminfo is useful for getting an idea of total memory
consumption at the time of the bug report.
Bug: 269515026
Change-Id: I72bc3270189799061876cd6b26e59f2a53d625da
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 12de33f2db..37e3ebf47b 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1885,6 +1885,9 @@ Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() { } ds.AddDir(PREREBOOT_DATA_DIR, false); add_mountinfo(); + for (const char* path : {"/proc/cpuinfo", "/proc/meminfo"}) { + ds.AddZipEntry(ZIP_ROOT_DIR + path, path); + } DumpIpTablesAsRoot(); DumpDynamicPartitionInfo(); ds.AddDir(OTA_METADATA_DIR, true); |