mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
dump mm_event trace into bugreport
This patch creates a pixel owned tracing instance apart from main tracer(i.e., /d/tracing/instances/pixel-trace) so that we will keep a certain mount of data without interference from others(e.g., traceur, atrace and so on). It's important to not lose the information to investigate problems at bugreport. This CL also adds dumpstatez and bugreport property hooks to stop/restart the trace during bugreport to keep more old trace. Allow dumpstate read mm_event trace from /d/tracing/instances/ pixel-trace/trace. With that, it could dump the trace into bugreport file. Bug: 116825025 Test: confirm with adb bugreport/bugreport via power menu shortcut/ volume up/down/power key combination. They includes traces in dumpstate_board.txt with kernel turns on CONFIG_MM_EVENT_STAT. Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I699f362089b61247b2937accbd331327563b1e0c
This commit is contained in:
@@ -264,6 +264,8 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
||||
DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports");
|
||||
DumpTouch(fd);
|
||||
RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat descriptors | od -t x1 -w16 -N96"});
|
||||
DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace");
|
||||
|
||||
// Timeout after 3s
|
||||
RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_log"});
|
||||
RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in /sys/class/power_supply/*/uevent ; do echo \"\n------ $f\" ; cat $f ; done"});
|
||||
|
||||
Reference in New Issue
Block a user