mirror of
https://github.com/openharmony/developtools_bytrace.git
synced 2026-07-16 06:55:39 -04:00
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:
@@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user