Lines Matching refs:fd
70 static void dumpLogs(int fd, std::string srcDir, std::string destDir, in dumpLogs() argument
106 RunCommandToFd(fd, "CP DIAG LOGS", { "/vendor/bin/sh", "-c", copyCmd.c_str() }, options); in dumpLogs()
247 static void DumpTouch(int fd) { in DumpTouch() argument
249 DumpFileToFd(fd, "LSI touch firmware version", in DumpTouch()
251 DumpFileToFd(fd, "LSI touch status", in DumpTouch()
253 RunCommandToFd(fd, "Mutual Raw Data", in DumpTouch()
257 RunCommandToFd(fd, "Mutual Raw Cap", in DumpTouch()
261 RunCommandToFd(fd, "Mutual Strength", in DumpTouch()
265 RunCommandToFd(fd, "Self Raw", in DumpTouch()
269 RunCommandToFd(fd, "Self Strength", in DumpTouch()
275 DumpFileToFd(fd, "STM touch firmware version", in DumpTouch()
277 DumpFileToFd(fd, "STM touch status", in DumpTouch()
279 RunCommandToFd(fd, "Mutual Raw", in DumpTouch()
283 RunCommandToFd(fd, "Mutual Strength", in DumpTouch()
287 RunCommandToFd(fd, "Self Raw", in DumpTouch()
294 static void DumpSensorLog(int fd) { in DumpSensorLog() argument
299 DumpFileToFd(fd, "sensor log", logPath); in DumpSensorLog()
302 DumpFileToFd(fd, "sensor lastlog", lastlogPath); in DumpSensorLog()
306 static void DumpF2FS(int fd) { in DumpF2FS() argument
307 DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); in DumpF2FS()
308 RunCommandToFd(fd, "F2FS - fragmentation", {"/vendor/bin/sh", "-c", in DumpF2FS()
314 static void DumpUFS(int fd) { in DumpUFS() argument
315 DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model"); in DumpUFS()
316 DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev"); in DumpUFS()
317 DumpFileToFd(fd, "UFS size", "/sys/block/sda/size"); in DumpUFS()
318 DumpFileToFd(fd, "UFS show_hba", "/sys/kernel/debug/ufshcd0/show_hba"); in DumpUFS()
319 DumpFileToFd(fd, "UFS err_stats", "/sys/kernel/debug/ufshcd0/stats/err_stats"); in DumpUFS()
320 DumpFileToFd(fd, "UFS io_stats", "/sys/kernel/debug/ufshcd0/stats/io_stats"); in DumpUFS()
321 DumpFileToFd(fd, "UFS req_stats", "/sys/kernel/debug/ufshcd0/stats/req_stats"); in DumpUFS()
325 … DumpFileToFd(fd, "UFS Slow IO Read", "/sys/devices/platform/soc/" + bootdev + "/slowio_read_cnt"); in DumpUFS()
326 …DumpFileToFd(fd, "UFS Slow IO Write", "/sys/devices/platform/soc/" + bootdev + "/slowio_write_cnt"… in DumpUFS()
327 …DumpFileToFd(fd, "UFS Slow IO Unmap", "/sys/devices/platform/soc/" + bootdev + "/slowio_unmap_cnt"… in DumpUFS()
328 … DumpFileToFd(fd, "UFS Slow IO Sync", "/sys/devices/platform/soc/" + bootdev + "/slowio_sync_cnt"); in DumpUFS()
331 RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", ufs_health.c_str()}); in DumpUFS()
335 static void DumpPower(int fd) { in DumpPower() argument
336 RunCommandToFd(fd, "Power Stats Times", {"/vendor/bin/sh", "-c", in DumpPower()
339 DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats"); in DumpPower()
340 DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats"); in DumpPower()
341 DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats"); in DumpPower()
344 static void DumpVibrator(int fd) { in DumpVibrator() argument
363 DumpFileToFd(fd, "Vibrator", dir+file); in DumpVibrator()
390 int fd = handle->data[0]; in dumpstateBoard_1_1() local
391 if (fd < 0) { in dumpstateBoard_1_1()
412 …RunCommandToFd(fd, "Notify modem", {"/vendor/bin/modem_svc", "-s"}, CommandOptions::WithTimeout(1)… in dumpstateBoard_1_1()
427 RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"}); in dumpstateBoard_1_1()
428 DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number"); in dumpstateBoard_1_1()
429 DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present"); in dumpstateBoard_1_1()
430 DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online"); in dumpstateBoard_1_1()
431 DumpTouch(fd); in dumpstateBoard_1_1()
433 DumpF2FS(fd); in dumpstateBoard_1_1()
434 DumpUFS(fd); in dumpstateBoard_1_1()
436 DumpSensorLog(fd); in dumpstateBoard_1_1()
438 DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts"); in dumpstateBoard_1_1()
440 DumpPower(fd); in dumpstateBoard_1_1()
442 DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats"); in dumpstateBoard_1_1()
443 DumpFileToFd(fd, "WLAN Connect Info", "/d/wlan0/connect_info"); in dumpstateBoard_1_1()
444 DumpFileToFd(fd, "WLAN Offload Info", "/d/wlan0/offload_info"); in dumpstateBoard_1_1()
445 DumpFileToFd(fd, "WLAN Roaming Stats", "/d/wlan0/roam_stats"); in dumpstateBoard_1_1()
446 DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats"); in dumpstateBoard_1_1()
447 DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log"); in dumpstateBoard_1_1()
448 …RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in … in dumpstateBoard_1_1()
449 DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo"); in dumpstateBoard_1_1()
450 …RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/thermal* … in dumpstateBoard_1_1()
451 …RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c", "for f in /sys/class/t… in dumpstateBoard_1_1()
453 fd, "LMH info", in dumpstateBoard_1_1()
457 …RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/c… in dumpstateBoard_1_1()
458 …RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu… in dumpstateBoard_1_1()
459 …RunCommandToFd(fd, "Easel debug info", {"/vendor/bin/sh", "-c", "for f in `ls /sys/devices/platfor… in dumpstateBoard_1_1()
460 DumpFileToFd(fd, "MDP xlogs", "/data/vendor/display/mdp_xlog"); in dumpstateBoard_1_1()
461 DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0"); in dumpstateBoard_1_1()
462 DumpFileToFd(fd, "PD Engine", "/d/logbuffer/usbpd"); in dumpstateBoard_1_1()
463 DumpFileToFd(fd, "smb-lib", "/d/logbuffer/smblib"); in dumpstateBoard_1_1()
464 DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports"); in dumpstateBoard_1_1()
465 DumpFileToFd(fd, "ipc-servers", "/d/msm_ipc_router/dump_servers"); in dumpstateBoard_1_1()
466 RunCommandToFd(fd, "ipc-logs", in dumpstateBoard_1_1()
470 …RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1… in dumpstateBoard_1_1()
471 …RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/po… in dumpstateBoard_1_1()
472 …RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*… in dumpstateBoard_1_1()
473 DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins"); in dumpstateBoard_1_1()
474 DumpFileToFd(fd, "FG cycle count", "/sys/class/power_supply/maxfg/cycle_counts_bins"); in dumpstateBoard_1_1()
475 DumpFileToFd(fd, "Maxim FG History", "/dev/maxfg_history"); in dumpstateBoard_1_1()
476 DumpFileToFd(fd, "Maxim FG registers", "/d/regmap/4-0036/registers"); in dumpstateBoard_1_1()
477 DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers"); in dumpstateBoard_1_1()
478 …RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 50… in dumpstateBoard_1_1()
479 DumpFileToFd(fd, "WLC VER", "/sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/version"); in dumpstateBoard_1_1()
480 DumpFileToFd(fd, "WLC STATUS", "/sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/status"); in dumpstateBoard_1_1()
482 …RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base… in dumpstateBoard_1_1()
483 DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt"); in dumpstateBoard_1_1()
484 DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace"); in dumpstateBoard_1_1()
488 fd, "TEMP-DEFEND Config", in dumpstateBoard_1_1()
493 fd, "DWELL-DEFEND Config", in dumpstateBoard_1_1()
500 …RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_… in dumpstateBoard_1_1()
503 RunCommandToFd(fd, "Citadel VERSION", {"/vendor/bin/hw/citadel_updater", "-lv"}); in dumpstateBoard_1_1()
504 RunCommandToFd(fd, "Citadel STATS", {"/vendor/bin/hw/citadel_updater", "--stats"}); in dumpstateBoard_1_1()
505 RunCommandToFd(fd, "Citadel BOARDID", {"/vendor/bin/hw/citadel_updater", "--board_id"}); in dumpstateBoard_1_1()
507 DumpVibrator(fd); in dumpstateBoard_1_1()
510 DumpFileToFd(fd, "WLAN DP Trace", "/d/wlan/dpt_stats/dump_set_dpt_logs"); in dumpstateBoard_1_1()
513 DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); in dumpstateBoard_1_1()
516 DumpFileToFd(fd, "Fastrpc dma buffer", "/sys/kernel/fastrpc/total_dma_kb"); in dumpstateBoard_1_1()