Home
last modified time | relevance | path

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

12

/system/core/libcutils/
Dtrace-dev.c67 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/
Dbootchart.cpp130 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()
Dutil.cpp430 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/
Dps.c47 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/
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/extras/tests/net_test/
Drun_net_test.sh94 cmdline=${OPTIONS// / -e }
95 ./scripts/config $cmdline
98 cmdline=${DISABLE_OPTIONS// / -d }
99 ./scripts/config $cmdline
Dnet_test.sh18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
/system/core/fastboot/
Dbootimg_utils.cpp35 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()
Dbootimg_utils.h36 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline);
Dfastboot.cpp75 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/
Dend_to_end_tests.cpp101 const char* cmdline[argc + 1] = { in TEST_F() local
105 auto options = CppOptions::Parse(argc, cmdline); in TEST_F()
/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
415 pi->cmdline, in main()
/system/extras/simpleperf/
Drecord_file_writer.cpp195 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()
Drecord_file_reader.cpp209 std::vector<std::string> cmdline; in ReadCmdlineFeature() local
217 cmdline.push_back(p); in ReadCmdlineFeature()
220 return cmdline; in ReadCmdlineFeature()
Dcmd_record.cpp769 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()
Dcmd_dumprecord.cpp207 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()
Drecord_file.h56 bool WriteCmdlineFeature(const std::vector<std::string>& cmdline);
/system/extras/ksmutils/
Dksminfo.c77 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/
Dbootimg.h57 uint8_t cmdline[BOOT_ARGS_SIZE]; member
Dmkbootimg63 args.output.write(pack('512s', args.cmdline[:512].encode()))
72 args.output.write(pack('1024s', args.cmdline[512:].encode()))
/system/core/logcat/
Dlogcat.cpp921 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/
Dpwrtest.sh186 cmdline="$1"
187 echo Running $cmdline
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
/system/extras/procrank/
Dprocrank.c188 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/
Dheader.h93 char * cmdline; member
/system/tools/aidl/
Dgenerate_cpp_unittest.cpp777 const char* cmdline[argc] = { in GetOptions() local
780 return CppOptions::Parse(argc, cmdline); in GetOptions()

12