Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 18 of 18) sorted by relevance

/system/core/toolbox/
Dlsof.c51 char cmdline[CMD_DISPLAY_MAX]; member
91 info->cmdline, info->pid, info->user, type, in print_type()
123 info->cmdline, info->pid, info->user, "mem", in print_maps()
147 info->cmdline, info->pid, info->user, "FDS", in print_fds()
197 char cmdline[PATH_MAX]; in lsof_dumpinfo() local
198 int numRead = read(fd, cmdline, sizeof(cmdline) - 1); in lsof_dumpinfo()
206 cmdline[numRead] = '\0'; in lsof_dumpinfo()
209 strlcpy(info.cmdline, basename(cmdline), sizeof(info.cmdline)); in lsof_dumpinfo()
Dps.c37 char cmdline[1024]; in ps_line() local
54 cmdline[0] = 0; in ps_line()
58 sprintf(cmdline, "/proc/%d/cmdline", pid); in ps_line()
60 fd = open(cmdline, O_RDONLY); in ps_line()
64 r = read(fd, cmdline, 1023); in ps_line()
68 cmdline[r] = 0; in ps_line()
157 … printf("%-30s %-9s %-5d %-5d %s\n", macline, user, pid, ppid, cmdline[0] ? cmdline : name); in ps_line()
173 printf(" %08x %08x %s %s", wchan, eip, state, cmdline[0] ? cmdline : name); in ps_line()
/system/core/init/
Dbootchart.c126 char cmdline[1024]; in log_header() local
139 proc_read("/proc/cmdline", cmdline, sizeof(cmdline)); in log_header()
156 fprintf(out, "system.kernel.options = %s\n", cmdline); in log_header()
256 char cmdline[1024]; in do_log_procs() local
262 proc_read(filename, cmdline, sizeof(cmdline)); in do_log_procs()
271 int len2 = strlen(cmdline); in do_log_procs()
280 file_buff_write(log, cmdline, strlen(cmdline)); in do_log_procs()
316 char cmdline[1024]; in bootchart_init() local
319 proc_read( "/proc/cmdline", cmdline, sizeof(cmdline) ); in bootchart_init()
320 s = strstr(cmdline, KERNEL_OPTION); in bootchart_init()
Dutil.c446 char cmdline[1024]; in import_kernel_cmdline() local
452 int n = read(fd, cmdline, 1023); in import_kernel_cmdline()
456 if (n > 0 && cmdline[n-1] == '\n') n--; in import_kernel_cmdline()
458 cmdline[n] = 0; in import_kernel_cmdline()
461 cmdline[0] = 0; in import_kernel_cmdline()
464 ptr = cmdline; in import_kernel_cmdline()
/system/core/libcutils/
Dtrace.c60 static bool atrace_is_cmdline_match(const char* cmdline) in atrace_is_cmdline_match() argument
75 if (strcmp(cmdline, start) == 0) { in atrace_is_cmdline_match()
103 char cmdline[4096]; in atrace_is_app_tracing_enabled() local
104 if (fgets(cmdline, sizeof(cmdline), file)) { in atrace_is_app_tracing_enabled()
105 result = atrace_is_cmdline_match(cmdline); in atrace_is_app_tracing_enabled()
/system/core/libmemtrack/
Dmemtrack_test.c112 char cmdline[256]; in main() local
120 getprocname(pid, cmdline, (int)sizeof(cmdline)); in main()
138 v1, v2, v3, v4, v5, v6, cmdline); in main()
/system/core/fastboot/
Dbootimg.c35 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline) in bootimg_set_cmdline() argument
37 strcpy((char*) h->cmdline, cmdline); in bootimg_set_cmdline()
Dfastboot.c62 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline);
73 static const char *cmdline = 0; variable
331 unsigned *sz, const char *cmdline) in load_bootable_image() argument
351 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline); in load_bootable_image()
379 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline); in load_bootable_image()
916 cmdline = optarg; in main()
1040 data = load_bootable_image(kname, rname, &sz, cmdline); in main()
1071 data = load_bootable_image(kname, rname, &sz, cmdline); in main()
/system/core/fastbootd/
Dbootimg.h58 unsigned char cmdline[BOOT_ARGS_SIZE]; member
96 void bootimg_set_cmdline(boot_img_hdr *hdr, const char *cmdline);
Dcommands.c56 hdr.cmdline[BOOT_ARGS_SIZE-1] = 0; in cmd_boot()
/system/core/mkbootimg/
Dmkbootimg.c105 char *cmdline = ""; in main() local
140 cmdline = val; in main()
195 if(strlen(cmdline) > (BOOT_ARGS_SIZE - 1)) { in main()
199 strcpy((char*)hdr.cmdline, cmdline); in main()
Dbootimg.h47 unsigned char cmdline[BOOT_ARGS_SIZE]; member
/system/core/logcat/
Dlogcat.cpp599 static char cmdline[1024]; in main() local
603 int n = read(fd, cmdline, sizeof(cmdline)-1 ); in main()
605 cmdline[n] = 0; in main()
608 cmdline[0] = 0; in main()
611 logcat = strstr( cmdline, KERNEL_OPTION ); in main()
612 console = strstr( cmdline, CONSOLE_OPTION ); in main()
/system/extras/librank/
Dlibrank.c33 char cmdline[MAX_CMDLINE]; member
169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); in get_process()
199 char cmdline[256]; in main() local
413 pi->cmdline, in main()
/system/extras/procrank/
Dprocrank.c128 char cmdline[256]; // this must be within the range of int in main() local
258 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) { in main()
292 printf("%s\n", cmdline); in main()
/system/core/sh/
Doptions.c152 options(int cmdline) in options() argument
159 if (cmdline) in options()
166 if (!cmdline) { in options()
183 if (c == 'c' && cmdline) { in options()
/system/extras/ksmutils/
Dksminfo.c76 char cmdline[256]; // this must be within the range of int in main() local
142 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) { in main()
143 cmdline[0] = '\0'; in main()
145 printf("%s (%u):\n", cmdline, *pids); in main()
/system/core/rootdir/
Dinit.rc352 chown root radio /proc/cmdline