| /developtools/hiperf/test/unittest/common/native/ |
| D | hiperf_libreport_test.cpp | 289 EXPECT_EQ(ReadFileToString(REPORT_OUTPUT_PATH, content), true); 350 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true); 362 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true); 477 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true); 491 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true); 505 EXPECT_EQ(ReadFileToString(REPORT_JSON_OUTPUT_PATH, content), true);
|
| D | option_debug_test.cpp | 84 std::string log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
|
| D | subcommand_record_test.cpp | 1263 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80402() 1282 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80502() 1301 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80602() 1320 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80702() 1357 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80902() 1376 … std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", recordSample.data_.tid)); in __anonf79c7ea80a02() 2079 std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", tid));
|
| D | debug_logger_test.cpp | 82 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
|
| D | utilities_test.cpp | 604 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1) 607 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
|
| D | virtual_runtime_test.cpp | 133 std::string modulesMap = ReadFileToString("/proc/modules");
|
| D | perf_events_test.cpp | 348 std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", tid));
|
| /developtools/profiler/hiebpf/include/ |
| D | utilities.h | 35 std::string ReadFileToString(const std::string &fileName);
|
| /developtools/profiler/hiebpf/src/ |
| D | utilities.cpp | 24 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function
|
| D | maps_info.cpp | 32 std::string mapContent = ReadFileToString(mapPath); in GetMaps()
|
| /developtools/hiperf/include/ |
| D | utilities.h | 296 std::string ReadFileToString(const std::string &fileName); 297 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0); 373 if (IsSameCommand(ReadFileToString(fileName), appPackage)) { in CollectPidsByAppname()
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | utilities.h | 268 std::string ReadFileToString(const std::string &fileName); 269 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0);
|
| /developtools/hiperf/src/ |
| D | utilities.cpp | 279 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function 293 bool ReadFileToString(const std::string &fileName, std::string &fileData, size_t fileSize) in ReadFileToString() function 370 std::string s = ReadFileToString(path); in ReadIntFromProcFile() 660 if (IsSameCommand(ReadFileToString(fileName), appPackage)) { in GetAppPackagePid() 807 std::string bundleName = ReadFileToString(filePath); in GetProcessName()
|
| D | symbols_file.cpp | 532 …CHECK_TRUE(!ReadFileToString(kallsymsPath, kallsym, KSYM_DEFAULT_SIZE) || kallsym.empty(), false, … in ParseKallsymsLine() 634 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms() 696 std::string notes = ReadFileToString("/sys/kernel/notes"); in LoadSymbols() 740 std::string oldKptrRestrict = ReadFileToString(KPTR_RESTRICT); in LoadKernelSyms() 842 std::string buildIdRaw = ReadFileToString(sysFile); in LoadBuildId()
|
| D | virtual_thread.cpp | 282 std::string mapContent = ReadFileToString(mapPath); in ParseServiceMap() 308 std::string mapContent = ReadFileToString(mapPath); in ParseDevhostMap()
|
| D | subcommand_record.cpp | 1661 std::string str = ReadFileToString(fileName); in GetCountFromFile() 1676 std::string str = ReadFileToString("/proc/cpuinfo"); in GetCpuDescFromFile() 1730 std::string str = ReadFileToString("/proc/meminfo"); in AddMemTotalFeature() 1777 ReadFileToString("/proc/self/cmdline").c_str() + Command::fullArgument; in AddCommandLineFeature()
|
| D | virtual_runtime.cpp | 90 comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)); in ReadThreadName() 92 comm = ReadFileToString(StringPrintf("/proc/%d/cmdline", tid)); in ReadThreadName()
|
| /developtools/packing_tool/packing_tool/frameworks/src/ |
| D | fast_app_packager.cpp | 320 return ReadFileToString(path); in GetModuleJsonContentFromPath() 330 return ReadFileToString(path / fs::path(Constants::MODULE_JSON)); in GetModuleJsonContentFromPath() 335 std::string FastAppPackager::ReadFileToString(const fs::path &path) in ReadFileToString() function in OHOS::AppPackingTool::FastAppPackager 458 return ReadFileToString(path); in GetPackInfoContentFromPath() 468 return ReadFileToString(path / fs::path(Constants::PACK_INFO)); in GetPackInfoContentFromPath()
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | utilities.cpp | 239 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function 252 bool ReadFileToString(const std::string &fileName, std::string &fileData, size_t fileSize) in ReadFileToString() function 291 std::string s = ReadFileToString(path); in ReadIntFromProcFile()
|
| D | symbols_file.cpp | 461 if (!ReadFileToString("/proc/kallsyms", kallsym, KSYM_DEFAULT_SIZE)) { in ParseKallsymsLine() 534 if (ReadFileToString(KPTR_RESTRICT).front() != '0') { in LoadKernelSyms() 575 std::string notes = ReadFileToString("/sys/kernel/notes"); in LoadSymbols() 653 std::string buildIdRaw = ReadFileToString(sysFile); in LoadBuildId()
|
| D | virtual_thread.cpp | 109 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
|
| D | virtual_runtime.cpp | 67 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
|
| /developtools/packing_tool/packing_tool/frameworks/include/ |
| D | fast_app_packager.h | 66 std::string ReadFileToString(const fs::path &path);
|
| /developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
| D | utilities_test.cpp | 576 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1) 579 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
|
| D | debug_logger_test.cpp | 78 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
|