Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 14 of 14) 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.c440 char cmdline[1024]; in import_kernel_cmdline() local
446 int n = read(fd, cmdline, 1023); in import_kernel_cmdline()
450 if (n > 0 && cmdline[n-1] == '\n') n--; in import_kernel_cmdline()
452 cmdline[n] = 0; in import_kernel_cmdline()
455 cmdline[0] = 0; in import_kernel_cmdline()
458 ptr = cmdline; in import_kernel_cmdline()
/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.c47 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline);
58 static const char *cmdline = 0; variable
251 unsigned *sz, const char *cmdline) in load_bootable_image() argument
271 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline); in load_bootable_image()
296 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline); in load_bootable_image()
621 cmdline = argv[1]; in main()
674 data = load_bootable_image(page_size, kname, rname, &sz, cmdline); in main()
704 data = load_bootable_image(page_size, kname, rname, &sz, cmdline); in main()
/system/core/mkbootimg/
Dmkbootimg.c105 char *cmdline = ""; in main() local
141 cmdline = val; in main()
187 if(strlen(cmdline) > (BOOT_ARGS_SIZE - 1)) { in main()
191 strcpy((char*)hdr.cmdline, cmdline); in main()
Dbootimg.h47 unsigned char cmdline[BOOT_ARGS_SIZE]; member
/system/extras/procrank/
Dprocrank.c125 char cmdline[256]; // this must be within the range of int in main() local
232 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) { in main()
250 cmdline in main()
259 cmdline in main()
/system/extras/librank/
Dlibrank.c31 char cmdline[MAX_CMDLINE]; member
160 getprocname(pid, process->cmdline, sizeof(process->cmdline)); in get_process()
166 char cmdline[256]; in main() local
289 pi->cmdline, in main()
/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/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/vold/
Dcryptfs.c985 char cmdline[256]; in cryptfs_enable_wipe() local
989 snprintf(cmdline, sizeof(cmdline), "/system/bin/make_ext4fs -a /data -l %lld %s", in cryptfs_enable_wipe()
991 SLOGI("Making empty filesystem with command %s\n", cmdline); in cryptfs_enable_wipe()
993 … snprintf(cmdline, sizeof(cmdline), "/system/bin/newfs_msdos -F 32 -O android -c 8 -s %lld %s", in cryptfs_enable_wipe()
995 SLOGI("Making empty filesystem with command %s\n", cmdline); in cryptfs_enable_wipe()
1001 if (system(cmdline)) { in cryptfs_enable_wipe()
/system/core/rootdir/
Dinit.rc297 chown root radio /proc/cmdline