Home
last modified time | relevance | path

Searched refs:ReadFileToString (Results 1 – 25 of 28) sorted by relevance

12

/developtools/hiperf/test/unittest/common/native/
Dhiperf_libreport_test.cpp289 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);
Doption_debug_test.cpp84 std::string log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
Dsubcommand_record_test.cpp1263 … 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));
Ddebug_logger_test.cpp82 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
Dutilities_test.cpp604 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1)
607 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
Dvirtual_runtime_test.cpp133 std::string modulesMap = ReadFileToString("/proc/modules");
Dperf_events_test.cpp348 std::string threadName = ReadFileToString(StringPrintf("/proc/%d/comm", tid));
/developtools/profiler/hiebpf/include/
Dutilities.h35 std::string ReadFileToString(const std::string &fileName);
/developtools/profiler/hiebpf/src/
Dutilities.cpp24 std::string ReadFileToString(const std::string &fileName) in ReadFileToString() function
Dmaps_info.cpp32 std::string mapContent = ReadFileToString(mapPath); in GetMaps()
/developtools/hiperf/include/
Dutilities.h296 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/
Dutilities.h268 std::string ReadFileToString(const std::string &fileName);
269 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0);
/developtools/hiperf/src/
Dutilities.cpp279 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()
Dsymbols_file.cpp532 …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()
Dvirtual_thread.cpp282 std::string mapContent = ReadFileToString(mapPath); in ParseServiceMap()
308 std::string mapContent = ReadFileToString(mapPath); in ParseDevhostMap()
Dsubcommand_record.cpp1661 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()
Dvirtual_runtime.cpp90 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/
Dfast_app_packager.cpp320 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/
Dutilities.cpp239 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()
Dsymbols_file.cpp461 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()
Dvirtual_thread.cpp109 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
Dvirtual_runtime.cpp67 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
/developtools/packing_tool/packing_tool/frameworks/include/
Dfast_app_packager.h66 std::string ReadFileToString(const fs::path &path);
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dutilities_test.cpp576 HWTEST_F(UtilitiesTest, ReadFileToString, TestSize.Level1)
579 EXPECT_NE(ReadFileToString(strPath).length(), 0u);
Ddebug_logger_test.cpp78 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()

12