replace debug.bytrace to debug.hitrace

Signed-off-by: wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12
2022-05-27 16:58:04 +08:00
parent 5ea4dda90a
commit 2e77b454b5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -183,7 +183,7 @@
"chmod 0666 /sys/kernel/tracing/per_cpu/cpu13/trace",
"chmod 0666 /sys/kernel/tracing/per_cpu/cpu14/trace",
"chmod 0666 /sys/kernel/tracing/per_cpu/cpu15/trace",
"setparam debug.bytrace.tags.enableflags 0"
"setparam debug.hitrace.tags.enableflags 0"
]
}
]
+1 -1
View File
@@ -53,7 +53,7 @@ struct option g_longOptions[] = {
const unsigned int CHUNK_SIZE = 65536;
const int BLOCK_SIZE = 4096;
const string TRACE_TAG_PROPERTY = "debug.bytrace.tags.enableflags";
const string TRACE_TAG_PROPERTY = "debug.hitrace.tags.enableflags";
// various operating paths of ftrace
const string TRACING_ON_PATH = "tracing_on";
+1 -1
View File
@@ -24,7 +24,7 @@ bool SetPropertyInner(const std::string& property, const std::string& value)
{
bool result = OHOS::system::SetParameter(property, value);
if (!result) {
fprintf(stderr, "Error: Failed to set %s property.\n", property.c_str());
fprintf(stderr, "Error: Failed to set %s property.\n", value.c_str());
}
return result;
}
@@ -43,7 +43,7 @@ const string TRACE_FINISH = TRACE_PATTERN + "E\\|";
const string TRACE_ASYNC_START = TRACE_PATTERN + "S\\|(.*?)\\|H:";
const string TRACE_ASYNC_FINISH = TRACE_PATTERN + "F\\|(.*?)\\|H:";
const string TRACE_COUNT = TRACE_PATTERN + "C\\|(.*?)\\|H:";
const string TRACE_PROPERTY = "debug.bytrace.tags.enableflags";
const string TRACE_PROPERTY = "debug.hitrace.tags.enableflags";
constexpr uint32_t TASK = 1;
constexpr uint32_t TID = 2;
constexpr uint32_t TGID = 3;