1# RUN: yaml2obj %s -o %t 2# RUN: %lldb -c %t -o 'process plugin dump --all' | \ 3# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \ 4# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \ 5# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \ 6# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \ 7# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s 8# RUN: %lldb -c %t -o 'process plugin dump -a' | \ 9# RUN: FileCheck --check-prefix=CHECKDIR --check-prefix=CHECKCPU \ 10# RUN: --check-prefix=CHECKSTATUS --check-prefix=CHECKLSB \ 11# RUN: --check-prefix=CHECKCMD --check-prefix=CHECKENV \ 12# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP \ 13# RUN: --check-prefix=CHECKSTAT --check-prefix=CHECKUP --check-prefix=CHECKFD %s 14# RUN: %lldb -c %t -o 'process plugin dump --directory' | FileCheck --check-prefix=CHECKDIR %s 15# RUN: %lldb -c %t -o 'process plugin dump -d' | FileCheck --check-prefix=CHECKDIR %s 16# RUN: %lldb -c %t -o 'process plugin dump --linux' | \ 17# RUN: FileCheck --check-prefix=CHECKCPU --check-prefix=CHECKSTATUS \ 18# RUN: --check-prefix=CHECKLSB --check-prefix=CHECKCMD --check-prefix=CHECKENV \ 19# RUN: --check-prefix=CHECKAUX --check-prefix=CHECKMAP --check-prefix=CHECKSTAT \ 20# RUN: --check-prefix=CHECKUP --check-prefix=CHECKFD %s 21# RUN: %lldb -c %t -o 'process plugin dump --cpuinfo' | FileCheck --check-prefix=CHECKCPU %s 22# RUN: %lldb -c %t -o 'process plugin dump -C' | FileCheck --check-prefix=CHECKCPU %s 23# RUN: %lldb -c %t -o 'process plugin dump --status' | FileCheck --check-prefix=CHECKSTATUS %s 24# RUN: %lldb -c %t -o 'process plugin dump -s' | FileCheck --check-prefix=CHECKSTATUS %s 25# RUN: %lldb -c %t -o 'process plugin dump --lsb-release' | FileCheck --check-prefix=CHECKLSB %s 26# RUN: %lldb -c %t -o 'process plugin dump -r' | FileCheck --check-prefix=CHECKLSB %s 27# RUN: %lldb -c %t -o 'process plugin dump --cmdline' | FileCheck --check-prefix=CHECKCMD %s 28# RUN: %lldb -c %t -o 'process plugin dump -c' | FileCheck --check-prefix=CHECKCMD %s 29# RUN: %lldb -c %t -o 'process plugin dump --environ' | FileCheck --check-prefix=CHECKENV %s 30# RUN: %lldb -c %t -o 'process plugin dump -e' | FileCheck --check-prefix=CHECKENV %s 31# RUN: %lldb -c %t -o 'process plugin dump --auxv' | FileCheck --check-prefix=CHECKAUX %s 32# RUN: %lldb -c %t -o 'process plugin dump -x' | FileCheck --check-prefix=CHECKAUX %s 33# RUN: %lldb -c %t -o 'process plugin dump --maps' | FileCheck --check-prefix=CHECKMAP %s 34# RUN: %lldb -c %t -o 'process plugin dump -m' | FileCheck --check-prefix=CHECKMAP %s 35# RUN: %lldb -c %t -o 'process plugin dump --stat' | FileCheck --check-prefix=CHECKSTAT %s 36# RUN: %lldb -c %t -o 'process plugin dump -S' | FileCheck --check-prefix=CHECKSTAT %s 37# RUN: %lldb -c %t -o 'process plugin dump --uptime' | FileCheck --check-prefix=CHECKUP %s 38# RUN: %lldb -c %t -o 'process plugin dump -u' | FileCheck --check-prefix=CHECKUP %s 39# RUN: %lldb -c %t -o 'process plugin dump --fd' | FileCheck --check-prefix=CHECKFD %s 40# RUN: %lldb -c %t -o 'process plugin dump -f' | FileCheck --check-prefix=CHECKFD %s 41 42# CHECKDIR: RVA SIZE TYPE StreamType 43# CHECKDIR-NEXT: ---------- ---------- ---------- -------------------------- 44# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000038 0x00000007 SystemInfo 45# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x0000000f MiscInfo 46# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000010 0x47670003 LinuxCPUInfo 47# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001a 0x47670004 LinuxProcStatus 48# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670005 LinuxLSBRelease 49# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670006 LinuxCMDLine 50# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000001b 0x47670007 LinuxEnviron 51# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x47670008 LinuxAuxv 52# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x000000bb 0x47670009 LinuxMaps 53# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x4767000b LinuxProcStat 54# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000000e 0x4767000c LinuxProcUptime 55# CHECKDIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000016 0x4767000d LinuxProcFD 56 57--- !minidump 58Streams: 59 - Type: SystemInfo 60 Processor Arch: BP_ARM64 61 Platform ID: Linux 62 CSD Version: '15E216' 63 CPU: 64 CPUID: 0x00000000 65 - Type: MiscInfo 66 Content: 00000000010000007B000000000000000000000000000000 67 - Type: LinuxCPUInfo 68 Text: | 69 cpu info output 70 71# CHECKCPU: /proc/cpuinfo: 72# CHECKCPU-NEXT: cpu info output 73 - Type: LinuxProcStatus 74 Text: | 75 /proc/<pid>/status output 76 77# CHECKSTATUS: /proc/PID/status: 78# CHECKSTATUS-NEXT: /proc/<pid>/status output 79 - Type: LinuxLSBRelease 80 Text: | 81 /etc/lsb-release output 82 83# CHECKLSB: /etc/lsb-release: 84# CHECKLSB-NEXT: /etc/lsb-release output 85 - Type: LinuxCMDLine 86 Text: | 87 /proc/<pid>/cmdline output 88 89# CHECKCMD: /proc/PID/cmdline: 90# CHECKCMD-NEXT: /proc/<pid>/cmdline output 91 - Type: LinuxEnviron 92 Content: 2F70726F632F3C7069643E2F656E7669726F6E206F757470757400 93# CHECKENV: /proc/PID/environ: 94# CHECKENV-NEXT: /proc/<pid>/environ output 95 - Type: LinuxAuxv 96 Content: 2F70726F632F3C7069643E2F61757876206F757470757400 97# CHECKAUX: /proc/PID/auxv: 98# CHECKAUX-NEXT: 0x00000000: 2f 70 72 6f 63 2f 3c 70 69 64 3e 2f 61 75 78 76 /proc/<pid>/auxv 99# CHECKAUX-NEXT: 0x00000010: 20 6f 75 74 70 75 74 00 output. 100 - Type: LinuxMaps 101 Text: | 102 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process 103 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process 104 400dc000-400dd000 rw-p 00000000 00:00 0 105 106# CHECKMAP: /proc/PID/maps: 107# CHECKMAP-NEXT: 400d9000-400db000 r-xp 00000000 b3:04 227 /system/bin/app_process 108# CHECKMAP-NEXT: 400db000-400dc000 r--p 00001000 b3:04 227 /system/bin/app_process 109# CHECKMAP-NEXT: 400dc000-400dd000 rw-p 00000000 00:00 0 110 - Type: LinuxProcStat 111 Text: | 112 /proc/<pid>/stat output 113 114# CHECKSTAT: /proc/PID/stat: 115# CHECKSTAT-NEXT: /proc/<pid>/stat output 116 - Type: LinuxProcUptime 117 Text: | 118 uptime output 119 120# CHECKUP: uptime: 121# CHECKUP-NEXT: uptime output 122 - Type: LinuxProcFD 123 Content: 2F70726F632F3C7069643E2F6664206F757470757400 124# CHECKFD: /proc/PID/fd: 125# CHECKFD-NEXT: /proc/<pid>/fd output 126... 127