/system/core/fs_mgr/ |
D | fs_mgr_boot_config.cpp | 29 …:vector<std::pair<std::string, std::string>> fs_mgr_parse_boot_config(const std::string& cmdline) { in fs_mgr_parse_boot_config() argument 37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_boot_config() 38 (cmdline[found] == quote)) { in fs_mgr_parse_boot_config() 40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_boot_config() 44 auto source = cmdline.substr(base, found - base); in fs_mgr_parse_boot_config() 56 if (found == cmdline.npos) break; in fs_mgr_parse_boot_config() 63 bool fs_mgr_get_boot_config_from_kernel(const std::string& cmdline, const std::string& android_key, in fs_mgr_get_boot_config_from_kernel() argument 68 for (const auto& [key, value] : fs_mgr_parse_boot_config(cmdline)) { in fs_mgr_get_boot_config_from_kernel() 82 std::string cmdline; in fs_mgr_get_boot_config_from_kernel_cmdline() local 83 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) return false; in fs_mgr_get_boot_config_from_kernel_cmdline() [all …]
|
D | fs_mgr_priv_boot_config.h | 25 …::vector<std::pair<std::string, std::string>> fs_mgr_parse_boot_config(const std::string& cmdline); 27 bool fs_mgr_get_boot_config_from_kernel(const std::string& cmdline, const std::string& key,
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 37 static void bootimg_set_cmdline_v3(boot_img_hdr_v3* h, const std::string& cmdline) { in bootimg_set_cmdline_v3() argument 38 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline_v3() 39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline_v3() 42 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline) { in bootimg_set_cmdline() argument 44 return bootimg_set_cmdline_v3(reinterpret_cast<boot_img_hdr_v3*>(h), cmdline); in bootimg_set_cmdline() 46 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline() 47 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline()
|
D | bootimg_utils.h | 41 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline);
|
/system/core/init/ |
D | reboot_utils.cpp | 41 std::string cmdline; in SetFatalRebootTarget() local 42 android::base::ReadFileToString("/proc/cmdline", &cmdline); in SetFatalRebootTarget() 43 cmdline = android::base::Trim(cmdline); in SetFatalRebootTarget() 46 init_fatal_panic = cmdline.find(kInitFatalPanicString) != std::string::npos; in SetFatalRebootTarget() 49 auto start_pos = cmdline.find(kRebootTargetString); in SetFatalRebootTarget() 55 auto end_pos = cmdline.find(' ', start_pos); in SetFatalRebootTarget() 59 init_fatal_reboot_target = cmdline.substr(start_pos, size); in SetFatalRebootTarget()
|
D | first_stage_console.cpp | 91 int FirstStageConsole(const std::string& cmdline) { in FirstStageConsole() argument 92 auto pos = cmdline.find("androidboot.first_stage_console="); in FirstStageConsole() 95 if (sscanf(cmdline.c_str() + pos, "androidboot.first_stage_console=%d", &val) != 1) { in FirstStageConsole()
|
D | first_stage_init.cpp | 97 bool ForceNormalBoot(const std::string& cmdline) { in ForceNormalBoot() argument 98 return cmdline.find("androidboot.force_normal_boot=1") != std::string::npos; in ForceNormalBoot() 201 std::string cmdline; in FirstStageMain() local 202 android::base::ReadFileToString("/proc/cmdline", &cmdline); in FirstStageMain() 265 auto want_console = ALLOW_FIRST_STAGE_CONSOLE ? FirstStageConsole(cmdline) : 0; in FirstStageMain() 267 if (!LoadKernelModules(IsRecoveryMode() && !ForceNormalBoot(cmdline), want_console)) { in FirstStageMain() 279 if (ForceNormalBoot(cmdline)) { in FirstStageMain()
|
D | bootchart.cpp | 118 std::string cmdline; in log_processes() local 119 android::base::ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline); in log_processes() 120 const char* full_name = cmdline.c_str(); // So we stop at the first NUL. in log_processes() 125 if (!cmdline.empty()) { in log_processes()
|
D | first_stage_console.h | 32 int FirstStageConsole(const std::string& cmdline);
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 97 cmdline = cstr(unpack('512s', args.boot_img.read(512))[0].decode()) 98 print('command line args: %s' % cmdline) 100 cmdline = cstr(unpack('1536s', args.boot_img.read(1536))[0].decode()) 101 print('command line args: %s' % cmdline) 183 cmdline = cstr(unpack('2048s', args.boot_img.read(2048))[0].decode()) 184 print('vendor command line args: %s' % cmdline)
|
/system/core/libmodprobe/ |
D | libmodprobe.cpp | 254 std::string cmdline = GetKernelCmdline(); in ParseKernelCmdlineOptions() local 264 for (int i = 0; i < cmdline.size(); i++) { in ParseKernelCmdlineOptions() 265 if (cmdline[i] == '"') { in ParseKernelCmdlineOptions() 271 if (cmdline[i] == ' ') { in ParseKernelCmdlineOptions() 273 value = cmdline.substr(start, i - start); in ParseKernelCmdlineOptions() 287 if (cmdline[i] == '.') { in ParseKernelCmdlineOptions() 289 module_name = cmdline.substr(start, i - start); in ParseKernelCmdlineOptions() 297 if (cmdline[i] == '=') { in ParseKernelCmdlineOptions() 299 option_name = cmdline.substr(start, i - start); in ParseKernelCmdlineOptions() 308 value = cmdline.substr(start, cmdline.size() - start); in ParseKernelCmdlineOptions()
|
D | libmodprobe_ext.cpp | 27 std::string cmdline; in GetKernelCmdline() local 28 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in GetKernelCmdline() 31 return cmdline; in GetKernelCmdline()
|
/system/memory/libmemtrack/ |
D | memtrack_test.cpp | 70 std::string cmdline; in main() local 72 getprocname(pid, &cmdline); in main() 90 cmdline.c_str()); in main()
|
/system/core/logd/ |
D | auditctl.cpp | 24 static void usage(const char* cmdline) { in usage() argument 25 fprintf(stderr, "Usage: %s [-r rate]\n", cmdline); in usage()
|
/system/tools/mkbootimg/include/bootimg/ |
D | bootimg.h | 99 uint8_t cmdline[BOOT_ARGS_SIZE]; member 274 uint8_t cmdline[BOOT_ARGS_SIZE + BOOT_EXTRA_ARGS_SIZE]; member 291 uint8_t cmdline[VENDOR_BOOT_ARGS_SIZE]; member
|
/system/core/libcutils/ |
D | trace-dev.inc | 109 static bool atrace_is_cmdline_match(const char* cmdline) 119 if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) { 135 FILE * file = fopen("/proc/self/cmdline", "re"); 137 char cmdline[4096]; 138 if (fgets(cmdline, sizeof(cmdline), file)) { 139 result = atrace_is_cmdline_match(cmdline); 141 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno); 145 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
|
/system/memory/libmeminfo/tools/ |
D | librank.cpp | 95 std::string cmdline; in ProcessRecord() local 96 if (!::android::base::ReadFileToString(fname, &cmdline)) { in ProcessRecord() 105 cmdline_ = cmdline.c_str(); in ProcessRecord() 116 const std::string& cmdline() const { return cmdline_; } in cmdline() function 261 + "," + escape_csv_string(p.cmdline()) in to_csv() 310 + ",\"Process\":" + escape_json_string(p.cmdline()) in to_json() 468 printf(" %s [%d]\n", p.cmdline().c_str(), p.pid()); in main()
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | shell.te | 36 # cmdline utils. 43 # Allow shell binaries to exec the perfetto cmdline util and have that
|
/system/sepolicy/private/ |
D | simpleperf.te | 25 # discover it by cmdline). 29 # by scanning /proc/<pid>/cmdline files. The /proc/<pid> directories are within
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | simpleperf.te | 25 # discover it by cmdline). 29 # by scanning /proc/<pid>/cmdline files. The /proc/<pid> directories are within
|
D | traceur_app.te | 15 # To exec the perfetto cmdline client and pass it the trace config on
|
/system/libufdt/tests/ |
D | verifyDTBO.sh | 31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
|
/system/core/fastboot/device/ |
D | utility.cpp | 204 std::string cmdline; in GetDeviceLockStatus() local 206 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in GetDeviceLockStatus() 209 return cmdline.find("androidboot.verifiedbootstate=orange") == std::string::npos; in GetDeviceLockStatus()
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | traceur_app.te | 15 # To exec the perfetto cmdline client and pass it the trace config on
|
D | statsd.te | 8 # Allow to exec the perfetto cmdline client and pass it the trace config on
|