Searched defs:cmdline (Results 1 - 24 of 24) sorted by relevance

/system/core/fs_mgr/
H A Dfs_mgr_boot_config.cpp24 // Tries to get the boot config value in properties, kernel cmdline and
36 // fallback to kernel cmdline, properties may not be ready yet
37 std::string cmdline; local
39 if (android::base::ReadFileToString("/proc/cmdline", &cmdline)) {
40 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) {
H A Dfs_mgr_avb.cpp162 // Reads the following values from kernel cmdline and provides the
192 std::string cmdline; local
193 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) {
194 LERROR << "Failed to read /proc/cmdline";
206 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) {
476 // Gets the expected hash value of vbmeta images from kernel 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);
126 const char* cmdline[argc + 1] = { local
130 auto options = CppOptions::Parse(argc, cmdline);
147 const char* cmdline[argc + 1] = { local
154 auto options = JavaOptions::Parse(argc, cmdline);
/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 Dfastboot.cpp78 static const char* cmdline = nullptr; variable
376 " -c <cmdline> Override kernel commandline.\n"
423 const char* cmdline) {
438 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline);
479 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline);
1482 cmdline = optarg;
1709 data = load_bootable_image(kname, rname, sname, &sz, cmdline);
1747 data = load_bootable_image(kname, rname, sname, &sz, cmdline);
421 load_bootable_image(const char* kernel, const char* ramdisk, const char* secondstage, int64_t* sz, const char* cmdline) argument
[all...]
/system/core/libmemtrack/
H A Dmemtrack_test.c38 if (asprintf(&filename, "/proc/%d/cmdline", pid) < 0) {
106 char cmdline[256]; local
114 getprocname(pid, cmdline, (int)sizeof(cmdline));
132 v1, v2, v3, v4, v5, v6, cmdline);
/system/core/mkbootimg/
H A Dbootimg.h57 uint8_t cmdline[BOOT_ARGS_SIZE]; member in struct:boot_img_hdr
/system/core/init/
H A Dbootchart.cpp78 android::base::ReadFileToString("/proc/cmdline", &kernel_cmdline);
115 // name from /proc/<pid>/cmdline.
116 std::string cmdline; local
117 android::base::ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline);
118 const char* full_name = cmdline.c_str(); // So we stop at the first NUL.
123 if (!cmdline.empty()) {
H A Dutil.cpp277 std::string cmdline; local
278 android::base::ReadFileToString("/proc/cmdline", &cmdline);
280 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) {
/system/core/libcutils/
H A Dtrace-dev.c69 static bool atrace_is_cmdline_match(const char* cmdline) argument
79 if (strcmp(value, cmdline) == 0) {
95 FILE * file = fopen("/proc/self/cmdline", "re");
97 char cmdline[4096]; local
98 if (fgets(cmdline, sizeof(cmdline), file)) {
99 result = atrace_is_cmdline_match(cmdline);
101 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno);
105 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
/system/extras/simpleperf/
H A Dcmd_dumprecord.cpp144 {FEAT_CMDLINE, "cmdline"},
202 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
203 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str());
H A Drecord_file_reader.cpp338 std::vector<std::string> cmdline; local
346 cmdline.push_back(p);
349 return cmdline;
H A Drecord_file_writer.cpp274 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { argument
278 uint32_t arg_count = cmdline.size();
282 for (auto& arg : cmdline) {
H A Dcmd_kmem.cpp579 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
580 if (!cmdline.empty()) {
581 record_cmdline_ = android::base::Join(cmdline, ' ');
H A Dcmd_record.cpp951 std::vector<std::string> cmdline; local
952 cmdline.push_back(exec_path);
953 cmdline.push_back("record");
954 cmdline.insert(cmdline.end(), args.begin(), args.end());
955 if (!record_file_writer_->WriteCmdlineFeature(cmdline)) {
H A Dcmd_report.cpp696 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
697 if (!cmdline.empty()) {
698 record_cmdline_ = android::base::Join(cmdline, ' ');
701 for (size_t i = 0; i < cmdline.size(); i++) {
702 std::string& s = cmdline[i];
/system/tools/aidl/
H A Dgenerate_cpp_unittest.cpp843 const char* cmdline[argc] = { local
846 return 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/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/libhidl/transport/
H A DServiceManagement.cpp87 std::ifstream ifs("/proc/self/cmdline");
88 std::string cmdline; local
92 ifs >> cmdline; local
94 size_t idx = cmdline.rfind("/");
96 cmdline = cmdline.substr(idx + 1);
99 return cmdline;
/system/extras/procrank/
H A Dprocrank.cpp336 printf("%s\n", "cmdline");
387 std::string cmdline = getprocname(proc.pid); local
431 printf("%s\n", cmdline.c_str());
525 std::string filename = android::base::StringPrintf("/proc/%d/cmdline", pid);
/system/core/logcat/
H A Dlogcat.cpp1203 #define QEMU_CMDLINE "qemu.cmdline"
1218 std::string cmdline = android::base::GetProperty(QEMU_CMDLINE, ""); local
1219 if (cmdline.empty()) {
1220 android::base::ReadFileToString("/proc/cmdline", &cmdline);
1223 const char* logcatFilter = strstr(cmdline.c_str(), LOGCAT_FILTER);
1237 strstr(cmdline.c_str(), CONSOLE_PIPE_OPTION);
1239 strstr(cmdline.c_str(), CONSOLE_OPTION);
1264 cmdline.erase();

Completed in 3492 milliseconds