Lines Matching refs:NULL
42 static const char *dump_traces_path = NULL;
48 time_t now = time(NULL); in dumpstate()
74 dump_file(NULL, "/proc/version"); in dumpstate()
78 run_command("UPTIME", 10, "uptime", NULL); in dumpstate()
80 run_command("CPU INFO", 10, "top", "-n", "1", "-d", "1", "-m", "30", "-t", NULL); in dumpstate()
81 run_command("PROCRANK", 20, "procrank", NULL); in dumpstate()
96 run_command("PROCESSES", 10, "ps", "-P", NULL); in dumpstate()
97 run_command("PROCESSES AND THREADS", 10, "ps", "-t", "-p", "-P", NULL); in dumpstate()
98 run_command("LIBRANK", 10, "librank", NULL); in dumpstate()
102 run_command("LIST OF OPEN FILES", 10, SU_PATH, "root", "lsof", NULL); in dumpstate()
108 run_command("SYSTEM LOG", 20, "logcat", "-v", "threadtime", "-d", "*:v", NULL); in dumpstate()
109 run_command("EVENT LOG", 20, "logcat", "-b", "events", "-v", "threadtime", "-d", "*:v", NULL); in dumpstate()
110 run_command("RADIO LOG", 20, "logcat", "-b", "radio", "-v", "threadtime", "-d", "*:v", NULL); in dumpstate()
114 if (dump_traces_path != NULL) { in dumpstate()
164 run_command(NULL, 5, SU_PATH, "root", "screenshot", screenshot_path, NULL); in dumpstate()
170 … "pragma user_version; select * from system; select * from secure; select * from global;", NULL); in dumpstate()
173 run_command("NETWORK INTERFACES", 10, SU_PATH, "root", "netcfg", NULL); in dumpstate()
174 run_command("IP RULES", 10, "ip", "rule", "show", NULL); in dumpstate()
175 run_command("IP RULES v6", 10, "ip", "-6", "rule", "show", NULL); in dumpstate()
176 run_command("ROUTE TABLE 60", 10, "ip", "route", "show", "table", "60", NULL); in dumpstate()
177 run_command("ROUTE TABLE 61 v6", 10, "ip", "-6", "route", "show", "table", "60", NULL); in dumpstate()
178 run_command("ROUTE TABLE 61", 10, "ip", "route", "show", "table", "61", NULL); in dumpstate()
179 run_command("ROUTE TABLE 61 v6", 10, "ip", "-6", "route", "show", "table", "61", NULL); in dumpstate()
181 run_command("IPTABLES", 10, SU_PATH, "root", "iptables", "-L", "-nvx", NULL); in dumpstate()
182 run_command("IP6TABLES", 10, SU_PATH, "root", "ip6tables", "-L", "-nvx", NULL); in dumpstate()
183 run_command("IPTABLE NAT", 10, SU_PATH, "root", "iptables", "-t", "nat", "-L", "-nvx", NULL); in dumpstate()
185 run_command("IPTABLE RAW", 10, SU_PATH, "root", "iptables", "-t", "raw", "-L", "-nvx", NULL); in dumpstate()
186 run_command("IP6TABLE RAW", 10, SU_PATH, "root", "ip6tables", "-t", "raw", "-L", "-nvx", NULL); in dumpstate()
189 SU_PATH, "root", "wpa_cli", "list_networks", NULL); in dumpstate()
193 SU_PATH, "root", "wlutil", "counters", NULL); in dumpstate()
199 … run_command("PING GATEWAY", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL); in dumpstate()
202 run_command("PING DNS1", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL); in dumpstate()
205 run_command("PING DNS2", 10, SU_PATH, "root", "ping", "-c", "3", "-i", ".5", network, NULL); in dumpstate()
208 SU_PATH, "root", "dhdutil", "-i", "wlan0", "dump", NULL); in dumpstate()
210 SU_PATH, "root", "wlutil", "counters", NULL); in dumpstate()
216 run_command("VOLD DUMP", 10, "vdc", "dump", NULL); in dumpstate()
217 run_command("SECURE CONTAINERS", 10, "vdc", "asec", "list", NULL); in dumpstate()
219 run_command("FILESYSTEMS & FREE SPACE", 10, SU_PATH, "root", "df", NULL); in dumpstate()
221 run_command("PACKAGE SETTINGS", 20, SU_PATH, "root", "cat", "/data/system/packages.xml", NULL); in dumpstate()
224 run_command("LAST RADIO LOG", 10, "parse_radio_log", "/proc/last_radio_log", NULL); in dumpstate()
228 dump_file(NULL, "/sys/class/leds/lcd-backlight/brightness"); in dumpstate()
230 dump_file(NULL, "/sys/class/leds/button-backlight/brightness"); in dumpstate()
232 dump_file(NULL, "/sys/class/leds/keyboard-backlight/brightness"); in dumpstate()
234 dump_file(NULL, "/sys/class/leds/lcd-backlight/als"); in dumpstate()
236 dump_file(NULL, "/sys/class/leds/lcd-backlight/registers"); in dumpstate()
264 "vril-dump", NULL); in dumpstate()
267 SU_PATH, "root", "vril-dump", NULL); in dumpstate()
278 run_command("DUMPSYS", 60, "dumpsys", NULL); in dumpstate()
284 run_command("APP ACTIVITIES", 30, "dumpsys", "activity", "all", NULL); in dumpstate()
290 run_command("APP SERVICES", 30, "dumpsys", "activity", "service", "all", NULL); in dumpstate()
296 run_command("APP SERVICES", 30, "dumpsys", "activity", "provider", "all", NULL); in dumpstate()
333 return execl("/system/bin/bugreport", "/system/bin/bugreport", NULL); in main()
378 if (cmdline != NULL) { in main()
430 time_t now = time(NULL); in main()
469 waitpid(gzip_pid, NULL, 0); in main()