Home
last modified time | relevance | path

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

12

/system/core/libcutils/
Dtrace-dev.c69 static bool atrace_is_cmdline_match(const char* cmdline) in atrace_is_cmdline_match() argument
79 if (strcmp(value, cmdline) == 0) { in atrace_is_cmdline_match()
97 char cmdline[4096]; in atrace_is_app_tracing_enabled() local
98 if (fgets(cmdline, sizeof(cmdline), file)) { in atrace_is_app_tracing_enabled()
99 result = atrace_is_cmdline_match(cmdline); in atrace_is_app_tracing_enabled()
/system/tools/aidl/tests/
Dend_to_end_tests.cpp101 const char* cmdline[argc + 1] = { in TEST_F() local
105 auto options = CppOptions::Parse(argc, cmdline); in TEST_F()
126 const char* cmdline[argc + 1] = { in TEST_F() local
130 auto options = CppOptions::Parse(argc, cmdline); in TEST_F()
147 const char* cmdline[argc + 1] = { in TEST_F() local
154 auto options = JavaOptions::Parse(argc, cmdline); in TEST_F()
/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp31 std::string cmdline; in fs_mgr_get_boot_config_from_kernel_cmdline() local
33 if (android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in fs_mgr_get_boot_config_from_kernel_cmdline()
34 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { in fs_mgr_get_boot_config_from_kernel_cmdline()
Dfs_mgr_avb.cpp142 std::string cmdline; in Create() local
143 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in Create()
156 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { in Create()
/system/core/libmemtrack/
Dmemtrack_test.c106 char cmdline[256]; in main() local
114 getprocname(pid, cmdline, (int)sizeof(cmdline)); in main()
132 v1, v2, v3, v4, v5, v6, cmdline); in main()
/system/core/fastboot/
Dbootimg_utils.cpp35 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline) in bootimg_set_cmdline() argument
37 strcpy((char*) h->cmdline, cmdline); in bootimg_set_cmdline()
Dbootimg_utils.h36 void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline);
Dfastboot.cpp79 static const char* cmdline = nullptr; variable
444 const char* cmdline) { in load_bootable_image() argument
451 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline); in load_bootable_image()
481 if (cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline); in load_bootable_image()
1551 cmdline = optarg; in main()
1752 data = load_bootable_image(kernel, ramdisk, second_stage, &sz, cmdline); in main()
1781 data = load_bootable_image(kernel, ramdisk, second_stage, &sz, cmdline); in main()
/system/core/init/
Dbootchart.cpp116 std::string cmdline; in log_processes() local
117 android::base::ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline); in log_processes()
118 const char* full_name = cmdline.c_str(); // So we stop at the first NUL. in log_processes()
123 if (!cmdline.empty()) { in log_processes()
Dutil.cpp241 std::string cmdline; in import_kernel_cmdline() local
242 android::base::ReadFileToString("/proc/cmdline", &cmdline); in import_kernel_cmdline()
244 for (const auto& entry : android::base::Split(android::base::Trim(cmdline), " ")) { in import_kernel_cmdline()
/system/extras/librank/
Dlibrank.c33 char cmdline[MAX_CMDLINE]; member
169 getprocname(pid, process->cmdline, sizeof(process->cmdline)); in get_process()
199 char cmdline[256]; in main() local
415 pi->cmdline, in main()
/system/libhidl/transport/
DServiceManagement.cpp87 std::string cmdline; in binaryName() local
91 ifs >> cmdline; in binaryName()
93 size_t idx = cmdline.rfind("/"); in binaryName()
95 cmdline = cmdline.substr(idx + 1); in binaryName()
98 return cmdline; in binaryName()
/system/core/mkbootimg/
Dbootimg.h57 uint8_t cmdline[BOOT_ARGS_SIZE]; member
Dmkbootimg63 args.output.write(pack('512s', args.cmdline[:512].encode()))
72 args.output.write(pack('1024s', args.cmdline[512:].encode()))
/system/extras/ksmutils/
Dksminfo.c77 char cmdline[256]; // this must be within the range of int in main() local
143 if (getprocname(*pids, cmdline, sizeof(cmdline)) < 0) { in main()
144 cmdline[0] = '\0'; in main()
146 printf("%s (%u):\n", cmdline, *pids); in main()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Dheader.h93 char * cmdline; member
/system/extras/tests/workloads/
Dpwrtest.sh186 cmdline="$1"
187 echo Running $cmdline
188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
/system/extras/simpleperf/
Denvironment.cpp530 std::string cmdline; in WaitForAppProcess() local
531 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &cmdline)) { in WaitForAppProcess()
535 cmdline = android::base::Basename(cmdline); in WaitForAppProcess()
536 if (cmdline == package_name) { in WaitForAppProcess()
Drecord_file_writer.cpp274 bool RecordFileWriter::WriteCmdlineFeature(const std::vector<std::string>& cmdline) { in WriteCmdlineFeature() argument
278 uint32_t arg_count = cmdline.size(); in WriteCmdlineFeature()
282 for (auto& arg : cmdline) { in WriteCmdlineFeature()
Dcmd_dumprecord.cpp204 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in DumpFeatureSection() local
205 PrintIndented(1, "cmdline: %s\n", android::base::Join(cmdline, ' ').c_str()); in DumpFeatureSection()
Dcmd_record.cpp1025 std::vector<std::string> cmdline; in DumpAdditionalFeatures() local
1026 cmdline.push_back(exec_path); in DumpAdditionalFeatures()
1027 cmdline.push_back("record"); in DumpAdditionalFeatures()
1028 cmdline.insert(cmdline.end(), args.begin(), args.end()); in DumpAdditionalFeatures()
1029 if (!record_file_writer_->WriteCmdlineFeature(cmdline)) { in DumpAdditionalFeatures()
Dcmd_report.cpp716 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in ReadFeaturesFromRecordFile() local
717 if (!cmdline.empty()) { in ReadFeaturesFromRecordFile()
718 record_cmdline_ = android::base::Join(cmdline, ' '); in ReadFeaturesFromRecordFile()
721 for (size_t i = 0; i < cmdline.size(); i++) { in ReadFeaturesFromRecordFile()
722 std::string& s = cmdline[i]; in ReadFeaturesFromRecordFile()
Drecord_file_reader.cpp338 std::vector<std::string> cmdline; in ReadCmdlineFeature() local
346 cmdline.push_back(p); in ReadCmdlineFeature()
349 return cmdline; in ReadCmdlineFeature()
/system/tools/aidl/
Dgenerate_cpp_unittest.cpp843 const char* cmdline[argc] = { in GetOptions() local
846 return CppOptions::Parse(argc, cmdline); in GetOptions()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Dheader.h80 char *cmdline; member

12