Lines Matching refs:fd

64 static void dumpLogs(int fd, std::string srcDir, std::string destDir,  in dumpLogs()  argument
100 RunCommandToFd(fd, "CP DIAG LOGS", { "/vendor/bin/sh", "-c", copyCmd.c_str() }, options); in dumpLogs()
237 static void DumpIPCTRT(int fd) { in DumpIPCTRT() argument
238 DumpFileToFd(fd, "MPSS IPCRTR Log", "/sys/kernel/debug/ipc_logging/mpss_IPCRTR/log"); in DumpIPCTRT()
239 DumpFileToFd(fd, "Local IPCRTR Log", "/sys/kernel/debug/ipc_logging/local_IPCRTR/log"); in DumpIPCTRT()
242 static void DumpTouch(int fd) { in DumpTouch() argument
245 DumpFileToFd(fd, "Synaptics touch firmware version", in DumpTouch()
247 DumpFileToFd(fd, "Synaptics touch config version", in DumpTouch()
249 RunCommandToFd(fd, "keep touch stay awake", in DumpTouch()
252 DumpFileToFd(fd, "Synaptics touch noise information", in DumpTouch()
255 RunCommandToFd(fd, "Touch Cm Raw data", in DumpTouch()
259 RunCommandToFd(fd, "Touch Cm Jitter", in DumpTouch()
263 RunCommandToFd(fd, "Touch Cs Raw data", in DumpTouch()
267 RunCommandToFd(fd, "Touch Cs Jitter", in DumpTouch()
272 RunCommandToFd(fd, "keep touch stay awake disable", in DumpTouch()
278 static void DumpF2FS(int fd) { in DumpF2FS() argument
279 DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); in DumpF2FS()
280 DumpFileToFd(fd, "F2FS - fragmentation", "/proc/fs/f2fs/dm-6/segment_info"); in DumpF2FS()
283 static void DumpPower(int fd) { in DumpPower() argument
284 RunCommandToFd(fd, "Power Stats Times", {"/vendor/bin/sh", "-c", in DumpPower()
287 DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats"); in DumpPower()
288 DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats"); in DumpPower()
289 DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats"); in DumpPower()
292 static void DumpeMMC(int fd) { in DumpeMMC() argument
293 DumpFileToFd(fd, "eMMC model", "/sys/block/mmcblk0/device/name"); in DumpeMMC()
294 DumpFileToFd(fd, "eMMC prv", "/sys/block/mmcblk0/device/prv"); in DumpeMMC()
295 DumpFileToFd(fd, "eMMC fwrev", "/sys/block/mmcblk0/device/fwrev"); in DumpeMMC()
296 DumpFileToFd(fd, "eMMC size", "/sys/block/mmcblk0/size"); in DumpeMMC()
297 DumpFileToFd(fd, "eMMC ext_csd", "/sys/kernel/debug/mmc0/mmc0:0001/ext_csd"); in DumpeMMC()
298 DumpFileToFd(fd, "eMMC err_stats", "/sys/kernel/debug/mmc0/err_stats"); in DumpeMMC()
299 DumpFileToFd(fd, "eMMC ring_buffer", "/sys/kernel/debug/mmc0/ring_buffer"); in DumpeMMC()
300 DumpFileToFd(fd, "eMMC host status", "/sys/kernel/debug/mmc0/show_host"); in DumpeMMC()
301 DumpFileToFd(fd, "eMMC io_stats", "/sys/kernel/debug/mmc0/io_stats"); in DumpeMMC()
302 DumpFileToFd(fd, "eMMC req_stats", "/sys/kernel/debug/mmc0/req_stats"); in DumpeMMC()
306 …DumpFileToFd(fd, "eMMC pre_eol_info", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/mmc… in DumpeMMC()
307 …DumpFileToFd(fd, "eMMC life_time", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/mmc0:0… in DumpeMMC()
308 …DumpFileToFd(fd, "eMMC Slow IO Read", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slo… in DumpeMMC()
309 …DumpFileToFd(fd, "eMMC Slow IO Write", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/sl… in DumpeMMC()
310 …DumpFileToFd(fd, "eMMC Slow IO Urgent Read", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/m… in DumpeMMC()
311 …DumpFileToFd(fd, "eMMC Slow IO Urgent Write", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/… in DumpeMMC()
312 …DumpFileToFd(fd, "eMMC Slow IO Discard", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/… in DumpeMMC()
313 …DumpFileToFd(fd, "eMMC Slow IO Flush", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/sl… in DumpeMMC()
324 int fd = handle->data[0]; in dumpstateBoard() local
325 if (fd < 0) { in dumpstateBoard()
330 …RunCommandToFd(fd, "Notify modem", {"/vendor/bin/modem_svc", "-s"}, CommandOptions::WithTimeout(1)… in dumpstateBoard()
342 RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"}); in dumpstateBoard()
343 DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number"); in dumpstateBoard()
344 DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present"); in dumpstateBoard()
345 DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online"); in dumpstateBoard()
348 RunCommandToFd(fd, "Performance Stats History", {"/vendor/bin/perfstatsd", "-d"}); in dumpstateBoard()
351 DumpF2FS(fd); in dumpstateBoard()
352 DumpeMMC(fd); in dumpstateBoard()
354 DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts"); in dumpstateBoard()
356 DumpPower(fd); in dumpstateBoard()
358 DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats"); in dumpstateBoard()
359 DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats"); in dumpstateBoard()
360 DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log"); in dumpstateBoard()
361 …RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in … in dumpstateBoard()
362 DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo"); in dumpstateBoard()
363 …RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/thermal* … in dumpstateBoard()
364 …RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c", "for f in /sys/class/t… in dumpstateBoard()
366 fd, "LMH info", in dumpstateBoard()
370 …RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/c… in dumpstateBoard()
371 …RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu… in dumpstateBoard()
372 …RunCommandToFd(fd, "Easel debug info", {"/vendor/bin/sh", "-c", "for f in `ls /sys/devices/platfor… in dumpstateBoard()
373 DumpFileToFd(fd, "MDP xlogs", "/data/vendor/display/mdp_xlog"); in dumpstateBoard()
374 DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0"); in dumpstateBoard()
375 DumpFileToFd(fd, "PD Engine", "/d/logbuffer/usbpd"); in dumpstateBoard()
376 DumpFileToFd(fd, "smb-lib", "/d/logbuffer/smblib"); in dumpstateBoard()
377 DumpFileToFd(fd, "DWC3 logs", "/d/ipc_logging/a600000.dwc3/log"); in dumpstateBoard()
378 DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports"); in dumpstateBoard()
379 DumpIPCTRT(fd); in dumpstateBoard()
380 DumpTouch(fd); in dumpstateBoard()
381 …RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1… in dumpstateBoard()
383 …RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_… in dumpstateBoard()
384 …RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/po… in dumpstateBoard()
385 …RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*… in dumpstateBoard()
386 DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins"); in dumpstateBoard()
387 DumpFileToFd(fd, "Maxim FG registers", "/d/regmap/4-0036/registers"); in dumpstateBoard()
388 DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers"); in dumpstateBoard()
389 DumpFileToFd(fd, "PM670 PON registers", in dumpstateBoard()
391 DumpFileToFd(fd, "PM670A PON registers", in dumpstateBoard()
393 …RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 50… in dumpstateBoard()
395 …RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base… in dumpstateBoard()
396 DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt"); in dumpstateBoard()
397 DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace"); in dumpstateBoard()
400 RunCommandToFd(fd, "Citadel VERSION", {"/vendor/bin/hw/citadel_updater", "-lv"}); in dumpstateBoard()
401 RunCommandToFd(fd, "Citadel STATS", {"/vendor/bin/hw/citadel_updater", "--stats"}); in dumpstateBoard()
402 RunCommandToFd(fd, "Citadel BOARDID", {"/vendor/bin/hw/citadel_updater", "--board_id"}); in dumpstateBoard()
405 DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); in dumpstateBoard()