mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
change ftrace proto
Signed-off-by: zyxzyx <zhangyixin19@huawei.com>
This commit is contained in:
parent
2d4bd0c4d4
commit
065dce9185
@ -23,6 +23,7 @@ template <typename T> void sched_blocked_reason_func(T& msg, uint8_t data[], siz
|
||||
msg->set_pid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size));
|
||||
msg->set_caller(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size));
|
||||
msg->set_io_wait(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size));
|
||||
msg->set_caller_str(FtraceFieldParser::ParseStrField(format.fields, format.fields.size() - 1, data, size));
|
||||
}
|
||||
REGISTER_FTRACE_EVENT_PARSE_FUNCTION(sched_blocked_reason,
|
||||
[](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) {
|
||||
|
@ -23,6 +23,7 @@ message SchedBlockedReasonFormat {
|
||||
int32 pid = 1;
|
||||
uint64 caller = 2;
|
||||
uint32 io_wait = 3;
|
||||
string caller_str = 4;
|
||||
}
|
||||
|
||||
// /sys/kernel/debug/tracing/events/sched/sched_kthread_stop/format
|
||||
|
Loading…
Reference in New Issue
Block a user