Searched refs:cmdline (Results 1 - 25 of 27) sorted by last modified time

12

/system/tools/aidl/
H A Dgenerate_cpp_unittest.cpp777 const char* cmdline[argc] = { local
780 return CppOptions::Parse(argc, cmdline);
/system/tools/aidl/tests/
H A Dend_to_end_tests.cpp101 const char* cmdline[argc + 1] = { local
105 auto options = CppOptions::Parse(argc, cmdline);
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
H A Dheader.h93 char * cmdline; member in struct:perf_session_env
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Dheader.h80 char *cmdline; member in struct:perf_session_env
/system/extras/procrank/
H A Dprocrank.c188 char cmdline[256]; // this must be within the range of int local
335 printf("%s\n", "cmdline");
345 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) {
392 printf("%s\n", cmdline);
483 * 1 on failure to create string to examine proc cmdline entry
484 * 2 on failure to open proc cmdline entry
485 * 3 on failure to read proc cmdline entry
497 if (asprintf(&filename, "/proc/%d/cmdline", pid) < 0) {
/system/extras/simpleperf/
H A Dcmd_dumprecord.cpp144 {FEAT_CMDLINE, "cmdline"},
207 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
208 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str());
H A Dcmd_record.cpp769 std::vector<std::string> cmdline; local
770 cmdline.push_back(exec_path);
771 cmdline.push_back("record");
772 cmdline.insert(cmdline.end(), args.begin(), args.end());
773 if (!record_file_writer_->WriteCmdlineFeature(cmdline)) {
H A Dcmd_report.cpp646 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
647 if (!cmdline.empty()) {
648 record_cmdline_ = android::base::Join(cmdline, ' ');
H A Drecord_file.h56 bool WriteCmdlineFeature(const std::vector<std::string>& cmdline);
H A Drecord_file_reader.cpp209 std::vector<std::string> cmdline; local
217 cmdline.push_back(p);
220 return cmdline;
H A Drecord_file_writer.cpp195 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { argument
200 uint32_t arg_count = cmdline.size();
204 for (auto& arg : cmdline) {
/system/extras/tests/net_test/
H A Dnet_test.sh18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
H A Drun_net_test.sh94 cmdline=${OPTIONS// / -e }
95 ./scripts/config $cmdline
98 cmdline=${DISABLE_OPTIONS// / -d }
99 ./scripts/config $cmdline
/system/extras/tests/workloads/
H A Dpwrtest.sh186 cmdline="$1"
187 echo Running $cmdline
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
/system/extras/ksmutils/
H A Dksminfo.c77 char cmdline[256]; // this must be within the range of int local
143 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) {
144 cmdline[0] = '\0';
146 printf("%s (%u):\n", cmdline, *pids);
437 * 1 on failure to create string to examine proc cmdline entry
438 * 2 on failure to open proc cmdline entry
439 * 3 on failure to read proc cmdline entry
451 if (asprintf(&filename, "/proc/%d/cmdline", (int)pid) < 0) {
/system/extras/librank/
H A Dlibrank.c33 char cmdline[MAX_CMDLINE]; member in struct:process_info
169 getprocname(pid, process->cmdline, sizeof(process->cmdline));
199 char cmdline[256]; local
415 pi->cmdline,
450 snprintf(filename, sizeof(filename), "/proc/%d/cmdline", pid);
/system/core/fastboot/
H A Dbootimg_utils.cpp35 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline) argument
37 strcpy((char*) h->cmdline, cmdline);
H A Dbootimg_utils.h36 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline);
H A Dfastboot.cpp75 static const char* cmdline = nullptr; variable
364 " -c <cmdline> Override kernel commandline.\n"
404 const char* cmdline) {
419 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline);
460 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline);
1301 cmdline = optarg;
1514 data = load_bootable_image(kname, rname, sname, &sz, cmdline);
1552 data = load_bootable_image(kname, rname, sname, &sz, cmdline);
402 load_bootable_image(const char* kernel, const char* ramdisk, const char* secondstage, int64_t* sz, const char* cmdline) argument
[all...]
/system/core/init/
H A Dbootchart.cpp86 android::base::ReadFileToString("/proc/cmdline", &kernel_cmdline);
128 // name from /proc/<pid>/cmdline.
129 snprintf(filename, sizeof(filename), "/proc/%d/cmdline", pid);
130 std::string cmdline; local
131 android::base::ReadFileToString(filename, &cmdline);
132 const char* full_name = cmdline.c_str(); // So we stop at the first NUL.
138 if (!cmdline.empty()) {
166 std::string cmdline; local
168 android::base::ReadFileToString("/proc/cmdline", &cmdline);
[all...]
H A Dutil.cpp430 std::string cmdline; local
431 android::base::ReadFileToString("/proc/cmdline", &cmdline);
433 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) {
/system/core/libcutils/
H A Dtrace-dev.c67 static bool atrace_is_cmdline_match(const char* cmdline) argument
77 if (strcmp(value, cmdline) == 0) {
100 FILE * file = fopen("/proc/self/cmdline", "re");
102 char cmdline[4096]; local
103 if (fgets(cmdline, sizeof(cmdline), file)) {
104 result = atrace_is_cmdline_match(cmdline);
106 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno);
110 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
/system/core/libmemtrack/
H A Dmemtrack_test.c38 if (asprintf(&filename, "/proc/%d/cmdline", pid) < 0) {
112 char cmdline[256]; local
120 getprocname(pid, cmdline, (int)sizeof(cmdline));
138 v1, v2, v3, v4, v5, v6, cmdline);
/system/core/logcat/
H A Dlogcat.cpp921 static char cmdline[1024]; local
923 fd = open("/proc/cmdline", O_RDONLY);
925 int n = read(fd, cmdline, sizeof(cmdline)-1 );
927 cmdline[n] = 0;
930 cmdline[0] = 0;
933 logcat = strstr( cmdline, KERNEL_OPTION );
934 console = strstr( cmdline, CONSOLE_OPTION );
/system/core/mkbootimg/
H A Dbootimg.h57 uint8_t cmdline[BOOT_ARGS_SIZE]; member in struct:boot_img_hdr

Completed in 315 milliseconds

12