• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.renderstages.panfrost"
64  }
65}
66
67data_sources {
68  config {
69    name: "gpu.counters.panfrost"
70    gpu_counter_config {
71      counter_period_ns: 100000
72    }
73  }
74}
75
76data_sources {
77  config {
78    name: "gpu.counters.v3d"
79    gpu_counter_config {
80      counter_period_ns: 100000
81    }
82  }
83}
84
85data_sources {
86  config {
87    name: "track_event"
88    track_event_config {
89      #enabled_tags: "slow"
90    }
91  }
92}
93
94data_sources {
95  config {
96    name: "linux.ftrace"
97    target_buffer: 0
98    ftrace_config {
99      buffer_size_kb: 16384
100      drain_period_ms: 500
101
102      ftrace_events: "scm/scm_call_start"
103      ftrace_events: "scm/scm_call_end"
104      ftrace_events: "drm/drm_vblank_event"
105      ftrace_events: "dma_fence/dma_fence_destroy"
106      ftrace_events: "dma_fence/dma_fence_enable_signal"
107      ftrace_events: "dma_fence/dma_fence_signaled"
108      ftrace_events: "dma_fence/dma_fence_wait_start"
109      ftrace_events: "dma_fence/dma_fence_emit"
110      ftrace_events: "dma_fence/dma_fence_init"
111      ftrace_events: "dma_fence/dma_fence_wait_end"
112      ftrace_events: "gpu_mem/gpu_mem_total"
113      ftrace_events: "clock_disable"
114      ftrace_events: "clock_enable"
115      ftrace_events: "clock_set_rate"
116      ftrace_events: "power/cpu_frequency_limits"
117      ftrace_events: "power/cpu_frequency"
118      ftrace_events: "power/cpu_idle"
119      ftrace_events: "raw_syscalls/sys_enter"
120      ftrace_events: "raw_syscalls/sys_exit"
121      ftrace_events: "cpufreq_interactive_already"
122      ftrace_events: "cpufreq_interactive_boost"
123      ftrace_events: "cpufreq_interactive_notyet"
124      ftrace_events: "cpufreq_interactive_setspeed"
125      ftrace_events: "cpufreq_interactive_target"
126      ftrace_events: "cpufreq_interactive_unboost"
127      ftrace_events: "sched_blocked_reason"
128      ftrace_events: "sched_cpu_hotplug"
129      ftrace_events: "sched_process_exec"
130      ftrace_events: "sched_process_exit"
131      ftrace_events: "sched_process_fork"
132      ftrace_events: "sched_process_free"
133      ftrace_events: "sched_process_hang"
134      ftrace_events: "sched_process_wait"
135      ftrace_events: "sched_switch"
136      ftrace_events: "sched_wakeup_new"
137      ftrace_events: "sched_wakeup"
138      ftrace_events: "sched_waking"
139      ftrace_events: "smbus_read"
140      ftrace_events: "smbus_reply"
141      ftrace_events: "smbus_result"
142      ftrace_events: "smbus_write"
143      ftrace_events: "softirq_entry"
144      ftrace_events: "softirq_exit"
145      ftrace_events: "softirq_raise"
146      ftrace_events: "suspend_resume"
147      ftrace_events: "workqueue_activate_work"
148      ftrace_events: "workqueue_execute_end"
149      ftrace_events: "workqueue_execute_start"
150      ftrace_events: "workqueue_queue_work"
151      ftrace_events: "signal_generate"
152      ftrace_events: "signal_deliver"
153    }
154  }
155}
156
157data_sources {
158  config {
159    name: "linux.process_stats"
160    target_buffer: 0
161  }
162}
163
164data_sources {
165  config {
166    name: "track_event"
167    track_event_config {
168      enabled_categories: "mesa.default"
169      enabled_categories: "mesa.slow"
170    }
171  }
172}
173
174data_sources {
175  config {
176    name: "perfetto.metatrace"
177    target_buffer: 0
178  }
179}
180
181producers {
182  producer_name: "perfetto.traced_probes"
183  shm_size_kb: 4096
184  page_size_kb: 4
185}
186