| /developtools/hiperf/test/fuzztest/perffile_fuzzer/ |
| D | PerfFile_fuzzer.cpp | 29 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Instance() local 30 FILE *fpApp = fopen(resolvedPath.c_str(), "ab"); in Instance() 39 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in Instance() 46 std::make_unique<PerfFileReaderFuzzer>(resolvedPath, fp); in Instance()
|
| /developtools/hdc/src/common/ |
| D | debug.cpp | 27 string resolvedPath = Base::CanonicalizeSpecPath(srcPath); in WriteHexToDebugFile() local 28 FILE *fp = fopen(resolvedPath.c_str(), "a+"); in WriteHexToDebugFile() 36 resolvedPath = Base::CanonicalizeSpecPath(srcPath); in WriteHexToDebugFile() 37 if ((fp = fopen(resolvedPath.c_str(), "a+")) == nullptr) { in WriteHexToDebugFile()
|
| D | base.cpp | 723 string resolvedPath = CanonicalizeSpecPath(srcPath); in ReadBinFile() local 726 int fd = uv_fs_open(nullptr, &req, resolvedPath.c_str(), O_RDONLY, 0, nullptr); in ReadBinFile() 730 … WRITE_LOG(LOG_FATAL, "ReadBinFile uv_fs_open %s error %s", resolvedPath.c_str(), buffer); in ReadBinFile() 740 resolvedPath.c_str(), buffer, byteIO, readMax); in ReadBinFile() 760 string resolvedPath; in WriteBinFile() local 769 resolvedPath = srcPath.c_str(); in WriteBinFile() 772 resolvedPath = CanonicalizeSpecPath(srcPath); in WriteBinFile() 775 int fd = uv_fs_open(nullptr, &req, resolvedPath.c_str(), flags, S_IWUSR | S_IRUSR, nullptr); in WriteBinFile() 780 … WRITE_LOG(LOG_FATAL, "WriteBinFile uv_fs_open %s error %s", resolvedPath.c_str(), buffer); in WriteBinFile() 792 resolvedPath.c_str(), buffer, bytesDone, bufLen); in WriteBinFile() [all …]
|
| D | transfer.cpp | 563 string resolvedPath = Base::CanonicalizeSpecPath(localPath); in CheckFilename() local 564 auto pos = resolvedPath.find(localPathBackup); in CheckFilename() 566 string shortPath = resolvedPath.substr(localPathBackup.size()); in CheckFilename()
|
| D | forward.cpp | 381 string resolvedPath = Base::CanonicalizeSpecPath(sNodeCfg); in SetupDevicePoint() local 382 if ((ctxPoint->fd = open(resolvedPath.c_str(), O_RDWR)) < 0) { in SetupDevicePoint()
|
| /developtools/hiperf/src/ |
| D | utilities.cpp | 68 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local 70 if (!_fullpath(resolvedPath, src, PATH_MAX)) { in CanonicalizeSpecPath() 77 (void)strncpy_s(resolvedPath, sizeof(resolvedPath), src, strlen(src)); in CanonicalizeSpecPath() 78 } else if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath() 85 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath() 95 std::string res(resolvedPath); in CanonicalizeSpecPath() 158 std::string resolvedPath = CanonicalizeSpecPath(tempFile.c_str()); in StdoutRecord() local 159 recordFile_ = fopen(resolvedPath.c_str(), mode.c_str()); in StdoutRecord() 180 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Start() local 181 recordFile_ = fopen(resolvedPath.c_str(), "w+"); in Start() [all …]
|
| D | debug_logger.cpp | 258 std::string resolvedPath = CanonicalizeSpecPath(tempLogPath.c_str()); in OpenLog() local 259 file_ = fopen(resolvedPath.c_str(), flags.c_str()); in OpenLog() 265 std::string resolvedPath = CanonicalizeSpecPath(logPath_.c_str()); in OpenLog() local 266 file_ = fopen(resolvedPath.c_str(), "w"); in OpenLog()
|
| D | subcommand_dump.cpp | 116 std::string resolvedPath = CanonicalizeSpecPath(outputFilename_.c_str()); in PrepareDumpOutput() local 117 outputDump_ = fopen(resolvedPath.c_str(), "w"); in PrepareDumpOutput() 377 std::string resolvedPath = CanonicalizeSpecPath(userRegs.c_str()); in ExprotUserStack() local 378 … std::unique_ptr<FILE, decltype(&fclose)> fpUserRegs(fopen(resolvedPath.c_str(), "wb"), fclose); in ExprotUserStack() 404 std::string resolvedPath = CanonicalizeSpecPath(userData.c_str()); in ExprotUserData() local 405 … std::unique_ptr<FILE, decltype(&fclose)> fpUserData(fopen(resolvedPath.c_str(), "wb"), fclose); in ExprotUserData()
|
| D | elf_file.cpp | 26 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ElfFile() local 27 fd_ = open(resolvedPath.c_str(), O_RDONLY | O_BINARY); in ElfFile() 29 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ElfFile() 30 fd_ = open(resolvedPath.c_str(), O_RDONLY); in ElfFile()
|
| D | report_protobuf_file.cpp | 75 std::string resolvedPath = CanonicalizeSpecPath(fileName_.c_str()); in Create() local 76 protobufFileStream_->open(resolvedPath.c_str(), in Create() 251 std::string resolvedPath = CanonicalizeSpecPath(fileName_.c_str()); in Dump() local 252 protobufFileStream_->open(resolvedPath.c_str(), std::fstream::in | std::fstream::binary); in Dump()
|
| D | symbols_file.cpp | 525 std::string resolvedPath = CanonicalizeSpecPath(loadElfPath.c_str()); in LoadFileToMemory() local 526 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in LoadFileToMemory() 539 std::string resolvedPath = CanonicalizeSpecPath(loadElfPath.c_str()); in LoadFileToMemory() 540 fd_ = OHOS::UniqueFd(open(resolvedPath.c_str(), O_RDONLY | O_BINARY)); in LoadFileToMemory() 542 std::string resolvedPath = CanonicalizeSpecPath(loadElfPath.c_str()); in LoadFileToMemory() 543 fd_ = OHOS::UniqueFd(open(resolvedPath.c_str(), O_RDONLY)); in LoadFileToMemory()
|
| D | perf_file_reader.cpp | 36 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Instance() local 37 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in Instance()
|
| D | perf_file_writer.cpp | 51 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Open() local 52 fp_ = fopen(resolvedPath.c_str(), "web+"); in Open()
|
| D | subcommand_report.cpp | 541 std::string resolvedPath = CanonicalizeSpecPath(reportFile_.c_str()); in PrepareOutput() local 542 output_ = fopen(resolvedPath.c_str(), "w"); in PrepareOutput()
|
| D | perf_event_record.cpp | 144 std::string resolvedPath = CanonicalizeSpecPath(outputFilename.c_str()); in Dump() local 145 outputDump_ = fopen(resolvedPath.c_str(), "w"); in Dump()
|
| /developtools/bytrace/bin/src/ |
| D | bytrace_cmd.cpp | 192 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local 194 if (!_fullpath(resolvedPath, src, PATH_MAX)) { in CanonicalizeSpecPath() 201 if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath() 209 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath() 220 string res(resolvedPath); in CanonicalizeSpecPath() 227 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() local 228 ifstream fin(resolvedPath.c_str()); in ReadFile() 785 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + path).c_str()); in DumpTrace() local 786 int traceFd = open(resolvedPath.c_str(), O_RDWR); in DumpTrace() 815 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + TRACE_MARKER_PATH).c_str()); in MarkOthersClockSync() local [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | symbols_file_test.cpp | 683 std::string resolvedPath = CanonicalizeSpecPath(TEST_FILE_ELF_FULL_PATH.c_str()); variable 684 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(resolvedPath.c_str(), "rb"),
|