Searched refs:cmdline (Results 1 - 25 of 30) sorted by relevance

12

/system/core/fastboot/
H A Dbootimg_utils.cpp37 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 Dbootimg_utils.h36 void bootimg_set_cmdline(boot_img_hdr_v1* h, const char* cmdline);
H A Dfastboot.cpp79 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 Dfs_mgr_boot_config.cpp26 // 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 Dfs_mgr_avb.cpp115 // 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 Dtrace-dev.inc63 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 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/include/bootimg/
H A Dbootimg.h62 uint8_t cmdline[BOOT_ARGS_SIZE]; member in struct:boot_img_hdr_v0
/system/libufdt/tests/
H A DverifyDTBO.sh31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
/system/tools/aidl/tests/
H A Dend_to_end_tests.cpp148 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 Dunpack_bootimg63 cmdline = unpack('512s', args.boot_img.read(512))
64 print('command line args: %s' % cmdline)
H A Dmkbootimg79 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 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.cpp247 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 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/tests/workloads/
H A Dpwrtest.sh186 cmdline="$1"
187 echo Running $cmdline
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
/system/extras/librank/
H A Dlibrank.c33 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 Dgenerate_cpp_unittest.cpp1421 const char* cmdline[argc] = { local
1424 return CppOptions::Parse(argc, cmdline);
/system/extras/simpleperf/
H A Drecord_file_writer.cpp277 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { argument
281 uint32_t arg_count = cmdline.size();
285 for (auto& arg : cmdline) {
H A Dcmd_dumprecord.cpp231 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
232 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str());
H A Dcmd_report.cpp817 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 Dcmd_kmem.cpp578 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); local
579 if (!cmdline.empty()) {
580 record_cmdline_ = android::base::Join(cmdline, ' ');
H A Denvironment.cpp518 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 Drecord_file_reader.cpp45 {FEAT_CMDLINE, "cmdline"},
392 std::vector<std::string> cmdline; local
400 cmdline.push_back(p);
403 return cmdline;
/system/libhidl/transport/
H A DServiceManagement.cpp89 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;

Completed in 2642 milliseconds

12