Lines Matching refs:fd

64 void DumpstateDevice::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()
110 void DumpstateDevice::dumpModem(int fd, int fdModem) in dumpModem() argument
128 …RunCommandToFd(fd, "MKDIR MODEM LOG", {"/vendor/bin/mkdir", "-p", modemLogAllDir.c_str()}, Command… in dumpModem()
131 …RunCommandToFd(fd, "MODEM RFS INFO", {"/vendor/bin/find /data/vendor/rfs/mpss/OEMFI/"}, CommandOpt… in dumpModem()
132 …RunCommandToFd(fd, "MODEM DIAG SYSTEM PROPERTIES", {"/vendor/bin/getprop | grep vendor.sys.modem.d… in dumpModem()
163 …RunCommandToFd(fd, "SMLOG DUMP", {"smlog_dump", "-d", "-o", modemLogAllDir.c_str()}, CommandOption… in dumpModem()
179 …dumpLogs(fd, diagLogDir, modemLogAllDir, android::base::GetIntProperty(DIAG_MDLOG_NUMBER_BUGREPORT… in dumpModem()
188 …dumpLogs(fd, tcpdumpLogDir, modemLogAllDir, android::base::GetIntProperty(TCPDUMP_NUMBER_BUGREPORT… in dumpModem()
192 …RunCommandToFd(fd, "CP MODEM LOG", {"/vendor/bin/cp", logFile.c_str(), modemLogAllDir.c_str()}, Co… in dumpModem()
195 dumpLogs(fd, extendedLogDir, modemLogAllDir, 100, EXTENDED_LOG_PREFIX); in dumpModem()
198 …RunCommandToFd(fd, "TAR LOG", {"/vendor/bin/tar", "cvf", modemLogCombined.c_str(), "-C", modemLogA… in dumpModem()
199 …RunCommandToFd(fd, "CHG PERM", {"/vendor/bin/chmod", "a+w", modemLogCombined.c_str()}, CommandOpti… in dumpModem()
224 …RunCommandToFd(fd, "RM MODEM DIR", { "/vendor/bin/rm", "-r", modemLogAllDir.c_str()}, CommandOptio… in dumpModem()
225 …RunCommandToFd(fd, "RM LOG", { "/vendor/bin/rm", modemLogCombined.c_str()}, CommandOptions::WithTi… in dumpModem()
228 static void DumpTouch(int fd) { in DumpTouch() argument
230 DumpFileToFd(fd, "LSI touch firmware version", in DumpTouch()
232 DumpFileToFd(fd, "LSI touch status", in DumpTouch()
234 RunCommandToFd(fd, "Mutual Raw Data", in DumpTouch()
238 RunCommandToFd(fd, "Mutual Raw Cap", in DumpTouch()
242 RunCommandToFd(fd, "Mutual Strength", in DumpTouch()
246 RunCommandToFd(fd, "Self Raw", in DumpTouch()
250 RunCommandToFd(fd, "Self Strength", in DumpTouch()
256 DumpFileToFd(fd, "STM touch firmware version", in DumpTouch()
258 DumpFileToFd(fd, "STM touch status", in DumpTouch()
260 RunCommandToFd(fd, "Mutual Raw", in DumpTouch()
264 RunCommandToFd(fd, "Mutual Strength", in DumpTouch()
268 RunCommandToFd(fd, "Self Raw", in DumpTouch()
275 static void DumpF2FS(int fd) { in DumpF2FS() argument
276 DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); in DumpF2FS()
277 DumpFileToFd(fd, "F2FS - fragmentation", "/proc/fs/f2fs/dm-6/segment_info"); in DumpF2FS()
280 static void DumpUFS(int fd) { in DumpUFS() argument
281 DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model"); in DumpUFS()
282 DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev"); in DumpUFS()
283 DumpFileToFd(fd, "UFS size", "/sys/block/sda/size"); in DumpUFS()
284 DumpFileToFd(fd, "UFS show_hba", "/sys/kernel/debug/ufshcd0/show_hba"); in DumpUFS()
285 DumpFileToFd(fd, "UFS err_stats", "/sys/kernel/debug/ufshcd0/stats/err_stats"); in DumpUFS()
286 DumpFileToFd(fd, "UFS io_stats", "/sys/kernel/debug/ufshcd0/stats/io_stats"); in DumpUFS()
287 DumpFileToFd(fd, "UFS req_stats", "/sys/kernel/debug/ufshcd0/stats/req_stats"); in DumpUFS()
291 … DumpFileToFd(fd, "UFS Slow IO Read", "/sys/devices/platform/soc/" + bootdev + "/slowio_read_cnt"); in DumpUFS()
292 …DumpFileToFd(fd, "UFS Slow IO Write", "/sys/devices/platform/soc/" + bootdev + "/slowio_write_cnt"… in DumpUFS()
293 …DumpFileToFd(fd, "UFS Slow IO Unmap", "/sys/devices/platform/soc/" + bootdev + "/slowio_unmap_cnt"… in DumpUFS()
294 … DumpFileToFd(fd, "UFS Slow IO Sync", "/sys/devices/platform/soc/" + bootdev + "/slowio_sync_cnt"); in DumpUFS()
297 RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", ufs_health.c_str()}); in DumpUFS()
301 static void DumpPower(int fd) { in DumpPower() argument
302 RunCommandToFd(fd, "Power Stats Times", {"/vendor/bin/sh", "-c", in DumpPower()
305 DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats"); in DumpPower()
306 DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats"); in DumpPower()
307 DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats"); in DumpPower()
310 static void DumpVibrator(int fd) { in DumpVibrator() argument
329 DumpFileToFd(fd, "Vibrator", dir+file); in DumpVibrator()
345 int fd = handle->data[0]; in dumpstateBoard() local
346 if (fd < 0) { in dumpstateBoard()
351 …RunCommandToFd(fd, "Notify modem", {"/vendor/bin/modem_svc", "-s"}, CommandOptions::WithTimeout(1)… in dumpstateBoard()
352 RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"}); in dumpstateBoard()
353 DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number"); in dumpstateBoard()
354 DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present"); in dumpstateBoard()
355 DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online"); in dumpstateBoard()
356 DumpTouch(fd); in dumpstateBoard()
358 DumpF2FS(fd); in dumpstateBoard()
359 DumpUFS(fd); in dumpstateBoard()
361 DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts"); in dumpstateBoard()
363 DumpPower(fd); in dumpstateBoard()
365 DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats"); in dumpstateBoard()
366 DumpFileToFd(fd, "WLAN Connect Info", "/d/wlan0/connect_info"); in dumpstateBoard()
367 DumpFileToFd(fd, "WLAN Offload Info", "/d/wlan0/offload_info"); in dumpstateBoard()
368 DumpFileToFd(fd, "WLAN Roaming Stats", "/d/wlan0/roam_stats"); in dumpstateBoard()
369 DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats"); in dumpstateBoard()
370 DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log"); in dumpstateBoard()
371 …RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in … in dumpstateBoard()
372 DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo"); in dumpstateBoard()
373 …RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/thermal* … in dumpstateBoard()
374 …RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c", "for f in /sys/class/t… in dumpstateBoard()
376 fd, "LMH info", in dumpstateBoard()
380 …RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/c… in dumpstateBoard()
381 …RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu… in dumpstateBoard()
382 …RunCommandToFd(fd, "Easel debug info", {"/vendor/bin/sh", "-c", "for f in `ls /sys/devices/platfor… in dumpstateBoard()
383 DumpFileToFd(fd, "MDP xlogs", "/data/vendor/display/mdp_xlog"); in dumpstateBoard()
384 DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0"); in dumpstateBoard()
385 DumpFileToFd(fd, "PD Engine", "/d/logbuffer/usbpd"); in dumpstateBoard()
386 DumpFileToFd(fd, "smb-lib", "/d/logbuffer/smblib"); in dumpstateBoard()
387 DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports"); in dumpstateBoard()
388 DumpFileToFd(fd, "ipc-servers", "/d/msm_ipc_router/dump_servers"); in dumpstateBoard()
389 RunCommandToFd(fd, "ipc-logs", in dumpstateBoard()
393 …RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1… in dumpstateBoard()
394 …RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/po… in dumpstateBoard()
395 …RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*… in dumpstateBoard()
396 DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins"); in dumpstateBoard()
397 DumpFileToFd(fd, "FG cycle count", "/sys/class/power_supply/maxfg/cycle_counts_bins"); in dumpstateBoard()
398 DumpFileToFd(fd, "Maxim FG History", "/dev/maxfg_history"); in dumpstateBoard()
399 DumpFileToFd(fd, "Maxim FG registers", "/d/regmap/4-0036/registers"); in dumpstateBoard()
400 DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers"); in dumpstateBoard()
401 …RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 50… in dumpstateBoard()
402 DumpFileToFd(fd, "WLC VER", "/sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/version"); in dumpstateBoard()
403 DumpFileToFd(fd, "WLC STATUS", "/sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/status"); in dumpstateBoard()
405 …RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base… in dumpstateBoard()
406 DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt"); in dumpstateBoard()
407 DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace"); in dumpstateBoard()
411 …RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_… in dumpstateBoard()
416 dumpModem(fd, fdModem); in dumpstateBoard()
420 RunCommandToFd(fd, "Citadel VERSION", {"/vendor/bin/hw/citadel_updater", "-lv"}); in dumpstateBoard()
421 RunCommandToFd(fd, "Citadel STATS", {"/vendor/bin/hw/citadel_updater", "--stats"}); in dumpstateBoard()
422 RunCommandToFd(fd, "Citadel BOARDID", {"/vendor/bin/hw/citadel_updater", "--board_id"}); in dumpstateBoard()
424 DumpVibrator(fd); in dumpstateBoard()
427 DumpFileToFd(fd, "WLAN DP Trace", "/d/wlan/dpt_stats/dump_set_dpt_logs"); in dumpstateBoard()
430 DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); in dumpstateBoard()