traced_probes: Add proto files for several sde events
Also adds a proto for sched_pi_setprio.
This reduces the size cost of these events significantly.
Bug: 180930490
Change-Id: Ibb488a220d38f10b4e5e0f67e80632c3a83c812e
diff --git a/protos/perfetto/trace/ftrace/ftrace_event.proto b/protos/perfetto/trace/ftrace/ftrace_event.proto
index 24ebae0..31e5b92 100644
--- a/protos/perfetto/trace/ftrace/ftrace_event.proto
+++ b/protos/perfetto/trace/ftrace/ftrace_event.proto
@@ -441,5 +441,11 @@
MaliTracingMarkWriteFtraceEvent mali_tracing_mark_write = 350;
DmaHeapStatFtraceEvent dma_heap_stat = 351;
CpuhpPauseFtraceEvent cpuhp_pause = 352;
+ SchedPiSetprioFtraceEvent sched_pi_setprio = 353;
+ SdeSdeEvtlogFtraceEvent sde_sde_evtlog = 354;
+ SdeSdePerfCalcCrtcFtraceEvent sde_sde_perf_calc_crtc = 355;
+ SdeSdePerfCrtcUpdateFtraceEvent sde_sde_perf_crtc_update = 356;
+ SdeSdePerfSetQosLutsFtraceEvent sde_sde_perf_set_qos_luts = 357;
+ SdeSdePerfUpdateBusFtraceEvent sde_sde_perf_update_bus = 358;
}
}
diff --git a/protos/perfetto/trace/ftrace/sched.proto b/protos/perfetto/trace/ftrace/sched.proto
index 9c31fac..87f409b 100644
--- a/protos/perfetto/trace/ftrace/sched.proto
+++ b/protos/perfetto/trace/ftrace/sched.proto
@@ -76,3 +76,9 @@
optional int32 pid = 2;
optional int32 prio = 3;
}
+message SchedPiSetprioFtraceEvent {
+ optional string comm = 1;
+ optional int32 newprio = 2;
+ optional int32 oldprio = 3;
+ optional int32 pid = 4;
+}
diff --git a/protos/perfetto/trace/ftrace/sde.proto b/protos/perfetto/trace/ftrace/sde.proto
index 724a9a3..61c8d7b 100644
--- a/protos/perfetto/trace/ftrace/sde.proto
+++ b/protos/perfetto/trace/ftrace/sde.proto
@@ -12,3 +12,46 @@
optional int32 value = 4;
optional uint32 trace_begin = 5;
}
+message SdeSdeEvtlogFtraceEvent {
+ optional string evtlog_tag = 1;
+ optional int32 pid = 2;
+ optional uint32 tag_id = 3;
+}
+message SdeSdePerfCalcCrtcFtraceEvent {
+ optional uint64 bw_ctl_ebi = 1;
+ optional uint64 bw_ctl_llcc = 2;
+ optional uint64 bw_ctl_mnoc = 3;
+ optional uint32 core_clk_rate = 4;
+ optional uint32 crtc = 5;
+ optional uint64 ib_ebi = 6;
+ optional uint64 ib_llcc = 7;
+ optional uint64 ib_mnoc = 8;
+}
+message SdeSdePerfCrtcUpdateFtraceEvent {
+ optional uint64 bw_ctl_ebi = 1;
+ optional uint64 bw_ctl_llcc = 2;
+ optional uint64 bw_ctl_mnoc = 3;
+ optional uint32 core_clk_rate = 4;
+ optional uint32 crtc = 5;
+ optional int32 params = 6;
+ optional uint64 per_pipe_ib_ebi = 7;
+ optional uint64 per_pipe_ib_llcc = 8;
+ optional uint64 per_pipe_ib_mnoc = 9;
+ optional uint32 stop_req = 10;
+ optional uint32 update_bus = 11;
+ optional uint32 update_clk = 12;
+}
+message SdeSdePerfSetQosLutsFtraceEvent {
+ optional uint32 fl = 1;
+ optional uint32 fmt = 2;
+ optional uint64 lut = 3;
+ optional uint32 lut_usage = 4;
+ optional uint32 pnum = 5;
+ optional uint32 rt = 6;
+}
+message SdeSdePerfUpdateBusFtraceEvent {
+ optional uint64 ab_quota = 1;
+ optional uint32 bus_id = 2;
+ optional int32 client = 3;
+ optional uint64 ib_quota = 4;
+}
diff --git a/protos/perfetto/trace/perfetto_trace.proto b/protos/perfetto/trace/perfetto_trace.proto
index 78c593a..bf33910 100644
--- a/protos/perfetto/trace/perfetto_trace.proto
+++ b/protos/perfetto/trace/perfetto_trace.proto
@@ -4874,6 +4874,12 @@
optional int32 pid = 2;
optional int32 prio = 3;
}
+message SchedPiSetprioFtraceEvent {
+ optional string comm = 1;
+ optional int32 newprio = 2;
+ optional int32 oldprio = 3;
+ optional int32 pid = 4;
+}
// End of protos/perfetto/trace/ftrace/sched.proto
@@ -4897,6 +4903,49 @@
optional int32 value = 4;
optional uint32 trace_begin = 5;
}
+message SdeSdeEvtlogFtraceEvent {
+ optional string evtlog_tag = 1;
+ optional int32 pid = 2;
+ optional uint32 tag_id = 3;
+}
+message SdeSdePerfCalcCrtcFtraceEvent {
+ optional uint64 bw_ctl_ebi = 1;
+ optional uint64 bw_ctl_llcc = 2;
+ optional uint64 bw_ctl_mnoc = 3;
+ optional uint32 core_clk_rate = 4;
+ optional uint32 crtc = 5;
+ optional uint64 ib_ebi = 6;
+ optional uint64 ib_llcc = 7;
+ optional uint64 ib_mnoc = 8;
+}
+message SdeSdePerfCrtcUpdateFtraceEvent {
+ optional uint64 bw_ctl_ebi = 1;
+ optional uint64 bw_ctl_llcc = 2;
+ optional uint64 bw_ctl_mnoc = 3;
+ optional uint32 core_clk_rate = 4;
+ optional uint32 crtc = 5;
+ optional int32 params = 6;
+ optional uint64 per_pipe_ib_ebi = 7;
+ optional uint64 per_pipe_ib_llcc = 8;
+ optional uint64 per_pipe_ib_mnoc = 9;
+ optional uint32 stop_req = 10;
+ optional uint32 update_bus = 11;
+ optional uint32 update_clk = 12;
+}
+message SdeSdePerfSetQosLutsFtraceEvent {
+ optional uint32 fl = 1;
+ optional uint32 fmt = 2;
+ optional uint64 lut = 3;
+ optional uint32 lut_usage = 4;
+ optional uint32 pnum = 5;
+ optional uint32 rt = 6;
+}
+message SdeSdePerfUpdateBusFtraceEvent {
+ optional uint64 ab_quota = 1;
+ optional uint32 bus_id = 2;
+ optional int32 client = 3;
+ optional uint64 ib_quota = 4;
+}
// End of protos/perfetto/trace/ftrace/sde.proto
@@ -5401,6 +5450,12 @@
MaliTracingMarkWriteFtraceEvent mali_tracing_mark_write = 350;
DmaHeapStatFtraceEvent dma_heap_stat = 351;
CpuhpPauseFtraceEvent cpuhp_pause = 352;
+ SchedPiSetprioFtraceEvent sched_pi_setprio = 353;
+ SdeSdeEvtlogFtraceEvent sde_sde_evtlog = 354;
+ SdeSdePerfCalcCrtcFtraceEvent sde_sde_perf_calc_crtc = 355;
+ SdeSdePerfCrtcUpdateFtraceEvent sde_sde_perf_crtc_update = 356;
+ SdeSdePerfSetQosLutsFtraceEvent sde_sde_perf_set_qos_luts = 357;
+ SdeSdePerfUpdateBusFtraceEvent sde_sde_perf_update_bus = 358;
}
}
diff --git a/src/trace_processor/importers/ftrace/ftrace_descriptors.cc b/src/trace_processor/importers/ftrace/ftrace_descriptors.cc
index 1bf293a..cb0d50e 100644
--- a/src/trace_processor/importers/ftrace/ftrace_descriptors.cc
+++ b/src/trace_processor/importers/ftrace/ftrace_descriptors.cc
@@ -24,7 +24,7 @@
namespace trace_processor {
namespace {
-std::array<MessageDescriptor, 353> descriptors{{
+std::array<MessageDescriptor, 359> descriptors{{
{nullptr, 0, {}},
{nullptr, 0, {}},
{nullptr, 0, {}},
@@ -3762,6 +3762,85 @@
{"time", ProtoSchemaType::kUint32},
},
},
+ {
+ "sched_pi_setprio",
+ 4,
+ {
+ {},
+ {"comm", ProtoSchemaType::kString},
+ {"newprio", ProtoSchemaType::kInt32},
+ {"oldprio", ProtoSchemaType::kInt32},
+ {"pid", ProtoSchemaType::kInt32},
+ },
+ },
+ {
+ "sde_sde_evtlog",
+ 3,
+ {
+ {},
+ {"evtlog_tag", ProtoSchemaType::kString},
+ {"pid", ProtoSchemaType::kInt32},
+ {"tag_id", ProtoSchemaType::kUint32},
+ },
+ },
+ {
+ "sde_sde_perf_calc_crtc",
+ 8,
+ {
+ {},
+ {"bw_ctl_ebi", ProtoSchemaType::kUint64},
+ {"bw_ctl_llcc", ProtoSchemaType::kUint64},
+ {"bw_ctl_mnoc", ProtoSchemaType::kUint64},
+ {"core_clk_rate", ProtoSchemaType::kUint32},
+ {"crtc", ProtoSchemaType::kUint32},
+ {"ib_ebi", ProtoSchemaType::kUint64},
+ {"ib_llcc", ProtoSchemaType::kUint64},
+ {"ib_mnoc", ProtoSchemaType::kUint64},
+ },
+ },
+ {
+ "sde_sde_perf_crtc_update",
+ 12,
+ {
+ {},
+ {"bw_ctl_ebi", ProtoSchemaType::kUint64},
+ {"bw_ctl_llcc", ProtoSchemaType::kUint64},
+ {"bw_ctl_mnoc", ProtoSchemaType::kUint64},
+ {"core_clk_rate", ProtoSchemaType::kUint32},
+ {"crtc", ProtoSchemaType::kUint32},
+ {"params", ProtoSchemaType::kInt32},
+ {"per_pipe_ib_ebi", ProtoSchemaType::kUint64},
+ {"per_pipe_ib_llcc", ProtoSchemaType::kUint64},
+ {"per_pipe_ib_mnoc", ProtoSchemaType::kUint64},
+ {"stop_req", ProtoSchemaType::kUint32},
+ {"update_bus", ProtoSchemaType::kUint32},
+ {"update_clk", ProtoSchemaType::kUint32},
+ },
+ },
+ {
+ "sde_sde_perf_set_qos_luts",
+ 6,
+ {
+ {},
+ {"fl", ProtoSchemaType::kUint32},
+ {"fmt", ProtoSchemaType::kUint32},
+ {"lut", ProtoSchemaType::kUint64},
+ {"lut_usage", ProtoSchemaType::kUint32},
+ {"pnum", ProtoSchemaType::kUint32},
+ {"rt", ProtoSchemaType::kUint32},
+ },
+ },
+ {
+ "sde_sde_perf_update_bus",
+ 4,
+ {
+ {},
+ {"ab_quota", ProtoSchemaType::kUint64},
+ {"bus_id", ProtoSchemaType::kUint32},
+ {"client", ProtoSchemaType::kInt32},
+ {"ib_quota", ProtoSchemaType::kUint64},
+ },
+ },
}};
} // namespace
diff --git a/src/traced/probes/ftrace/event_info.cc b/src/traced/probes/ftrace/event_info.cc
index e660f63..b8c23e2 100644
--- a/src/traced/probes/ftrace/event_info.cc
+++ b/src/traced/probes/ftrace/event_info.cc
@@ -6176,6 +6176,25 @@
kUnsetFtraceId,
242,
kUnsetSize},
+ {"sched_pi_setprio",
+ "sched",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "comm", 1, ProtoSchemaType::kString,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "newprio", 2, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "oldprio", 3, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "pid", 4, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 353,
+ kUnsetSize},
{"scm_call_start",
"scm",
{
@@ -6215,6 +6234,140 @@
kUnsetFtraceId,
333,
kUnsetSize},
+ {"sde_evtlog",
+ "sde",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "evtlog_tag", 1, ProtoSchemaType::kString,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "pid", 2, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "tag_id", 3, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 354,
+ kUnsetSize},
+ {"sde_perf_calc_crtc",
+ "sde",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_ebi", 1, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_llcc", 2, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_mnoc", 3, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "core_clk_rate", 4, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "crtc", 5, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "ib_ebi", 6, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "ib_llcc", 7, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "ib_mnoc", 8, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 355,
+ kUnsetSize},
+ {"sde_perf_crtc_update",
+ "sde",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_ebi", 1, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_llcc", 2, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bw_ctl_mnoc", 3, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "core_clk_rate", 4, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "crtc", 5, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "params", 6, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "per_pipe_ib_ebi", 7, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "per_pipe_ib_llcc", 8, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "per_pipe_ib_mnoc", 9, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "stop_req", 10, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "update_bus", 11, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "update_clk", 12, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 356,
+ kUnsetSize},
+ {"sde_perf_set_qos_luts",
+ "sde",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "fl", 1, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "fmt", 2, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "lut", 3, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "lut_usage", 4, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "pnum", 5, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "rt", 6, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 357,
+ kUnsetSize},
+ {"sde_perf_update_bus",
+ "sde",
+ {
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "ab_quota", 1, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "bus_id", 2, ProtoSchemaType::kUint32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "client", 3, ProtoSchemaType::kInt32,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ {kUnsetOffset, kUnsetSize, FtraceFieldType::kInvalidFtraceFieldType,
+ "ib_quota", 4, ProtoSchemaType::kUint64,
+ TranslationStrategy::kInvalidTranslationStrategy},
+ },
+ kUnsetFtraceId,
+ 358,
+ kUnsetSize},
{"signal_deliver",
"signal",
{
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sched/sched_pi_setprio/format b/src/traced/probes/ftrace/test/data/synthetic/events/sched/sched_pi_setprio/format
new file mode 100644
index 0000000..818f484
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sched/sched_pi_setprio/format
@@ -0,0 +1,14 @@
+name: sched_pi_setprio
+ID: 77
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:char comm[16]; offset:8; size:16; signed:0;
+ field:pid_t pid; offset:24; size:4; signed:1;
+ field:int oldprio; offset:28; size:4; signed:1;
+ field:int newprio; offset:32; size:4; signed:1;
+
+print fmt: "comm=%s pid=%d oldprio=%d newprio=%d", REC->comm, REC->pid, REC->oldprio, REC->newprio
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_evtlog/format b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_evtlog/format
new file mode 100644
index 0000000..8b3cda1
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_evtlog/format
@@ -0,0 +1,14 @@
+name: sde_evtlog
+ID: 590
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:int pid; offset:8; size:4; signed:1;
+ field:__data_loc char[] evtlog_tag; offset:12; size:4; signed:0;
+ field:u32 tag_id; offset:16; size:4; signed:0;
+ field:u32 data[15]; offset:20; size:60; signed:0;
+
+print fmt: "%d|%s:%d|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x|%x", REC->pid, __get_str(evtlog_tag), REC->tag_id, REC->data[0], REC->data[1], REC->data[2], REC->data[3], REC->data[4], REC->data[5], REC->data[6], REC->data[7], REC->data[8], REC->data[9], REC->data[10], REC->data[11], REC->data[12], REC->data[13], REC->data[14]
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_calc_crtc/format b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_calc_crtc/format
new file mode 100644
index 0000000..728bd05
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_calc_crtc/format
@@ -0,0 +1,18 @@
+name: sde_perf_calc_crtc
+ID: 591
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:u32 crtc; offset:8; size:4; signed:0;
+ field:u64 bw_ctl_mnoc; offset:16; size:8; signed:0;
+ field:u64 bw_ctl_llcc; offset:24; size:8; signed:0;
+ field:u64 bw_ctl_ebi; offset:32; size:8; signed:0;
+ field:u64 ib_mnoc; offset:40; size:8; signed:0;
+ field:u64 ib_llcc; offset:48; size:8; signed:0;
+ field:u64 ib_ebi; offset:56; size:8; signed:0;
+ field:u32 core_clk_rate; offset:64; size:4; signed:0;
+
+print fmt: "crtc=%d mnoc=[%llu, %llu] llcc=[%llu %llu] ebi=[%llu, %llu] clk_rate=%u", REC->crtc, REC->bw_ctl_mnoc, REC->ib_mnoc, REC->bw_ctl_llcc, REC->ib_llcc, REC->bw_ctl_ebi, REC->ib_ebi, REC->core_clk_rate
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_crtc_update/format b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_crtc_update/format
new file mode 100644
index 0000000..fda8a78
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_crtc_update/format
@@ -0,0 +1,22 @@
+name: sde_perf_crtc_update
+ID: 592
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:u32 crtc; offset:8; size:4; signed:0;
+ field:u64 bw_ctl_mnoc; offset:16; size:8; signed:0;
+ field:u64 per_pipe_ib_mnoc; offset:24; size:8; signed:0;
+ field:u64 bw_ctl_llcc; offset:32; size:8; signed:0;
+ field:u64 per_pipe_ib_llcc; offset:40; size:8; signed:0;
+ field:u64 bw_ctl_ebi; offset:48; size:8; signed:0;
+ field:u64 per_pipe_ib_ebi; offset:56; size:8; signed:0;
+ field:u32 core_clk_rate; offset:64; size:4; signed:0;
+ field:bool stop_req; offset:68; size:1; signed:0;
+ field:u32 update_bus; offset:72; size:4; signed:0;
+ field:u32 update_clk; offset:76; size:4; signed:0;
+ field:int params; offset:80; size:4; signed:1;
+
+print fmt: "crtc=%d mnoc=[%llu %llu] llcc=[%llu %llu] ebi=[%llu %llu] clk=%u stop=%d ubus=%d uclk=%d %d", REC->crtc, REC->bw_ctl_mnoc, REC->per_pipe_ib_mnoc, REC->bw_ctl_llcc, REC->per_pipe_ib_llcc, REC->bw_ctl_ebi, REC->per_pipe_ib_ebi, REC->core_clk_rate, REC->stop_req, REC->update_bus, REC->update_clk, REC->params
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_set_qos_luts/format b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_set_qos_luts/format
new file mode 100644
index 0000000..6762f3d
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_set_qos_luts/format
@@ -0,0 +1,16 @@
+name: sde_perf_set_qos_luts
+ID: 595
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:u32 pnum; offset:8; size:4; signed:0;
+ field:u32 fmt; offset:12; size:4; signed:0;
+ field:bool rt; offset:16; size:1; signed:0;
+ field:u32 fl; offset:20; size:4; signed:0;
+ field:u64 lut; offset:24; size:8; signed:0;
+ field:u32 lut_usage; offset:32; size:4; signed:0;
+
+print fmt: "pnum=%d fmt=%x rt=%d fl=%d lut=0x%llx lut_usage=%d", REC->pnum, REC->fmt, REC->rt, REC->fl, REC->lut, REC->lut_usage
diff --git a/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_update_bus/format b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_update_bus/format
new file mode 100644
index 0000000..f8a0e58
--- /dev/null
+++ b/src/traced/probes/ftrace/test/data/synthetic/events/sde/sde_perf_update_bus/format
@@ -0,0 +1,14 @@
+name: sde_perf_update_bus
+ID: 596
+format:
+ field:unsigned short common_type; offset:0; size:2; signed:0;
+ field:unsigned char common_flags; offset:2; size:1; signed:0;
+ field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
+ field:int common_pid; offset:4; size:4; signed:1;
+
+ field:int client; offset:8; size:4; signed:1;
+ field:u32 bus_id; offset:12; size:4; signed:0;
+ field:u64 ab_quota; offset:16; size:8; signed:0;
+ field:u64 ib_quota; offset:24; size:8; signed:0;
+
+print fmt: "Request client:%d bus_id:%d ab=%llu ib=%llu", REC->client, REC->bus_id, REC->ab_quota, REC->ib_quota
diff --git a/tools/ftrace_proto_gen/event_list b/tools/ftrace_proto_gen/event_list
index 1351543..a4193d4 100644
--- a/tools/ftrace_proto_gen/event_list
+++ b/tools/ftrace_proto_gen/event_list
@@ -347,3 +347,9 @@
mali/tracing_mark_write
dmabuf_heap/dma_heap_stat
cpuhp/cpuhp_pause
+sched/sched_pi_setprio
+sde/sde_evtlog
+sde/sde_perf_calc_crtc
+sde/sde_perf_crtc_update
+sde/sde_perf_set_qos_luts
+sde/sde_perf_update_bus