How can I get kgsl information on ui.perfetto.dev

38 views
Skip to first unread message

simowce go

unread,
Nov 25, 2024, 4:57:15 AM11/25/24
to Perfetto Development - www.perfetto.dev
Hi all:

I have noticed that perfetto has already add kgsl ftrace support on this commit:

commit 1371648c47324a835c9dc19ed63c13c739b01fd4 提交 1371648c47324a835c9dc19ed63c13c739b01fd4
Date:   Tue Jul 30 14:59:22 2024 -0400 日期:2024 年 7 月 30 日星期二 14:59:22 -0400

    Enable kgsl ftrace event capture 启用 kgsl ftrace 事件捕获

    This include the events of 'adreno_cmdbatch_sync', 'adreno_cmdbatch_queued', 'adreno_cmdbatch_submitted', 'adreno_cmdbatch_retired'.

My question is: I have already add these ftrace on my perfetto config:

data_sources: {
    config {
        name: "linux.ftrace"
        ftrace_config {
            ftrace_events: "kgsl/adreno_cmdbatch_sync"
            ftrace_events: "kgsl/adreno_cmdbatch_queued"
            ftrace_events: "kgsl/adreno_cmdbatch_submitted"
            ftrace_events: "kgsl/adreno_cmdbatch_retired"

How can I get these kgsl information on ui.perfetto.dev

Thanks a lot~
如何在 ui.perfetto.dev 上获取这些 kgsl 信息

Lalit Maganti

unread,
Nov 25, 2024, 6:50:38 AM11/25/24
to Perfetto Development - www.perfetto.dev
1) These events are only available on some devices, it's possible your device does not support them
2) If the event was available on your device, it will show up in the "Ftrace Events" section of the UI. You might need to add the ftrace events panel by clicking on the three dots on the left side bottom panel and then choosing "Ftrace Events". You should then be able to filter to just those events.

Lalit Maganti

unread,
Nov 25, 2024, 8:19:44 AM11/25/24
to simowce go, Perfetto Development - www.perfetto.dev

On Mon, 25 Nov 2024 at 13:15, simowce go <sim...@gmail.com> wrote:
Thanks for your answer, I have get the information from the Ftrace Event panel.

I got a another idea, is that possible to parse these kgsl ftrace and add some slices to represent the kgsl gpu status? If it's possible, how can I do? Is there any BEST practice or HOW-TO ?

Thanks again!

在2024年11月25日星期一 UTC+8 19:50:38<Lalit Maganti> 写道:
1) These events are only available on some devices, it's possible your device does not support them
2) If the event was available on your device, it will show up in the "Ftrace Events" section of the UI. You might need to add the ftrace events panel by clicking on the three dots on the left side bottom panel and then choosing "Ftrace Events". You should then be able to filter to just those events.
On Monday, November 25, 2024 at 9:57:15 AM UTC simowce go wrote:
Hi all:

I have noticed that perfetto has already add kgsl ftrace support on this commit:

commit 1371648c47324a835c9dc19ed63c13c739b01fd4 提交 1371648c47324a835c9dc19ed63c13c739b01fd4
Date:   Tue Jul 30 14:59:22 2024 -0400

    Enable kgsl ftrace event capture

    This include the events of 'adreno_cmdbatch_sync', 'adreno_cmdbatch_queued', 'adreno_cmdbatch_submitted', 'adreno_cmdbatch_retired'.
Reply all
Reply to author
Forward
0 new messages