| /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 | 51 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local 52 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile() 54 int fd = open(realPath, O_RDONLY); in ReadFile()
|
| D | ftrace_fs_ops.cpp | 146 char realPath[PATH_MAX + 1] = {0}; in ClearTraceBuffer() local 149 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), false, in ClearTraceBuffer() 151 int fd = open(realPath, O_TRUNC); in ClearTraceBuffer() 152 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/host/smartperf/client/client_command/ |
| D | RAM.cpp | 47 char realPath[PATH_MAX] = {0x00}; in GetRamInfo() local 48 if (realpath(cmdRam.c_str(), realPath) == nullptr) { in GetRamInfo() 51 std::ifstream infile(realPath, std::ios::in); in GetRamInfo()
|
| D | CPU.cpp | 73 char realPath[PATH_MAX] = {0x00}; in GetCpuLoad() local 74 if (realpath(procStat.c_str(), realPath) == nullptr) { in GetCpuLoad() 77 FILE *fp = fopen(realPath, "r"); in GetCpuLoad()
|
| D | sp_utils.cpp | 37 char realPath[PATH_MAX] = {0x00}; in LoadFile() local 38 if (realpath(filePath.c_str(), realPath) == nullptr) { in LoadFile() 41 std::ifstream file(realPath); in LoadFile()
|
| /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/memory_plugin/src/ |
| D | memory_data_plugin.cpp | 92 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local 95 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd() 102 meminfoFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd() 114 char realPath[PATH_MAX + 1] = {0}; in InitMemVmemFd() local 117 if (realpath(fileName, realPath) == nullptr) { in InitMemVmemFd() 124 vmstatFd_ = open(realPath, O_RDONLY | O_CLOEXEC); in InitMemVmemFd() 456 char realPath[PATH_MAX] = {0}; in ReadFile() local 457 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile() 459 int fd = open(realPath, O_RDONLY); in ReadFile() 488 char realPath[PATH_MAX + 1] = {0}; in OpenProcPidFiles() local [all …]
|
| /developtools/profiler/device/plugins/diskio_plugin/src/ |
| D | diskio_data_plugin.cpp | 102 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local 103 …CHECK_TRUE((fileName.length() < PATH_MAX) && (realpath(fileName.c_str(), realPath) != nullptr), RE… in ReadFile() 105 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 | 39 char realPath[PATH_MAX + 1] = {0}; in ComputeFileSha256() local 45 if ((path.length() >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in ComputeFileSha256() 49 std::unique_ptr<FILE, decltype(fclose)*> fptr(fopen(realPath, "rb"), fclose); in ComputeFileSha256()
|
| /developtools/profiler/device/cmds/test/unittest/ |
| D | hiprofiler_cmd_test.cpp | 98 char realPath[PATH_MAX + 1] = {0}; in ComputeFileSha256() local 105 if ((strlen(path.c_str()) >= PATH_MAX) || (realpath(path.c_str(), realPath) == nullptr)) { in ComputeFileSha256() 109 FILE* file = fopen(realPath, "rb"); in ComputeFileSha256()
|
| /developtools/profiler/device/plugins/cpu_plugin/src/ |
| D | cpu_data_plugin.cpp | 156 char realPath[PATH_MAX + 1] = {0}; in ReadFile() local 165 if (realpath(filePath, realPath) == nullptr) { in ReadFile() 173 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile() 178 … HILOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf); in ReadFile() 191 HILOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile()
|
| /developtools/profiler/device/plugins/native_hook/test/unittest/ |
| D | check_hook_data_test.cpp | 150 char* realPath = realpath(filePath, nullptr); in ReadFile() local 151 if (realPath == nullptr) { in ReadFile() 159 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadFile() 164 … HILOG_ERROR(LOG_CORE, "%s:failed to open(%s), errno(%d:%s)", __func__, realPath, errno, buf); in ReadFile() 175 HILOG_ERROR(LOG_CORE, "%s:failed to read(%s), errno=%d", __func__, realPath, errno); in ReadFile() 179 free(realPath); in ReadFile()
|
| /developtools/profiler/device/plugins/network_plugin/src/ |
| D | network_plugin.cpp | 67 char realPath[PATH_MAX + 1] = {0}; in Report() local 68 if ((file.length() >= PATH_MAX) || (realpath(file.c_str(), realPath) == nullptr)) { in Report() 72 fp_ = std::unique_ptr<FILE, int (*)(FILE*)>(fopen(realPath, "r"), fclose); in Report()
|
| /developtools/profiler/device/plugins/process_plugin/src/ |
| D | process_data_plugin.cpp | 121 char realPath[PATH_MAX + 1] = {0}; in ReadProcPidFile() local 128 if (realpath(fileName, realPath) == nullptr) { in ReadProcPidFile() 132 fd = open(realPath, O_RDONLY | O_CLOEXEC); in ReadProcPidFile()
|