| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | ftrace_data_reader.cpp | 31 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()
|
| D | file_utils.cpp | 54 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()
|
| D | ftrace_fs_ops.cpp | 216 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/ |
| D | sp_csv_util.h | 33 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/ |
| D | file_cache.cpp | 31 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/ |
| D | diskio_data_plugin.cpp | 120 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/ |
| D | plugin_module.cpp | 36 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()
|
| D | plugin_manager.cpp | 41 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/ |
| D | memory_data_plugin.cpp | 117 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/ |
| D | cpu_data_plugin.cpp | 177 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/ |
| D | sp_utils.cpp | 58 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/ |
| D | network_plugin.cpp | 66 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/ |
| D | check_hook_data_test.cpp | 166 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/ |
| D | process_data_plugin.cpp | 134 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/ |
| D | hiprofiler_cmd_test.cpp | 104 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()
|