• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Contains tests for parsing events which are applicable to more than one vertical
2# "area". Generally, events here are of high importance (e.g. sched_switch is tested
3# here is and is used by every embedder of trace processor)
4#
5# Note: It's generally *not* advisable to add tests here. Check the guidance provided by
6# http://perfetto/dev/docs/analysis/trace-processor#diff-tests for choosing which folder
7# to add a new test to.
8
9# TODO(lalitm): some tests here should be moved out of here and into the area folders;
10# they are only here because they predate the modularisation of diff tests.
11
12# Sched
13../../data/android_sched_and_ps.pb ts_desc_filter.sql ts_desc_filter_android_sched_and_ps.out
14
15# Sched reason
16../../data/android_sched_and_ps.pb end_reason_eq.sql android_sched_and_ps_end_reason_eq.out
17../../data/android_sched_and_ps.pb end_reason_neq.sql android_sched_and_ps_end_reason_neq.out
18
19# Sched wakeup
20../../data/android_sched_and_ps.pb sched_wakeup.sql sched_wakeup_android_sched_and_ps.out
21
22# CPU Frequency
23../../data/cpu_counters.pb b120487929.sql cpu_counters_b120487929.out
24
25# Test the filtering of ftrace events before tracing_start.
26ftrace_with_tracing_start.py list_sched_slice_spans.sql ftrace_with_tracing_start_list_sched_slice_spans.out
27
28# Rss stats
29rss_stat_mm_id.py rss_stat.sql rss_stat_mm_id.out
30rss_stat_mm_id_clone.py rss_stat.sql rss_stat_mm_id_clone.out
31rss_stat_mm_id_reuse.py rss_stat.sql rss_stat_mm_id_reuse.out
32rss_stat_legacy.py rss_stat.sql rss_stat_legacy.out
33rss_stat_after_free.py rss_stat_after_free.sql rss_stat_after_free.out
34
35# Memory counters
36../../data/memory_counters.pb args_string_filter_null.sql memory_counters_args_string_filter_null.out
37../../data/memory_counters.pb args_string_is_null.sql memory_counters_args_string_is_null.out
38../../data/memory_counters.pb args_string_is_not_null.sql memory_counters_args_string_is_not_null.out
39../../data/memory_counters.pb b120605557.sql memory_counters_b120605557.out
40../../data/memory_counters.pb global_memory_counter.sql global_memory_counter_memory_counters.out
41ion_stat.textproto ion_stat.sql ion_stat.out
42
43# Scheduling slices from sched_switch events. There are two tests, one for the
44# typical encoding of sched_switch events, and one for the same trace
45# re-encoded in the compact format. The output should be identical apart from
46# the latter having one slice fewer for each cpu (the first compact
47# sched_switch event doesn't start a slice). Six slices in this case.
48../../data/sched_switch_original.pb sched_slices.sql sched_slices_sched_switch_original.out
49../../data/sched_switch_compact.pb sched_slices.sql sched_slices_sched_switch_compact.out
50
51# Decoding of sched_waking events from a trace with compact scheduling events.
52# Verifies the contents of raw & instants tables.
53../../data/compact_sched.pb sched_waking_raw.sql sched_waking_raw_compact_sched.out
54../../data/compact_sched.pb sched_waking_instants.sql sched_waking_instants_compact_sched.out
55
56# Mm Event
57../../data/mm_event.pb mm_event.sql mm_event.out
58
59# Check the systrace conversion code in the raw table.
60# Print events
61../../data/lmk_userspace.pb print_systrace.sql print_systrace_lmk_userspace.out
62kernel_tmw_counter.textproto thread_counter_and_track.sql kernel_tmw_counter_thread_counter_and_track.out
63kernel_dpu_tmw_counter.textproto thread_counter_and_track.sql kernel_dpu_tmw_counter_thread_counter_and_track.out
64# Unsigned integers
65print_systrace_unsigned.py print_systrace.sql print_systrace_unsigned.out
66
67# cgroup_attach_task systrace conversion.
68cgroup_attach_task_pre_s.textproto print_systrace.sql cgroup_attach_task_pre_s_print_systrace.out
69cgroup_attach_task_post_s.textproto print_systrace.sql cgroup_attach_task_post_s_print_systrace.out
70
71# Parsing systrace files
72../../data/systrace.html systrace_html.sql systrace_html.out
73../../data/trailing_empty.systrace sched_smoke.sql sched_smoke_trailing_empty.out
74
75# LMK handling
76kernel_lmk.py lmk.sql lmk_kernel_lmk.out
77../../data/lmk_userspace.pb lmk.sql lmk_userspace_lmk.out
78../common/oom_kill.textproto oom_kill.sql oom_kill.out
79
80# Logcat
81../../data/android_log.pb android_log_counts.sql android_log_counts.out
82../../data/android_log.pb android_log_msgs.sql android_log_msgs.out
83../../data/android_log_ring_buffer_mode.pb android_log_ring_buffer_mode.sql android_log_ring_buffer_mode.out
84
85# Oom Score
86synth_oom.py oom_query.sql synth_oom_oom_query.out
87../../data/process_stats_poll.pb oom_score_poll.sql process_stats_poll_oom_score.out
88
89# Stats
90../../data/android_sched_and_ps.pb stats.sql android_sched_and_ps_stats.out
91
92# Syscalls
93syscall.py sys.sql sys_syscall.out
94
95# Thread time_in_state
96thread_time_in_state.textproto thread_time_in_state.sql thread_time_in_state.out
97thread_time_in_state_event.py thread_time_in_state_event.sql thread_time_in_state_event.out
98thread_time_in_state.textproto android_thread_time_in_state android_thread_time_in_state.out
99thread_time_in_state_unknown.textproto android_thread_time_in_state android_thread_time_in_state_unknown.out
100
101# thread_slice tables.
102flow_events_json_v2.json thread_time_in_thread_slice.sql thread_time_in_thread_slice.out
103
104# Initial display state
105initial_display_state.textproto initial_display_state.sql initial_display_state.out
106
107# Config & metadata
108config_metadata.textproto metadata.sql config_metadata.out
109trigger_packet_trace.textproto triggers_packets.sql triggers_packets_trigger_packet_trace.out
110chrome_metadata.textproto chrome_metadata.sql chrome_metadata.out
111
112# CPU info
113cpu_info.textproto cpu.sql cpu.out
114cpu_info.textproto cpu_freq.sql cpu_freq.out
115
116# Trace size
117../../data/android_sched_and_ps.pb trace_size.sql android_sched_and_ps_trace_size.out
118
119# Package list handling
120android_package_list.py android_package_list android_package_list.out
121
122# Ensures process -> package matching works as expected.
123process_metadata_matching.textproto process_metadata_matching.sql process_metadata_matching.out
124
125# Flow events importing from json
126flow_events_json_v1.json flow_events.sql flow_events_json_v1.out
127flow_events_json_v2.json flow_events.sql flow_events_json_v2.out
128
129# Importing displayTimeUnit
130../../data/display_time_unit.json slices.sql display_time_unit_slices.out
131
132# Parsing sched_blocked_reason
133sched_blocked_proto.py sched_blocked_reason.sql sched_blocked_proto_sched_blocked_reason.out
134sched_blocked_systrace.systrace sched_blocked_reason.sql sched_blocked_systrace_sched_blocked_reason.out
135
136# Kernel symbolization
137sched_blocked_reason_symbolized.textproto sched_blocked_reason_function.sql sched_blocked_reason_symbolized_sched_blocked_reason_function.out
138sched_blocked_reason_symbolized.textproto ../common/to_systrace.sql sched_blocked_reason_symbolized_to_systrace.out
139
140# Floating point numbers
141../../data/decimal_timestamp.json slices.sql decimal_timestamp_slices.out
142
143# JSON instants and counters
144../../data/counters.json json_counters.sql counters_json_counters.out
145../../data/instants.json json_instants.sql instants_json_instants.out
146
147# Trace quality metric
148very_long_sched.py android_trace_quality very_long_sched_android_trace_quality.out
149
150# Regression test for b/193721088 (infra prepending " done\n" to atrace)
151../../data/atrace_b_193721088.atr sched_smoke.sql sched_smoke_trailing_empty.out
152
153# Multiuser
154android_multiuser_switch.textproto android_multiuser android_multiuser_switch.out
155
156# Output of atrace -z.
157../../data/atrace_compressed.ctrace sched_smoke.sql atrace_compressed_sched_count.out
158
159# Output of adb shell "atrace -t 1 sched" > out.txt". It has extra garbage
160# coming from stderr before the TRACE: marker. See b/208691037.
161../../data/atrace_uncompressed_b_208691037 sched_smoke.sql atrace_uncompressed_sched_count.out
162otheruuids.textproto android_other_traces otheruuids_android_other_traces.out
163