change ftrace proto

Signed-off-by: zyxzyx <zhangyixin19@huawei.com>
This commit is contained in:
zyxzyx 2024-07-22 18:00:43 +08:00
parent 2d4bd0c4d4
commit 065dce9185
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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