• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# TraceStreamer 解析数据状态表
2TraceStreamer使用stat表统计解析trace数据源过程遇到的重要事件状态。通过stat表可以对trace数据源中各个类型事件的数据有一个基本了解。
3## stat表支持统计的事件列表如下:
4|event_name                     |
5| ----                          |
6|binder_transaction             |
7|binder_transaction_alloc_buf   |
8|binder_transaction_lock        |
9|binder_transaction_locked      |
10|binder_transaction_received    |
11|binder_transaction_unlock      |
12|clk_disable                    |
13|clk_enable                     |
14|clk_set_rate                   |
15|clock_disable                  |
16|clock_enable                   |
17|clock_set_rate                 |
18|cpu_frequency                  |
19|cpu_idle                       |
20|hidump_fps                     |
21|hilog                          |
22|ipi_entry                      |
23|ipi_exit                       |
24|irq_handler_entry              |
25|irq_handler_exit               |
26|memory                         |
27|native_hook_free               |
28|native_hook_malloc             |
29|oom_score_adj_update           |
30|other                          |
31|print                          |
32|regulator_disable              |
33|regulator_disable_complete     |
34|regulator_set_voltage          |
35|regulator_set_voltage_complete |
36|sched_process_exit             |
37|sched_process_free             |
38|sched_switch                   |
39|sched_wakeup                   |
40|sched_wakeup_new               |
41|sched_waking                   |
42|signal_deliver                 |
43|signal_generate                |
44|softirq_entry                  |
45|softirq_exit                   |
46|softirq_raise                  |
47|suspend_resume                 |
48|sys_enter                      |
49|sys_exit                       |
50|sys_memory                     |
51|sys_virtual_memory             |
52|task_newtask                   |
53|task_rename                    |
54|trace_bblock_bio_queue         |
55|trace_block_bio_backmerge      |
56|trace_block_bio_bounce         |
57|trace_block_bio_complete       |
58|trace_block_bio_frontmerge     |
59|trace_block_bio_remap          |
60|trace_block_dirty_buffer       |
61|trace_block_getrq              |
62|trace_block_plug               |
63|trace_block_rq_complete        |
64|trace_block_rq_insert          |
65|trace_block_rq_issue           |
66|trace_block_rq_remap           |
67|trace_event_clock_sync         |
68|tracing_mark_write             |
69|workqueue_execute_end          |
70|workqueue_execute_start        |
71
72## 事件对应解析状态:
73每种事件解析数据都有5种状态,描述如下表:
74|stat_type|description|
75|----     |----       |
76|received  | 统计trace数据源中总共有多少该事件。|
77|data_lost | 统计TraceStreamer解析过程中发现丢失数据条数。 |
78|not_match | 统计有多少数据与上下文其他数据不匹配。 |
79|not_supported | 统计有多少暂不支持解析该事件(一个事件可能包含多种类型的子事件, TraceStreamer可能支持该事件的一部分子事件)。|
80|invalid_data | 统计收到多少条该事件的非法数据。|
81
82## 数据状态级别
83数据状态级别总共有4种,分别是:info, warn, error,fatal。由于数据的重要性不同,不同事件的同一种状态可能对应不同的级别。
84例如binder_transaction_received的 not_supported状态的数据为info级别,而binder_transaction_alloc_buf的not_supported状态数据为warn级别。
85
86## 事件,状态与级别对应关系
87|	event_name	|	stat_type	|	serverity	|
88|----           |----           |----           |
89|	binder_transaction	|	received	|	info	|
90|	binder_transaction	|	data_lost	|	error	|
91|	binder_transaction	|	not_match	|	info	|
92|	binder_transaction	|	not_supported	|	info	|
93|	binder_transaction	|	invalid_data	|	error	|
94|	binder_transaction_received	|	received	|	info	|
95|	binder_transaction_received	|	data_lost	|	error	|
96|	binder_transaction_received	|	not_match	|	info	|
97|	binder_transaction_received	|	not_supported	|	info	|
98|	binder_transaction_received	|	invalid_data	|	error	|
99|	binder_transaction_alloc_buf	|	received	|	info	|
100|	binder_transaction_alloc_buf	|	data_lost	|	error	|
101|	binder_transaction_alloc_buf	|	not_match	|	info	|
102|	binder_transaction_alloc_buf	|	not_supported	|	warn	|
103|	binder_transaction_alloc_buf	|	invalid_data	|	error	|
104|	binder_transaction_lock	|	received	|	info	|
105|	binder_transaction_lock	|	data_lost	|	error	|
106|	binder_transaction_lock	|	not_match	|	info	|
107|	binder_transaction_lock	|	not_supported	|	warn	|
108|	binder_transaction_lock	|	invalid_data	|	error	|
109|	binder_transaction_locked	|	received	|	info	|
110|	binder_transaction_locked	|	data_lost	|	error	|
111|	binder_transaction_locked	|	not_match	|	info	|
112|	binder_transaction_locked	|	not_supported	|	warn	|
113|	binder_transaction_locked	|	invalid_data	|	error	|
114|	binder_transaction_unlock	|	received	|	info	|
115|	binder_transaction_unlock	|	data_lost	|	error	|
116|	binder_transaction_unlock	|	not_match	|	info	|
117|	binder_transaction_unlock	|	not_supported	|	warn	|
118|	binder_transaction_unlock	|	invalid_data	|	error	|
119|	sched_switch	|	received	|	info	|
120|	sched_switch	|	data_lost	|	error	|
121|	sched_switch	|	not_match	|	info	|
122|	sched_switch	|	not_supported	|	info	|
123|	sched_switch	|	invalid_data	|	error	|
124|	task_rename	|	received	|	info	|
125|	task_rename	|	data_lost	|	error	|
126|	task_rename	|	not_match	|	info	|
127|	task_rename	|	not_supported	|	info	|
128|	task_rename	|	invalid_data	|	error	|
129|	task_newtask	|	received	|	info	|
130|	task_newtask	|	data_lost	|	error	|
131|	task_newtask	|	not_match	|	info	|
132|	task_newtask	|	not_supported	|	info	|
133|	task_newtask	|	invalid_data	|	error	|
134|	tracing_mark_write	|	received	|	info	|
135|	tracing_mark_write	|	data_lost	|	error	|
136|	tracing_mark_write	|	not_match	|	info	|
137|	tracing_mark_write	|	not_supported	|	info	|
138|	tracing_mark_write	|	invalid_data	|	error	|
139|	print	|	received	|	info	|
140|	print	|	data_lost	|	error	|
141|	print	|	not_match	|	info	|
142|	print	|	not_supported	|	info	|
143|	print	|	invalid_data	|	error	|
144|	sched_wakeup	|	received	|	info	|
145|	sched_wakeup	|	data_lost	|	error	|
146|	sched_wakeup	|	not_match	|	info	|
147|	sched_wakeup	|	not_supported	|	info	|
148|	sched_wakeup	|	invalid_data	|	error	|
149|	sched_waking	|	received	|	info	|
150|	sched_waking	|	data_lost	|	error	|
151|	sched_waking	|	not_match	|	info	|
152|	sched_waking	|	not_supported	|	info	|
153|	sched_waking	|	invalid_data	|	error	|
154|	cpu_idle	|	received	|	info	|
155|	cpu_idle	|	data_lost	|	error	|
156|	cpu_idle	|	not_match	|	info	|
157|	cpu_idle	|	not_supported	|	info	|
158|	cpu_idle	|	invalid_data	|	error	|
159|	cpu_frequency	|	received	|	info	|
160|	cpu_frequency	|	data_lost	|	error	|
161|	cpu_frequency	|	not_match	|	info	|
162|	cpu_frequency	|	not_supported	|	info	|
163|	cpu_frequency	|	invalid_data	|	error	|
164|	suspend_resume	|	received	|	info	|
165|	suspend_resume	|	data_lost	|	error	|
166|	suspend_resume	|	not_match	|	info	|
167|	suspend_resume	|	not_supported	|	info	|
168|	suspend_resume	|	invalid_data	|	error	|
169|	workqueue_execute_start	|	received	|	info	|
170|	workqueue_execute_start	|	data_lost	|	error	|
171|	workqueue_execute_start	|	not_match	|	info	|
172|	workqueue_execute_start	|	not_supported	|	info	|
173|	workqueue_execute_start	|	invalid_data	|	error	|
174|	workqueue_execute_end	|	received	|	info	|
175|	workqueue_execute_end	|	data_lost	|	error	|
176|	workqueue_execute_end	|	not_match	|	info	|
177|	workqueue_execute_end	|	not_supported	|	warn	|
178|	workqueue_execute_end	|	invalid_data	|	error	|
179|	clock_set_rate	|	received	|	info	|
180|	clock_set_rate	|	data_lost	|	error	|
181|	clock_set_rate	|	not_match	|	info	|
182|	clock_set_rate	|	not_supported	|	warn	|
183|	clock_set_rate	|	invalid_data	|	error	|
184|	clock_enable	|	received	|	info	|
185|	clock_enable	|	data_lost	|	error	|
186|	clock_enable	|	not_match	|	info	|
187|	clock_enable	|	not_supported	|	warn	|
188|	clock_enable	|	invalid_data	|	error	|
189|	clock_disable	|	received	|	info	|
190|	clock_disable	|	data_lost	|	error	|
191|	clock_disable	|	not_match	|	info	|
192|	clock_disable	|	not_supported	|	warn	|
193|	clock_disable	|	invalid_data	|	error	|
194|	clk_set_rate	|	received	|	info	|
195|	clk_set_rate	|	data_lost	|	error	|
196|	clk_set_rate	|	not_match	|	info	|
197|	clk_set_rate	|	not_supported	|	warn	|
198|	clk_set_rate	|	invalid_data	|	error	|
199|	clk_enable	|	received	|	info	|
200|	clk_enable	|	data_lost	|	error	|
201|	clk_enable	|	not_match	|	info	|
202|	clk_enable	|	not_supported	|	warn	|
203|	clk_enable	|	invalid_data	|	error	|
204|	clk_disable	|	received	|	info	|
205|	clk_disable	|	data_lost	|	error	|
206|	clk_disable	|	not_match	|	info	|
207|	clk_disable	|	not_supported	|	warn	|
208|	clk_disable	|	invalid_data	|	error	|
209|	sys_enter	|	received	|	info	|
210|	sys_enter	|	data_lost	|	error	|
211|	sys_enter	|	not_match	|	info	|
212|	sys_enter	|	not_supported	|	warn	|
213|	sys_enter	|	invalid_data	|	error	|
214|	sys_exit	|	received	|	info	|
215|	sys_exit	|	data_lost	|	error	|
216|	sys_exit	|	not_match	|	info	|
217|	sys_exit	|	not_supported	|	warn	|
218|	sys_exit	|	invalid_data	|	error	|
219|	regulator_set_voltage	|	received	|	info	|
220|	regulator_set_voltage	|	data_lost	|	error	|
221|	regulator_set_voltage	|	not_match	|	info	|
222|	regulator_set_voltage	|	not_supported	|	warn	|
223|	regulator_set_voltage	|	invalid_data	|	error	|
224|	regulator_set_voltage_complete	|	received	|	info	|
225|	regulator_set_voltage_complete	|	data_lost	|	error	|
226|	regulator_set_voltage_complete	|	not_match	|	info	|
227|	regulator_set_voltage_complete	|	not_supported	|	warn	|
228|	regulator_set_voltage_complete	|	invalid_data	|	error	|
229|	regulator_disable	|	received	|	info	|
230|	regulator_disable	|	data_lost	|	error	|
231|	regulator_disable	|	not_match	|	info	|
232|	regulator_disable	|	not_supported	|	warn	|
233|	regulator_disable	|	invalid_data	|	error	|
234|	regulator_disable_complete	|	received	|	info	|
235|	regulator_disable_complete	|	data_lost	|	error	|
236|	regulator_disable_complete	|	not_match	|	info	|
237|	regulator_disable_complete	|	not_supported	|	warn	|
238|	regulator_disable_complete	|	invalid_data	|	error	|
239|	ipi_entry	|	received	|	info	|
240|	ipi_entry	|	data_lost	|	error	|
241|	ipi_entry	|	not_match	|	info	|
242|	ipi_entry	|	not_supported	|	warn	|
243|	ipi_entry	|	invalid_data	|	error	|
244|	ipi_exit	|	received	|	info	|
245|	ipi_exit	|	data_lost	|	error	|
246|	ipi_exit	|	not_match	|	info	|
247|	ipi_exit	|	not_supported	|	warn	|
248|	ipi_exit	|	invalid_data	|	error	|
249|	irq_handler_entry	|	received	|	info	|
250|	irq_handler_entry	|	data_lost	|	error	|
251|	irq_handler_entry	|	not_match	|	info	|
252|	irq_handler_entry	|	not_supported	|	warn	|
253|	irq_handler_entry	|	invalid_data	|	error	|
254|	irq_handler_exit	|	received	|	info	|
255|	irq_handler_exit	|	data_lost	|	error	|
256|	irq_handler_exit	|	not_match	|	info	|
257|	irq_handler_exit	|	not_supported	|	warn	|
258|	irq_handler_exit	|	invalid_data	|	error	|
259|	softirq_raise	|	received	|	info	|
260|	softirq_raise	|	data_lost	|	error	|
261|	softirq_raise	|	not_match	|	info	|
262|	softirq_raise	|	not_supported	|	warn	|
263|	softirq_raise	|	invalid_data	|	error	|
264|	softirq_entry	|	received	|	info	|
265|	softirq_entry	|	data_lost	|	error	|
266|	softirq_entry	|	not_match	|	info	|
267|	softirq_entry	|	not_supported	|	warn	|
268|	softirq_entry	|	invalid_data	|	error	|
269|	softirq_exit	|	received	|	info	|
270|	softirq_exit	|	data_lost	|	error	|
271|	softirq_exit	|	not_match	|	info	|
272|	softirq_exit	|	not_supported	|	warn	|
273|	softirq_exit	|	invalid_data	|	error	|
274|	oom_score_adj_update	|	received	|	info	|
275|	oom_score_adj_update	|	data_lost	|	error	|
276|	oom_score_adj_update	|	not_match	|	info	|
277|	oom_score_adj_update	|	not_supported	|	warn	|
278|	oom_score_adj_update	|	invalid_data	|	error	|
279|	sched_wakeup_new	|	received	|	info	|
280|	sched_wakeup_new	|	data_lost	|	error	|
281|	sched_wakeup_new	|	not_match	|	info	|
282|	sched_wakeup_new	|	not_supported	|	warn	|
283|	sched_wakeup_new	|	invalid_data	|	error	|
284|	sched_process_exit	|	received	|	info	|
285|	sched_process_exit	|	data_lost	|	error	|
286|	sched_process_exit	|	not_match	|	info	|
287|	sched_process_exit	|	not_supported	|	warn	|
288|	sched_process_exit	|	invalid_data	|	error	|
289|	sched_process_free	|	received	|	info	|
290|	sched_process_free	|	data_lost	|	error	|
291|	sched_process_free	|	not_match	|	info	|
292|	sched_process_free	|	not_supported	|	warn	|
293|	sched_process_free	|	invalid_data	|	error	|
294|	trace_event_clock_sync	|	received	|	info	|
295|	trace_event_clock_sync	|	data_lost	|	error	|
296|	trace_event_clock_sync	|	not_match	|	info	|
297|	trace_event_clock_sync	|	not_supported	|	warn	|
298|	trace_event_clock_sync	|	invalid_data	|	error	|
299|	memory	|	received	|	info	|
300|	memory	|	data_lost	|	error	|
301|	memory	|	not_match	|	info	|
302|	memory	|	not_supported	|	warn	|
303|	memory	|	invalid_data	|	error	|
304|	hilog	|	received	|	info	|
305|	hilog	|	data_lost	|	error	|
306|	hilog	|	not_match	|	info	|
307|	hilog	|	not_supported	|	warn	|
308|	hilog	|	invalid_data	|	error	|
309|	hidump_fps	|	received	|	info	|
310|	hidump_fps	|	data_lost	|	error	|
311|	hidump_fps	|	not_match	|	info	|
312|	hidump_fps	|	not_supported	|	warn	|
313|	hidump_fps	|	invalid_data	|	error	|
314|	native_hook_malloc	|	received	|	info	|
315|	native_hook_malloc	|	data_lost	|	error	|
316|	native_hook_malloc	|	not_match	|	info	|
317|	native_hook_malloc	|	not_supported	|	warn	|
318|	native_hook_malloc	|	invalid_data	|	error	|
319|	native_hook_free	|	received	|	info	|
320|	native_hook_free	|	data_lost	|	error	|
321|	native_hook_free	|	not_match	|	info	|
322|	native_hook_free	|	not_supported	|	warn	|
323|	native_hook_free	|	invalid_data	|	error	|
324|	sys_memory	|	received	|	info	|
325|	sys_memory	|	data_lost	|	error	|
326|	sys_memory	|	not_match	|	info	|
327|	sys_memory	|	not_supported	|	warn	|
328|	sys_memory	|	invalid_data	|	error	|
329|	sys_virtual_memory	|	received	|	info	|
330|	sys_virtual_memory	|	data_lost	|	error	|
331|	sys_virtual_memory	|	not_match	|	info	|
332|	sys_virtual_memory	|	not_supported	|	warn	|
333|	sys_virtual_memory	|	invalid_data	|	error	|
334|	signal_generate	|	received	|	info	|
335|	signal_generate	|	data_lost	|	error	|
336|	signal_generate	|	not_match	|	info	|
337|	signal_generate	|	not_supported	|	warn	|
338|	signal_generate	|	invalid_data	|	error	|
339|	signal_deliver	|	received	|	info	|
340|	signal_deliver	|	data_lost	|	error	|
341|	signal_deliver	|	not_match	|	info	|
342|	signal_deliver	|	not_supported	|	warn	|
343|	signal_deliver	|	invalid_data	|	error	|
344|	trace_block_bio_backmerge	|	received	|	info	|
345|	trace_block_bio_backmerge	|	data_lost	|	error	|
346|	trace_block_bio_backmerge	|	not_match	|	info	|
347|	trace_block_bio_backmerge	|	not_supported	|	warn	|
348|	trace_block_bio_backmerge	|	invalid_data	|	error	|
349|	trace_block_bio_bounce	|	received	|	info	|
350|	trace_block_bio_bounce	|	data_lost	|	error	|
351|	trace_block_bio_bounce	|	not_match	|	info	|
352|	trace_block_bio_bounce	|	not_supported	|	warn	|
353|	trace_block_bio_bounce	|	invalid_data	|	error	|
354|	trace_block_bio_complete	|	received	|	info	|
355|	trace_block_bio_complete	|	data_lost	|	error	|
356|	trace_block_bio_complete	|	not_match	|	info	|
357|	trace_block_bio_complete	|	not_supported	|	warn	|
358|	trace_block_bio_complete	|	invalid_data	|	error	|
359|	trace_block_bio_frontmerge	|	received	|	info	|
360|	trace_block_bio_frontmerge	|	data_lost	|	error	|
361|	trace_block_bio_frontmerge	|	not_match	|	info	|
362|	trace_block_bio_frontmerge	|	not_supported	|	warn	|
363|	trace_block_bio_frontmerge	|	invalid_data	|	error	|
364|	trace_bblock_bio_queue	|	received	|	info	|
365|	trace_bblock_bio_queue	|	data_lost	|	error	|
366|	trace_bblock_bio_queue	|	not_match	|	info	|
367|	trace_bblock_bio_queue	|	not_supported	|	warn	|
368|	trace_bblock_bio_queue	|	invalid_data	|	error	|
369|	trace_block_bio_remap	|	received	|	info	|
370|	trace_block_bio_remap	|	data_lost	|	error	|
371|	trace_block_bio_remap	|	not_match	|	info	|
372|	trace_block_bio_remap	|	not_supported	|	warn	|
373|	trace_block_bio_remap	|	invalid_data	|	error	|
374|	trace_block_dirty_buffer	|	received	|	info	|
375|	trace_block_dirty_buffer	|	data_lost	|	error	|
376|	trace_block_dirty_buffer	|	not_match	|	info	|
377|	trace_block_dirty_buffer	|	not_supported	|	warn	|
378|	trace_block_dirty_buffer	|	invalid_data	|	error	|
379|	trace_block_getrq	|	received	|	info	|
380|	trace_block_getrq	|	data_lost	|	error	|
381|	trace_block_getrq	|	not_match	|	info	|
382|	trace_block_getrq	|	not_supported	|	warn	|
383|	trace_block_getrq	|	invalid_data	|	error	|
384|	trace_block_plug	|	received	|	info	|
385|	trace_block_plug	|	data_lost	|	error	|
386|	trace_block_plug	|	not_match	|	info	|
387|	trace_block_plug	|	not_supported	|	warn	|
388|	trace_block_plug	|	invalid_data	|	error	|
389|	trace_block_rq_complete	|	received	|	info	|
390|	trace_block_rq_complete	|	data_lost	|	error	|
391|	trace_block_rq_complete	|	not_match	|	info	|
392|	trace_block_rq_complete	|	not_supported	|	warn	|
393|	trace_block_rq_complete	|	invalid_data	|	error	|
394|	trace_block_rq_insert	|	received	|	info	|
395|	trace_block_rq_insert	|	data_lost	|	error	|
396|	trace_block_rq_insert	|	not_match	|	info	|
397|	trace_block_rq_insert	|	not_supported	|	warn	|
398|	trace_block_rq_insert	|	invalid_data	|	error	|
399|	trace_block_rq_remap	|	received	|	info	|
400|	trace_block_rq_remap	|	data_lost	|	error	|
401|	trace_block_rq_remap	|	not_match	|	info	|
402|	trace_block_rq_remap	|	not_supported	|	warn	|
403|	trace_block_rq_remap	|	invalid_data	|	error	|
404|	trace_block_rq_issue	|	received	|	info	|
405|	trace_block_rq_issue	|	data_lost	|	error	|
406|	trace_block_rq_issue	|	not_match	|	info	|
407|	trace_block_rq_issue	|	not_supported	|	warn	|
408|	trace_block_rq_issue	|	invalid_data	|	error	|
409|	other	|	received	|	info	|
410|	other	|	data_lost	|	error	|
411|	other	|	not_match	|	info	|
412|	other	|	not_supported	|	warn	|
413|	other	|	invalid_data	|	error	|
414