/system/core/fastboot/ |
H A D | bootimg_utils.cpp | 37 void bootimg_set_cmdline(boot_img_hdr_v1* h, const char* cmdline) { argument 38 if (strlen(cmdline) >= sizeof(h->cmdline)) die("command line too large: %zu", strlen(cmdline)); 39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline);
|
H A D | bootimg_utils.h | 36 void bootimg_set_cmdline(boot_img_hdr_v1* h, const char* cmdline);
|
H A D | fastboot.cpp | 79 static const char* cmdline = nullptr; variable 393 " -c <cmdline> Override kernel commandline.\n" 449 const char* cmdline, uint32_t header_version) { 459 if (cmdline) bootimg_set_cmdline(reinterpret_cast<boot_img_hdr_v1*>(kdata), cmdline); local 489 if (cmdline) bootimg_set_cmdline(bdata, cmdline); 1557 cmdline = optarg; 1759 data = load_bootable_image(kernel, ramdisk, second_stage, &sz, cmdline, header_version); 1788 data = load_bootable_image(kernel, ramdisk, second_stage, &sz, cmdline, header_versio 447 load_bootable_image(const std::string& kernel, const std::string& ramdisk, const std::string& second_stage, int64_t* sz, const char* cmdline, uint32_t header_version) argument [all...] |
/system/core/fs_mgr/ |
H A D | fs_mgr_boot_config.cpp | 26 // Tries to get the given boot config value from kernel cmdline. 31 std::string cmdline; local 33 if (android::base::ReadFileToString("/proc/cmdline", &cmdline)) { 34 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { 48 // Tries to get the boot config value in properties, kernel cmdline and 60 // fallback to kernel cmdline, properties may not be ready yet
|
H A D | fs_mgr_avb.cpp | 115 // Reads the following values from kernel cmdline and provides the 142 std::string cmdline; local 143 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { 144 PERROR << "Failed to read /proc/cmdline"; 156 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { 237 // Loads androidboot.veritymode from kernel cmdline. 550 // Verifies vbmeta structs against the digest passed from bootloader in kernel cmdline.
|
/system/core/libcutils/ |
H A D | trace-dev.inc | 63 static bool atrace_is_cmdline_match(const char* cmdline) 73 if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) { 89 FILE * file = fopen("/proc/self/cmdline", "re"); 91 char cmdline[4096]; 92 if (fgets(cmdline, sizeof(cmdline), file)) { 93 result = atrace_is_cmdline_match(cmdline); 95 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno); 99 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
|
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 38 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/include/bootimg/ |
H A D | bootimg.h | 62 uint8_t cmdline[BOOT_ARGS_SIZE]; member in struct:boot_img_hdr_v0
|
/system/libufdt/tests/ |
H A D | verifyDTBO.sh | 31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
|
/system/tools/aidl/tests/ |
H A D | end_to_end_tests.cpp | 148 const char* cmdline[argc + 1] = { local 152 auto options = CppOptions::Parse(argc, cmdline); 173 const char* cmdline[argc + 1] = { local 177 auto options = CppOptions::Parse(argc, cmdline); 194 const char* cmdline[argc + 1] = { local 201 auto options = JavaOptions::Parse(argc, cmdline);
|
/system/core/mkbootimg/ |
H A D | unpack_bootimg | 63 cmdline = unpack('512s', args.boot_img.read(512)) 64 print('command line args: %s' % cmdline)
|
H A D | mkbootimg | 79 args.output.write(pack('512s', args.cmdline[:512].encode())) 92 args.output.write(pack('1024s', args.cmdline[512:].encode())) 165 parser.add_argument('--cmdline', help='extra arguments to be passed on the '
|
/system/core/init/ |
H A D | bootchart.cpp | 78 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 D | util.cpp | 247 std::string cmdline; local 248 android::base::ReadFileToString("/proc/cmdline", &cmdline); 250 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { 377 // The platform may specify a custom Android DT path in kernel cmdline
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 77 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/tests/workloads/ |
H A D | pwrtest.sh | 186 cmdline="$1" 187 echo Running $cmdline 188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
|
/system/extras/librank/ |
H A D | librank.c | 33 char cmdline[MAX_CMDLINE]; member in struct:process_info 169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); 414 pi->cmdline, 449 snprintf(filename, sizeof(filename), "/proc/%d/cmdline", pid);
|
/system/tools/aidl/ |
H A D | generate_cpp_unittest.cpp | 1421 const char* cmdline[argc] = { local 1424 return CppOptions::Parse(argc, cmdline);
|
/system/extras/simpleperf/ |
H A D | record_file_writer.cpp | 277 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { argument 281 uint32_t arg_count = cmdline.size(); 285 for (auto& arg : cmdline) {
|
H A D | cmd_dumprecord.cpp | 231 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local 232 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str());
|
H A D | cmd_report.cpp | 817 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local 818 if (!cmdline.empty()) { 819 record_cmdline_ = android::base::Join(cmdline, ' '); 823 for (size_t i = 0; i < cmdline.size(); i++) { 824 std::string& s = cmdline[i];
|
H A D | cmd_kmem.cpp | 578 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local 579 if (!cmdline.empty()) { 580 record_cmdline_ = android::base::Join(cmdline, ' ');
|
H A D | environment.cpp | 518 std::string cmdline; local 519 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &cmdline)) { 523 std::string process_name = android::base::Basename(cmdline);
|
H A D | record_file_reader.cpp | 45 {FEAT_CMDLINE, "cmdline"}, 392 std::vector<std::string> cmdline; local 400 cmdline.push_back(p); 403 return cmdline;
|
/system/libhidl/transport/ |
H A D | ServiceManagement.cpp | 89 std::ifstream ifs("/proc/self/cmdline"); 90 std::string cmdline; local 94 ifs >> cmdline; local 96 size_t idx = cmdline.rfind('/'); 98 cmdline = cmdline.substr(idx + 1); 101 return cmdline;
|