Home
last modified time | relevance | path

Searched refs:realPath (Results 1 – 17 of 17) 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.cpp51 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()
Dftrace_fs_ops.cpp146 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/
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/host/smartperf/client/client_command/
DRAM.cpp47 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()
DCPU.cpp73 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()
Dsp_utils.cpp37 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/
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/memory_plugin/src/
Dmemory_data_plugin.cpp92 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/
Ddiskio_data_plugin.cpp102 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/
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.cpp39 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/
Dhiprofiler_cmd_test.cpp98 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/
Dcpu_data_plugin.cpp156 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/
Dcheck_hook_data_test.cpp150 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/
Dnetwork_plugin.cpp67 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/
Dprocess_data_plugin.cpp121 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()