Lines Matching refs:outPath
834 bool GenerateNewFile(int &outFd, std::string &outPath)
836 if (access(outPath.c_str(), F_OK) == 0) {
840 outPath = CanonicalizeSpecPath(outputFileName.c_str());
841 outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); // 0644:-rw-r--r--
844 HILOG_ERROR(LOG_CORE, "open %{public}s failed, errno: %{public}d.", outPath.c_str(), errno);
847 HILOG_ERROR(LOG_CORE, "create new trace file %{public}s limited.", outPath.c_str());
862 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str());
863 int outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); // 0644:-rw-r--r--
865 HILOG_ERROR(LOG_CORE, "open %{public}s failed, errno: %{public}d.", outPath.c_str(), errno);
878 WriteEventsFormat(outFd, outPath);
884 if (!WriteCpuRaw(outFd, outPath)) {
888 WriteCmdlines(outFd, outPath);
889 WriteTgids(outFd, outPath);
890 WriteHeaderPage(outFd, outPath);
891 WritePrintkFormats(outFd, outPath);
893 if (!GenerateNewFile(outFd, outPath)) {
895 outPath.c_str(), errno);
975 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str());
976 int outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); // 0644:-rw-r--r--
988 if (WriteEventsFormat(outFd, outPath) && WriteCpuRaw(outFd, outPath) &&
989 WriteCmdlines(outFd, outPath) && WriteTgids(outFd, outPath) &&
990 WriteHeaderPage(outFd, outPath) && WritePrintkFormats(outFd, outPath) &&