Home
last modified time | relevance | path

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

123

/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp29 …: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 …]
Dfs_mgr_priv_boot_config.h25 …::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/init/
Dreboot_utils.cpp38 std::string cmdline; in SetFatalRebootTarget() local
39 android::base::ReadFileToString("/proc/cmdline", &cmdline); in SetFatalRebootTarget()
40 cmdline = android::base::Trim(cmdline); in SetFatalRebootTarget()
43 auto start_pos = cmdline.find(kRebootTargetString); in SetFatalRebootTarget()
49 auto end_pos = cmdline.find(' ', start_pos); in SetFatalRebootTarget()
53 init_fatal_reboot_target = cmdline.substr(start_pos, size); in SetFatalRebootTarget()
Dbootchart.cpp118 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()
Dfirst_stage_init.cpp95 std::string cmdline; in ForceNormalBoot() local
96 android::base::ReadFileToString("/proc/cmdline", &cmdline); in ForceNormalBoot()
97 return cmdline.find("androidboot.force_normal_boot=1") != std::string::npos; in ForceNormalBoot()
/system/core/fastboot/
Dbootimg_utils.cpp37 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline) { in bootimg_set_cmdline() argument
38 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline()
39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline()
Dbootimg_utils.h41 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline);
/system/core/libcutils/
Dtrace-dev.inc62 static bool atrace_is_cmdline_match(const char* cmdline)
72 if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) {
88 FILE * file = fopen("/proc/self/cmdline", "re");
90 char cmdline[4096];
91 if (fgets(cmdline, sizeof(cmdline), file)) {
92 result = atrace_is_cmdline_match(cmdline);
94 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno);
98 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
/system/core/libmemtrack/
Dmemtrack_test.cpp70 std::string cmdline; in main() local
72 getprocname(pid, &cmdline); in main()
90 cmdline.c_str()); in main()
/system/core/logd/
Dauditctl.cpp24 static void usage(const char* cmdline) { in usage() argument
25 fprintf(stderr, "Usage: %s [-r rate]\n", cmdline); in usage()
/system/core/libmeminfo/tools/
Dlibrank.cpp86 std::string cmdline; in ProcessRecord() local
87 if (!::android::base::ReadFileToString(fname, &cmdline)) { in ProcessRecord()
96 cmdline_ = cmdline.c_str(); in ProcessRecord()
107 const std::string& cmdline() const { return cmdline_; } in cmdline() function
346 printf(" %s [%d]\n", p.cmdline().c_str(), p.pid()); in main()
/system/sepolicy/prebuilts/api/28.0/private/
Dshell.te36 # cmdline utils.
43 # Allow shell binaries to exec the perfetto cmdline util and have that
/system/core/mkbootimg/
Dunpack_bootimg.py63 cmdline = unpack('512s', args.boot_img.read(512))
64 print('command line args: %s' % cmdline)
/system/core/fastboot/device/
Dutility.cpp195 std::string cmdline; in GetDeviceLockStatus() local
197 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in GetDeviceLockStatus()
200 return cmdline.find("androidboot.verifiedbootstate=orange") == std::string::npos; in GetDeviceLockStatus()
/system/libufdt/tests/
DverifyDTBO.sh31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
/system/sepolicy/private/
Dtraceur_app.te15 # To exec the perfetto cmdline client and pass it the trace config on
Dshell.te36 # cmdline utils.
43 # Allow shell binaries to exec the perfetto cmdline util and have that
Dstatsd.te8 # Allow to exec the perfetto cmdline client and pass it the trace config on
Dheapprofd.te24 # Necessary for /proc/[pid]/cmdline access & sending signals.
31 # When scanning /proc/[pid]/cmdline to find matching processes for by-name
/system/sepolicy/prebuilts/api/29.0/private/
Dtraceur_app.te15 # To exec the perfetto cmdline client and pass it the trace config on
Dshell.te36 # cmdline utils.
43 # Allow shell binaries to exec the perfetto cmdline util and have that
Dstatsd.te8 # Allow to exec the perfetto cmdline client and pass it the trace config on
Dheapprofd.te24 # Necessary for /proc/[pid]/cmdline access & sending signals.
31 # When scanning /proc/[pid]/cmdline to find matching processes for by-name
/system/core/mkbootimg/include/bootimg/
Dbootimg.h68 uint8_t cmdline[BOOT_ARGS_SIZE]; member
/system/extras/tests/workloads/
Dpwrtest.sh186 cmdline="$1"
187 echo Running $cmdline
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &

123