Home
last modified time | relevance | path

Searched refs:resolvedPath (Results 1 – 14 of 14) sorted by relevance

/developtools/hiperf/test/fuzztest/perffile_fuzzer/
DPerfFile_fuzzer.cpp29 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/
Ddebug.cpp27 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()
Dbase.cpp768 string resolvedPath = CanonicalizeSpecPath(srcPath); in ReadBinFile() local
771 int fd = uv_fs_open(nullptr, &req, resolvedPath.c_str(), O_RDONLY, 0, nullptr); in ReadBinFile()
775 … WRITE_LOG(LOG_FATAL, "ReadBinFile uv_fs_open %s error %s", resolvedPath.c_str(), buffer); in ReadBinFile()
785 resolvedPath.c_str(), buffer, byteIO, readMax); in ReadBinFile()
805 string resolvedPath; in WriteBinFile() local
814 resolvedPath = srcPath.c_str(); in WriteBinFile()
817 resolvedPath = CanonicalizeSpecPath(srcPath); in WriteBinFile()
820 int fd = uv_fs_open(nullptr, &req, resolvedPath.c_str(), flags, S_IWUSR | S_IRUSR, nullptr); in WriteBinFile()
825 … WRITE_LOG(LOG_FATAL, "WriteBinFile uv_fs_open %s error %s", resolvedPath.c_str(), buffer); in WriteBinFile()
837 resolvedPath.c_str(), buffer, bytesDone, bufLen); in WriteBinFile()
[all …]
Dtransfer.cpp552 string resolvedPath = Base::CanonicalizeSpecPath(localPath); in CheckFilename() local
553 auto pos = resolvedPath.find(localPathBackup); in CheckFilename()
555 string shortPath = resolvedPath.substr(localPathBackup.size()); in CheckFilename()
Dforward.cpp396 string resolvedPath = Base::CanonicalizeSpecPath(sNodeCfg); in SetupDevicePoint() local
397 if ((ctxPoint->fd = open(resolvedPath.c_str(), O_RDWR)) < 0) { in SetupDevicePoint()
/developtools/hiperf/src/
Dutilities.cpp49 char resolvedPath[PATH_MAX] = { 0 }; in CanonicalizeSpecPath() local
51 if (!_fullpath(resolvedPath, src, PATH_MAX)) { in CanonicalizeSpecPath()
58 (void)strncpy_s(resolvedPath, sizeof(resolvedPath), src, strlen(src)); in CanonicalizeSpecPath()
59 } else if (realpath(src, resolvedPath) == nullptr) { in CanonicalizeSpecPath()
66 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath()
76 std::string res(resolvedPath); in CanonicalizeSpecPath()
139 std::string resolvedPath = CanonicalizeSpecPath(tempFile.c_str()); in StdoutRecord() local
140 recordFile_ = fopen(resolvedPath.c_str(), mode.c_str()); in StdoutRecord()
161 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Start() local
162 recordFile_ = fopen(resolvedPath.c_str(), "w+"); in Start()
[all …]
Ddebug_logger.cpp258 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()
Dsubcommand_dump.cpp118 std::string resolvedPath = CanonicalizeSpecPath(outputFilename_.c_str()); in PrepareDumpOutput() local
119 outputDump_ = fopen(resolvedPath.c_str(), "w"); in PrepareDumpOutput()
387 std::string resolvedPath = CanonicalizeSpecPath(userRegs.c_str()); in ExprotUserStack() local
388 … std::unique_ptr<FILE, decltype(&fclose)> fpUserRegs(fopen(resolvedPath.c_str(), "wb"), fclose); in ExprotUserStack()
414 std::string resolvedPath = CanonicalizeSpecPath(userData.c_str()); in ExprotUserData() local
415 … std::unique_ptr<FILE, decltype(&fclose)> fpUserData(fopen(resolvedPath.c_str(), "wb"), fclose); in ExprotUserData()
Dreport_protobuf_file.cpp75 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()
Dperf_file_reader.cpp36 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Instance() local
37 FILE *fp = fopen(resolvedPath.c_str(), "rb"); in Instance()
Dperf_file_writer.cpp51 std::string resolvedPath = CanonicalizeSpecPath(fileName.c_str()); in Open() local
52 fp_ = fopen(resolvedPath.c_str(), "web+"); in Open()
Dsubcommand_report.cpp559 std::string resolvedPath = CanonicalizeSpecPath(reportFile_.c_str()); in PrepareOutput() local
560 output_ = fopen(resolvedPath.c_str(), "w"); in PrepareOutput()
Dperf_event_record.cpp190 std::string resolvedPath = CanonicalizeSpecPath(outputFilename.c_str()); in Dump() local
191 outputDump_ = fopen(resolvedPath.c_str(), "w"); in Dump()
/developtools/hdc/hdc_rust/src/cffi/
Duart.cpp140 char resolvedPath[PATH_MAX] = { 0 }; local
142 if (!_fullpath(resolvedPath, src.c_str(), PATH_MAX)) {
146 if (realpath(src.c_str(), resolvedPath) == nullptr) {
150 std::string res(resolvedPath);