Home
last modified time | relevance | path

Searched refs:realPath (Results 1 – 15 of 15) sorted by relevance

/developtools/profiler/device/plugins/ftrace_plugin/src/
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()
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()
Dftrace_fs_ops.cpp216 char realPath[PATH_MAX + 1] = {0}; in ClearTraceBuffer() local
225 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), false, in ClearTraceBuffer()
227 int fd = open(realPath, O_TRUNC | O_RDWR); in ClearTraceBuffer()
228 CHECK_TRUE(fd >= 0, false, "open %s failed!", realPath); in ClearTraceBuffer()
/developtools/profiler/host/smartperf/client/client_command/include/
Dsp_csv_util.h33 char realPath[PATH_MAX] = {0x00}; in WriteCsv() local
34 if (realpath(path.c_str(), realPath) == nullptr) { in WriteCsv()
61 char realPath[PATH_MAX] = {0x00}; in WriteCsvH() local
62 if (realpath(path.c_str(), realPath) == nullptr) { in WriteCsvH()
/developtools/profiler/device/plugins/hilog_plugin/src/
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) =… in Open()
34 std::string targetFile = std::string(realPath) + std::string("/") + file; in Open()
/developtools/profiler/device/plugins/diskio_plugin/src/
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), RE… in ReadFile()
123 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
/developtools/profiler/device/plugins/api/src/
Dplugin_module.cpp36 char realPath[PATH_MAX + 1] = {0}; in Load() local
41 CHECK_TRUE((path_.length() < PATH_MAX) && (realpath(path_.c_str(), realPath) != nullptr), false, in Load()
44 std::string rpath = realPath; // for SC warning in Load()
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/memory_plugin/src/
Dmemory_data_plugin.cpp117 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local
120 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd()
127 meminfoFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd()
139 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local
142 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd()
149 vmstatFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd()
467 char realPath[PATH_MAX] = {0}; in ReadFile() local
468 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile()
470 int fd = open(realPath, O_RDONLY); in ReadFile()
499 char realPath[PATH_MAX + 1] = {0}; in OpenProcPidFiles() local
[all …]
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_data_plugin.cpp177 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local
186 if (realpath(filePath, realPath) == nullptr) { in ReadFile()
194 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
199 …PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf… in ReadFile()
212 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile()
/developtools/profiler/host/smartperf/client/client_command/
Dsp_utils.cpp58 char realPath[PATH_MAX] = {0x00}; in LoadFile() local
59 if (realpath(filePath.c_str(), realPath) == nullptr) { in LoadFile()
62 std::ifstream file(realPath); in LoadFile()
/developtools/profiler/device/plugins/network_plugin/src/
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/
Dcheck_hook_data_test.cpp166 char* realPath = realpath(filePath, nullptr); in ReadFile() local
167 if (realPath == nullptr) { in ReadFile()
175 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile()
180 …PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf… in ReadFile()
191 … PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile()
195 free(realPath); in ReadFile()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_data_plugin.cpp134 char realPath[PATH_MAX + 1] = {0}; in ReadProcPidFile() local
141 if (realpath(fileName, realPath) == nullptr) { in ReadProcPidFile()
145 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadProcPidFile()
/developtools/profiler/device/cmds/test/unittest/
Dhiprofiler_cmd_test.cpp104 char realPath[PATH_MAX + 1] = {0}; in ComputeFileSha256() local
111 if ((strlen(path.c_str()) >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in ComputeFileSha256()
115 FILE* file = fopen(realPath, "rb"); in ComputeFileSha256()