/system/core/libcutils/ |
D | trace-dev.c | 67 static bool atrace_is_cmdline_match(const char* cmdline) in atrace_is_cmdline_match() argument 77 if (strcmp(value, cmdline) == 0) { in atrace_is_cmdline_match() 102 char cmdline[4096]; in atrace_is_app_tracing_enabled() local 103 if (fgets(cmdline, sizeof(cmdline), file)) { in atrace_is_app_tracing_enabled() 104 result = atrace_is_cmdline_match(cmdline); in atrace_is_app_tracing_enabled()
|
/system/core/init/ |
D | bootchart.cpp | 130 std::string cmdline; in do_log_procs() local 131 android::base::ReadFileToString(filename, &cmdline); in do_log_procs() 132 const char* full_name = cmdline.c_str(); // So we stop at the first NUL. in do_log_procs() 138 if (!cmdline.empty()) { in do_log_procs() 166 std::string cmdline; in bootchart_init() local 168 android::base::ReadFileToString("/proc/cmdline", &cmdline); in bootchart_init() 170 if ((s = strstr(cmdline.c_str(), KERNEL_OPTION)) != NULL) { in bootchart_init()
|
D | util.cpp | 430 std::string cmdline; in import_kernel_cmdline() local 431 android::base::ReadFileToString("/proc/cmdline", &cmdline); in import_kernel_cmdline() 433 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { in import_kernel_cmdline()
|
/system/core/toolbox/ |
D | ps.c | 47 char cmdline[1024]; in ps_line() local 65 cmdline[0] = 0; in ps_line() 69 sprintf(cmdline, "/proc/%d/cmdline", pid); in ps_line() 71 int fd = open(cmdline, O_RDONLY); in ps_line() 75 r = read(fd, cmdline, 1023); in ps_line() 79 cmdline[r] = 0; in ps_line() 198 printf("%s", cmdline[0] ? cmdline : name); in ps_line()
|
/system/core/libmemtrack/ |
D | memtrack_test.c | 112 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/extras/tests/net_test/ |
D | run_net_test.sh | 94 cmdline=${OPTIONS// / -e } 95 ./scripts/config $cmdline 98 cmdline=${DISABLE_OPTIONS// / -d } 99 ./scripts/config $cmdline
|
D | net_test.sh | 18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 35 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()
|
D | bootimg_utils.h | 36 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline);
|
D | fastboot.cpp | 75 static const char* cmdline = nullptr; variable 404 const char* cmdline) { in load_bootable_image() argument 419 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline); in load_bootable_image() 460 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline); in load_bootable_image() 1301 cmdline = optarg; in main() 1514 data = load_bootable_image(kname, rname, sname, &sz, cmdline); in main() 1552 data = load_bootable_image(kname, rname, sname, &sz, cmdline); in main()
|
/system/tools/aidl/tests/ |
D | end_to_end_tests.cpp | 101 const char* cmdline[argc + 1] = { in TEST_F() local 105 auto options = CppOptions::Parse(argc, cmdline); in TEST_F()
|
/system/extras/librank/ |
D | librank.c | 33 char cmdline[MAX_CMDLINE]; member 169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); in get_process() 199 char cmdline[256]; in main() local 415 pi->cmdline, in main()
|
/system/extras/simpleperf/ |
D | record_file_writer.cpp | 195 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { in WriteCmdlineFeature() argument 200 uint32_t arg_count = cmdline.size(); in WriteCmdlineFeature() 204 for (auto& arg : cmdline) { in WriteCmdlineFeature()
|
D | record_file_reader.cpp | 209 std::vector<std::string> cmdline; in ReadCmdlineFeature() local 217 cmdline.push_back(p); in ReadCmdlineFeature() 220 return cmdline; in ReadCmdlineFeature()
|
D | cmd_record.cpp | 769 std::vector<std::string> cmdline; in DumpAdditionalFeatures() local 770 cmdline.push_back(exec_path); in DumpAdditionalFeatures() 771 cmdline.push_back("record"); in DumpAdditionalFeatures() 772 cmdline.insert(cmdline.end(), args.begin(), args.end()); in DumpAdditionalFeatures() 773 if (!record_file_writer_->WriteCmdlineFeature(cmdline)) { in DumpAdditionalFeatures()
|
D | cmd_dumprecord.cpp | 207 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in DumpFeatureSection() local 208 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str()); in DumpFeatureSection()
|
D | record_file.h | 56 bool WriteCmdlineFeature(const std::vector<std::string>& cmdline);
|
/system/extras/ksmutils/ |
D | ksminfo.c | 77 char cmdline[256]; // this must be within the range of int in main() local 143 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) { in main() 144 cmdline[0] = '\0'; in main() 146 printf("%s (%u):\n", cmdline, *pids); in main()
|
/system/core/mkbootimg/ |
D | bootimg.h | 57 uint8_t cmdline[BOOT_ARGS_SIZE]; member
|
D | mkbootimg | 63 args.output.write(pack('512s', args.cmdline[:512].encode())) 72 args.output.write(pack('1024s', args.cmdline[512:].encode()))
|
/system/core/logcat/ |
D | logcat.cpp | 921 static char cmdline[1024]; in main() local 925 int n = read(fd, cmdline, sizeof(cmdline)-1 ); in main() 927 cmdline[n] = 0; in main() 930 cmdline[0] = 0; in main() 933 logcat = strstr( cmdline, KERNEL_OPTION ); in main() 934 console = strstr( cmdline, CONSOLE_OPTION ); in main()
|
/system/extras/tests/workloads/ |
D | pwrtest.sh | 186 cmdline="$1" 187 echo Running $cmdline 188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
|
/system/extras/procrank/ |
D | procrank.c | 188 char cmdline[256]; // this must be within the range of int in main() local 345 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) { in main() 392 printf("%s\n", cmdline); in main()
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
D | header.h | 93 char * cmdline; member
|
/system/tools/aidl/ |
D | generate_cpp_unittest.cpp | 777 const char* cmdline[argc] = { in GetOptions() local 780 return CppOptions::Parse(argc, cmdline); in GetOptions()
|