xref: /aosp_15_r20/external/mesa3d/src/tool/pps/cfg/system.cfg (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Enable periodic flushing of the trace buffer into the output file.
2write_into_file: true
3
4# Writes the userspace buffer into the file every .5 seconds.
5file_write_period_ms: 500
6
7# Commits the trace from the shared memory buffer to the central buffer
8# periodically. Otherwise, the --full-sort option will be required for
9# trace_processor_shell and traceconv when importing the trace.
10flush_period_ms: 2000
11
12duration_ms: 7000
13
14buffers {
15  size_kb: 65536
16  fill_policy: DISCARD
17}
18
19data_sources {
20  config {
21    name: "gpu.counters.msm"
22    gpu_counter_config {
23      counter_period_ns: 100000
24    }
25  }
26}
27
28data_sources {
29  config {
30    name: "gpu.renderstages.msm"
31  }
32}
33
34data_sources {
35  config {
36    name: "gpu.memory.msm"
37  }
38}
39
40data_sources {
41  config {
42    name: "gpu.counters.i915"
43    gpu_counter_config {
44      counter_period_ns: 100000
45    }
46  }
47}
48
49data_sources {
50  config {
51    name: "gpu.renderstages.intel"
52  }
53}
54
55data_sources {
56  config {
57    name: "gpu.renderstages.amd"
58  }
59}
60
61data_sources {
62  config {
63    name: "gpu.counters.panfrost"
64    gpu_counter_config {
65      counter_period_ns: 100000
66    }
67  }
68}
69
70data_sources {
71  config {
72    name: "track_event"
73    track_event_config {
74      #enabled_tags: "slow"
75    }
76  }
77}
78
79data_sources {
80  config {
81    name: "linux.ftrace"
82    target_buffer: 0
83    ftrace_config {
84      buffer_size_kb: 16384
85      drain_period_ms: 500
86
87      ftrace_events: "scm/scm_call_start"
88      ftrace_events: "scm/scm_call_end"
89      ftrace_events: "drm/drm_vblank_event"
90      ftrace_events: "dma_fence/dma_fence_destroy"
91      ftrace_events: "dma_fence/dma_fence_enable_signal"
92      ftrace_events: "dma_fence/dma_fence_signaled"
93      ftrace_events: "dma_fence/dma_fence_wait_start"
94      ftrace_events: "dma_fence/dma_fence_emit"
95      ftrace_events: "dma_fence/dma_fence_init"
96      ftrace_events: "dma_fence/dma_fence_wait_end"
97      ftrace_events: "gpu_mem/gpu_mem_total"
98      ftrace_events: "clock_disable"
99      ftrace_events: "clock_enable"
100      ftrace_events: "clock_set_rate"
101      ftrace_events: "power/cpu_frequency_limits"
102      ftrace_events: "power/cpu_frequency"
103      ftrace_events: "power/cpu_idle"
104      ftrace_events: "raw_syscalls/sys_enter"
105      ftrace_events: "raw_syscalls/sys_exit"
106      ftrace_events: "cpufreq_interactive_already"
107      ftrace_events: "cpufreq_interactive_boost"
108      ftrace_events: "cpufreq_interactive_notyet"
109      ftrace_events: "cpufreq_interactive_setspeed"
110      ftrace_events: "cpufreq_interactive_target"
111      ftrace_events: "cpufreq_interactive_unboost"
112      ftrace_events: "sched_blocked_reason"
113      ftrace_events: "sched_cpu_hotplug"
114      ftrace_events: "sched_process_exec"
115      ftrace_events: "sched_process_exit"
116      ftrace_events: "sched_process_fork"
117      ftrace_events: "sched_process_free"
118      ftrace_events: "sched_process_hang"
119      ftrace_events: "sched_process_wait"
120      ftrace_events: "sched_switch"
121      ftrace_events: "sched_wakeup_new"
122      ftrace_events: "sched_wakeup"
123      ftrace_events: "sched_waking"
124      ftrace_events: "smbus_read"
125      ftrace_events: "smbus_reply"
126      ftrace_events: "smbus_result"
127      ftrace_events: "smbus_write"
128      ftrace_events: "softirq_entry"
129      ftrace_events: "softirq_exit"
130      ftrace_events: "softirq_raise"
131      ftrace_events: "suspend_resume"
132      ftrace_events: "workqueue_activate_work"
133      ftrace_events: "workqueue_execute_end"
134      ftrace_events: "workqueue_execute_start"
135      ftrace_events: "workqueue_queue_work"
136      ftrace_events: "signal_generate"
137      ftrace_events: "signal_deliver"
138    }
139  }
140}
141
142data_sources {
143  config {
144    name: "linux.process_stats"
145    target_buffer: 0
146  }
147}
148
149data_sources {
150  config {
151    name: "track_event"
152    track_event_config {
153      enabled_categories: "mesa.default"
154      enabled_categories: "mesa.slow"
155    }
156  }
157}
158
159data_sources {
160  config {
161    name: "perfetto.metatrace"
162    target_buffer: 0
163  }
164}
165
166producers {
167  producer_name: "perfetto.traced_probes"
168  shm_size_kb: 4096
169  page_size_kb: 4
170}
171