Home
last modified time | relevance | path

Searched refs:realPath (Results 1 - 24 of 24) sorted by relevance

/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dftrace_data_reader.cpp31 char realPath[PATH_MAX + 1] = {0}; in FtraceDataReader() local
33 if ((path.length() >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in FtraceDataReader()
36 readFd_ = open(realPath, O_CLOEXEC | O_NONBLOCK); in FtraceDataReader()
37 CHECK_TRUE(readFd_ >= 0, NO_RETVAL, "open %s failed, %d", realPath, errno); in FtraceDataReader()
H A Dfile_utils.cpp54 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local
55 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile()
57 int fd = open(realPath, O_RDONLY); in ReadFile()
H A Dftrace_fs_ops.cpp200 char realPath[PATH_MAX + 1] = {0}; in ClearTraceBuffer() local
204 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), false, in ClearTraceBuffer()
206 int fd = open(realPath, O_TRUNC | O_RDWR); in ClearTraceBuffer()
207 CHECK_TRUE(fd >= 0, false, "open %s failed!", realPath); in ClearTraceBuffer()
/developtools/profiler/device/services/profiler_service/src/
H A Dtrace_file_reader.cpp47 std::string realPath = retFile.second; in Open() local
48 stream_.open(realPath, std::ios_base::in | std::ios_base::binary); in Open()
49 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", realPath.c_str(), errno); in Open()
52 CHECK_TRUE(stream_, false, "read header from %s failed!", realPath.c_str()); in Open()
54 path_ = realPath; in Open()
/developtools/profiler/host/smartperf/client/client_command/
H A DCapture.cpp112 char realPath[PATH_MAX] = {0x00}; in ThreadGetCatchSocket() local
113 if (realpath(savePath.c_str(), realPath) == nullptr) { in ThreadGetCatchSocket()
117 auto fd = open(realPath, O_RDWR | O_CREAT, 0644); in ThreadGetCatchSocket()
171 char realPath[PATH_MAX] = {0x00}; in TakeScreenCap() local
172 if (realpath(savePath.c_str(), realPath) == nullptr) { in TakeScreenCap()
175 FILE *fp = fopen(realPath, "wb"); in TakeScreenCap()
H A Dparse_slide_fps_trace.cpp27 char realPath[PATH_MAX] = {0x00}; in ParseSlideFpsTraceNoh() local
28 if ((realpath(file.c_str(), realPath) == nullptr)) { in ParseSlideFpsTraceNoh()
31 infile.open(realPath); in ParseSlideFpsTraceNoh()
H A Dparse_click_response_trace.cpp31 char realPath[PATH_MAX] = {0x00}; in ParseResponseTrace() local
32 if ((realpath(fileNamePath.c_str(), realPath) == nullptr)) { in ParseResponseTrace()
35 infile.open(realPath); in ParseResponseTrace()
H A Dparse_click_complete_trace.cpp31 char realPath[PATH_MAX] = {0x00}; in ParseCompleteTrace() local
32 if ((realpath(fileNamePath.c_str(), realPath) == nullptr)) { in ParseCompleteTrace()
35 infile.open(realPath); in ParseCompleteTrace()
H A Dstalling_rate_trace.cpp28 char realPath[PATH_MAX] = {0x00}; in StallingRateResult() local
29 if ((realpath(file.c_str(), realPath) == nullptr)) { in StallingRateResult()
32 infile.open(realPath); in StallingRateResult()
H A Dsp_utils.cpp75 char realPath[PATH_MAX] = {0x00}; in LoadFile() local
76 if ((realpath(filePath.c_str(), realPath) == nullptr)) { in LoadFile()
79 std::ifstream file(realPath); in LoadFile()
/developtools/profiler/device/plugins/hilog_plugin/src/
H A Dfile_cache.cpp31 char realPath[PATH_MAX] = {0}; in Open() local
32 CHECK_TRUE(!(path_.empty() || (path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) == nullptr)), in Open()
34 std::string targetFile = std::string(realPath) + std::string("/") + file; in Open()
/developtools/profiler/device/plugins/diskio_plugin/src/
H A Ddiskio_data_plugin.cpp120 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local
121 CHECK_TRUE((fileName.length() < PATH_MAX) && (realpath(fileName.c_str(), realPath) != nullptr), RET_FAIL, in ReadFile()
123 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
/developtools/packing_tool/packing_tool/frameworks/include/
H A Dutils.h72 static bool GetRealPath(const std::string& path, std::string& realPath);
73 static bool GetRealPathOfNoneExistFile(const std::string& path, std::string& realPath);
/developtools/profiler/device/plugins/memory_plugin/src/
H A Dmemory_data_plugin.cpp119 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local
122 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd()
129 meminfoFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd()
141 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local
144 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd()
151 vmstatFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd()
450 char realPath[PATH_MAX] = {0}; in ReadFile() local
451 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile()
453 int fd = open(realPath, O_RDONLY); in ReadFile()
482 char realPath[PATH_MA in OpenProcPidFiles() local
545 char realPath[PATH_MAX + 1] = {0}; ReadProcPidFile() local
[all...]
/developtools/packing_tool/packing_tool/frameworks/src/
H A Dutils.cpp433 bool Utils::GetRealPath(const std::string& path, std::string& realPath) in GetRealPath() argument
442 realPath = std::string(buffer); in GetRealPath()
446 bool Utils::GetRealPathOfNoneExistFile(const std::string& path, std::string& realPath) in GetRealPathOfNoneExistFile() argument
458 realPath = std::string(buffer) + fs::path::preferred_separator + fileName; in GetRealPathOfNoneExistFile()
H A Dfast_app_packager.cpp337 std::string realPath; in ReadFileToString() local
338 if (!Utils::GetRealPath(path.string(), realPath)) { in ReadFileToString()
342 std::ifstream file(realPath, std::ios::in | std::ios::binary); in ReadFileToString()
/developtools/ace_js2bundle/ace-loader/src/
H A Dresource-plugin.js76 const realPath = path.join(inputPath, ext);
77 if (!fs.existsSync(realPath) || realPath === output) {
80 fs.readdirSync(realPath).forEach(function(file_) {
81 const file = path.join(realPath, file_);
/developtools/profiler/device/plugins/cpu_plugin/src/
H A Dcpu_data_plugin.cpp178 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local
187 if (realpath(filePath, realPath) == nullptr) { in ReadFile()
195 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
200 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf); in ReadFile()
216 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile()
/developtools/global_resource_tool/src/
H A Dcompression_parser.cpp313 string realPath = ResourceUtil::RealPath(extensionPath_); in LoadImageTranscoder()
314 if (realPath.empty()) { in LoadImageTranscoder()
318 handle_ = dlopen(realPath.c_str(), RTLD_LAZY); in LoadImageTranscoder()
320 cerr << "Error: open '" << realPath.c_str() << "' fail." << endl; in LoadImageTranscoder()
/developtools/profiler/device/plugins/api/src/
H A Dplugin_manager.cpp41 char realPath[PATH_MAX + 1] = {0}; in ComputeFileSha256() local
47 if ((path.length() >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in ComputeFileSha256()
51 std::unique_ptr<FILE, decltype(fclose)*> fptr(fopen(realPath, "rb"), fclose); in ComputeFileSha256()
/developtools/profiler/device/plugins/network_plugin/src/
H A Dnetwork_plugin.cpp66 char realPath[PATH_MAX + 1] = {0}; in WriteNetWorkData() local
67 CHECK_TRUE((file.length() < PATH_MAX) && (realpath(file.c_str(), realPath) != nullptr), false, in WriteNetWorkData()
69 fp_ = std::unique_ptr<FILE, int (*)(FILE*)>(fopen(realPath, "r"), fclose); in WriteNetWorkData()
/developtools/profiler/device/plugins/native_hook/test/unittest/
H A Dcheck_hook_data_test.cpp180 char* realPath = realpath(filePath, nullptr); in ReadFile() local
181 if (realPath == nullptr) { in ReadFile()
189 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
194 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf); in ReadFile()
205 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile()
209 free(realPath); in ReadFile()
/developtools/profiler/device/cmds/test/unittest/
H A Dhiprofiler_cmd_test.cpp103 char realPath[PATH_MAX + 1] = {0}; in ComputeFileSha256() local
110 if ((strlen(path.c_str()) >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in ComputeFileSha256()
114 FILE* file = fopen(realPath, "rb"); in ComputeFileSha256()
/developtools/profiler/device/plugins/process_plugin/src/
H A Dprocess_data_plugin.cpp136 char realPath[PATH_MAX + 1] = {0}; in ReadProcPidFile() local
143 if (realpath(fileName, realPath) == nullptr) { in ReadProcPidFile()
147 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadProcPidFile()

Completed in 18 milliseconds