Searched refs:g_traceRootPath (Results 1 – 4 of 4) sorted by relevance
/base/hiviewdfx/hitrace/cmd/src/ |
D | hitrace_cmd.cpp | 84 string g_traceRootPath; variable 104 g_traceRootPath = debugfsPath; in IsTraceMounted() 108 g_traceRootPath = tracefsPath; in IsTraceMounted() 118 return access((g_traceRootPath + filename).c_str(), F_OK) != -1; in IsFileExit() 123 return access((g_traceRootPath + filename).c_str(), W_OK) != -1; in IsWritableFile() 129 out.open(g_traceRootPath + filename, ios::out); in WriteStrToFile() 217 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() 220 fprintf(stderr, "open file: %s failed!\n", (g_traceRootPath + filename).c_str()); in ReadFile() 569 int fd = creat((g_traceRootPath + path).c_str(), 0); in TruncateFile() 571 fprintf(stderr, "Error: clear %s, errno: %d\n", (g_traceRootPath + path).c_str(), errno); in TruncateFile() [all …]
|
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/ |
D | hitrace_ndk_test.cpp | 72 static string g_traceRootPath; variable 93 g_traceRootPath = debugfsDir; in SetUpTestCase() 95 g_traceRootPath = tracefsDir; in SetUpTestCase() 324 if (g_traceRootPath.empty()) { in WriteStringToFile() 329 out.open(g_traceRootPath + fileName, ios::out); in WriteStringToFile() 337 if (g_traceRootPath.empty()) { in CleanTrace() 342 ofs.open(g_traceRootPath + TRACE_PATH, ofstream::out); in CleanTrace() 410 return ReadFile2string(g_traceRootPath + TRACE_PATH); in ReadTrace()
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
D | hitrace_dump.cpp | 134 std::string g_traceRootPath; variable 161 g_traceRootPath = debugfsPath; in IsTraceMounted() 165 g_traceRootPath = tracefsPath; in IsTraceMounted() 304 out.open(g_traceRootPath + filename, std::ios::out); in WriteStrToFile() 327 int fd = creat((g_traceRootPath + "trace").c_str(), 0); in TruncateFile() 455 std::string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() 672 std::string srcPath = g_traceRootPath + priorityTracingCategory[i]; in WriteEventsFormat() 685 std::string src = g_traceRootPath + "per_cpu/cpu" + std::to_string(i) + "/trace_pipe_raw"; in WriteCpuRaw() 696 std::string cmdlinesPath = g_traceRootPath + "saved_cmdlines"; in WriteCmdlines() 702 std::string tgidsPath = g_traceRootPath + "saved_tgids"; in WriteTgids()
|
/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/ |
D | hitrace_dump_test.cpp | 45 std::string g_traceRootPath; variable 100 g_traceRootPath = debugfsDir; in SetUpTestCase() 102 g_traceRootPath = tracefsDir; in SetUpTestCase()
|