Lines Matching refs:fd
57 void DumpstateDevice::dumpDiagLogs(int fd, std::string srcDir, std::string destDir) { in dumpDiagLogs() argument
93 RunCommandToFd(fd, "CP DIAG LOGS", { "/vendor/bin/sh", "-c", copyCmd.c_str() }, options); in dumpDiagLogs()
103 void DumpstateDevice::dumpModem(int fd, int fdModem) in dumpModem() argument
115 RunCommandToFd(fd, "MODEM DIAG SYSTEM PROPERTIES", in dumpModem()
132 …RunCommandToFd(fd, "MKDIR MODEM LOG", { "/vendor/bin/sh", "-c", modemLogMkDirCmd.c_str()}, options… in dumpModem()
140 … RunCommandToFd(fd, "SMLOG DUMP", { "smlog_dump", "-d", "-o", modemLogAllDir.c_str() }, options); in dumpModem()
161 dumpDiagLogs(fd, diagLogDir, modemLogAllDir); in dumpModem()
172 … RunCommandToFd(fd, "CP MODEM LOG", { "/vendor/bin/sh", "-c", copyCmd.c_str() }, options); in dumpModem()
180 … RunCommandToFd(fd, "TAR LOG", { "/vendor/bin/sh", "-c", modemLogTarCmd.c_str()}, options); in dumpModem()
183 … RunCommandToFd(fd, "CHG PERM", { "/vendor/bin/sh", "-c", modemLogPermCmd.c_str()}, options); in dumpModem()
209 … RunCommandToFd(fd, "RM MODEM DIR", { "/vendor/bin/sh", "-c", modemLogClearCmd.c_str()}, options); in dumpModem()
210 RunCommandToFd(fd, "RM LOG", { "/vendor/bin/rm", modemLogCombined.c_str()}, options); in dumpModem()
215 static void DumpPower(int fd) { in DumpPower() argument
216 RunCommandToFd(fd, "Power Stats Times", {"/vendor/bin/sh", "-c", in DumpPower()
219 DumpFileToFd(fd, "RPM Stats", "/d/rpm_stats"); in DumpPower()
220 DumpFileToFd(fd, "Power Management Stats", "/d/rpm_master_stats"); in DumpPower()
221 DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats"); in DumpPower()
224 static void DumpTouch(int fd) { in DumpTouch() argument
226 DumpFileToFd(fd, "Synaptics touch firmware version", in DumpTouch()
228 DumpFileToFd(fd, "Synaptics touch firmware config", in DumpTouch()
232 DumpFileToFd(fd, "STM touch firmware config", in DumpTouch()
234 DumpFileToFd(fd, "STM touch VR Mode", in DumpTouch()
251 int fd = handle->data[0]; in dumpstateBoard() local
252 if (fd < 0) { in dumpstateBoard()
262 dumpModem(fd, fdModem); in dumpstateBoard()
264 RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"}); in dumpstateBoard()
265 DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number"); in dumpstateBoard()
266 DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present"); in dumpstateBoard()
267 DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online"); in dumpstateBoard()
268 DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model"); in dumpstateBoard()
269 DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev"); in dumpstateBoard()
270 DumpFileToFd(fd, "UFS size", "/sys/block/sda/size"); in dumpstateBoard()
271 …RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", "for f in $(find /sys/kernel/debug/ufshc… in dumpstateBoard()
272 DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts"); in dumpstateBoard()
274 DumpPower(fd); in dumpstateBoard()
276 DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats"); in dumpstateBoard()
277 DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats"); in dumpstateBoard()
278 DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log"); in dumpstateBoard()
279 …RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in … in dumpstateBoard()
280 DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo"); in dumpstateBoard()
281 …RunCommandToFd(fd, "Easel debug info", {"/vendor/bin/sh", "-c", "for f in `ls /sys/bus/i2c/devices… in dumpstateBoard()
282 …RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/thermal* … in dumpstateBoard()
283 …RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c", "for f in /sys/class/t… in dumpstateBoard()
284 …RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/c… in dumpstateBoard()
285 …RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu… in dumpstateBoard()
286 DumpFileToFd(fd, "MDP xlogs", "/data/vendor/display/mdp_xlog"); in dumpstateBoard()
287 DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0"); in dumpstateBoard()
288 DumpFileToFd(fd, "PD Engine", "/d/pd_engine/usbpd0"); in dumpstateBoard()
289 DumpFileToFd(fd, "smblib-usb logs", "/d/ipc_logging/smblib/log"); in dumpstateBoard()
290 DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports"); in dumpstateBoard()
291 DumpFileToFd(fd, "ipc-servers", "/d/msm_ipc_router/dump_servers"); in dumpstateBoard()
292 RunCommandToFd(fd, "ipc-logs", in dumpstateBoard()
296 DumpTouch(fd); in dumpstateBoard()
297 …RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1… in dumpstateBoard()
298 DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace"); in dumpstateBoard()
301 …RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_… in dumpstateBoard()
302 …RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in /sys/class/power_… in dumpstateBoard()
303 DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins"); in dumpstateBoard()
304 …RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 50… in dumpstateBoard()
306 DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); in dumpstateBoard()