xref: /aosp_15_r20/external/bcc/tools/offwaketime_example.txt (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1*387f9dfdSAndroid Build Coastguard WorkerDemonstrations of offwaketime, the Linux eBPF/bcc version.
2*387f9dfdSAndroid Build Coastguard Worker
3*387f9dfdSAndroid Build Coastguard Worker
4*387f9dfdSAndroid Build Coastguard WorkerThis program shows kernel stack traces and task names that were blocked and
5*387f9dfdSAndroid Build Coastguard Worker"off-CPU", along with the stack traces and task names for the threads that woke
6*387f9dfdSAndroid Build Coastguard Workerthem, and the total elapsed time from when they blocked to when they were woken
7*387f9dfdSAndroid Build Coastguard Workerup.  This combines the summaries from both the offwaketime and wakeuptime tools.
8*387f9dfdSAndroid Build Coastguard WorkerThe time measurement will be very similar to off-CPU time, however, off-CPU time
9*387f9dfdSAndroid Build Coastguard Workermay include a little extra time spent waiting on a run queue to be scheduled.
10*387f9dfdSAndroid Build Coastguard WorkerThe combined stacks, task names, and total time is summarized in kernel context
11*387f9dfdSAndroid Build Coastguard Workerfor efficiency, using an eBPF map.
12*387f9dfdSAndroid Build Coastguard Worker
13*387f9dfdSAndroid Build Coastguard WorkerThe output summary will further help you identify reasons why threads
14*387f9dfdSAndroid Build Coastguard Workerwere blocking, and quantify the time from when they were blocked to woken up.
15*387f9dfdSAndroid Build Coastguard WorkerThis spans all types of blocking activity: disk I/O, network I/O, locks, page
16*387f9dfdSAndroid Build Coastguard Workerfaults, swapping, sleeping, involuntary context switches, etc.
17*387f9dfdSAndroid Build Coastguard Worker
18*387f9dfdSAndroid Build Coastguard WorkerHere is some sample output from a 5 second trace, truncated to highlight several
19*387f9dfdSAndroid Build Coastguard Workerstack pairs:
20*387f9dfdSAndroid Build Coastguard Worker
21*387f9dfdSAndroid Build Coastguard Worker# ./offwaketime 5
22*387f9dfdSAndroid Build Coastguard WorkerTracing blocked time (us) by kernel off-CPU and waker stack for 5 secs.
23*387f9dfdSAndroid Build Coastguard Worker
24*387f9dfdSAndroid Build Coastguard Worker[...]
25*387f9dfdSAndroid Build Coastguard Worker
26*387f9dfdSAndroid Build Coastguard Worker    waker:           swapper/0
27*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137897c blk_mq_complete_request
28*387f9dfdSAndroid Build Coastguard Worker    ffffffff81378930 __blk_mq_complete_request
29*387f9dfdSAndroid Build Coastguard Worker    ffffffff81378793 blk_mq_end_request
30*387f9dfdSAndroid Build Coastguard Worker    ffffffff813778b9 blk_mq_free_request
31*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137782d __blk_mq_free_request
32*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137bc57 blk_mq_put_tag
33*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137b2c7 bt_clear_tag
34*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b54d9 __wake_up
35*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5462 __wake_up_common
36*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5b12 autoremove_wake_function
37*387f9dfdSAndroid Build Coastguard Worker    -                -
38*387f9dfdSAndroid Build Coastguard Worker    ffffffff81785085 schedule
39*387f9dfdSAndroid Build Coastguard Worker    ffffffff81787e16 schedule_timeout
40*387f9dfdSAndroid Build Coastguard Worker    ffffffff81784634 __sched_text_start
41*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137b839 bt_get
42*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137bbf7 blk_mq_get_tag
43*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137761b __blk_mq_alloc_request
44*387f9dfdSAndroid Build Coastguard Worker    ffffffff81379442 blk_mq_map_request
45*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137a445 blk_sq_make_request
46*387f9dfdSAndroid Build Coastguard Worker    ffffffff8136ebc3 generic_make_request
47*387f9dfdSAndroid Build Coastguard Worker    ffffffff8136ed07 submit_bio
48*387f9dfdSAndroid Build Coastguard Worker    ffffffff81225adf submit_bh_wbc
49*387f9dfdSAndroid Build Coastguard Worker    ffffffff81225b42 submit_bh
50*387f9dfdSAndroid Build Coastguard Worker    ffffffff812721e0 __ext4_get_inode_loc
51*387f9dfdSAndroid Build Coastguard Worker    ffffffff812751dd ext4_iget
52*387f9dfdSAndroid Build Coastguard Worker    ffffffff81275c90 ext4_iget_normal
53*387f9dfdSAndroid Build Coastguard Worker    ffffffff8127f45b ext4_lookup
54*387f9dfdSAndroid Build Coastguard Worker    ffffffff811f94ed lookup_real
55*387f9dfdSAndroid Build Coastguard Worker    ffffffff811fad43 __lookup_hash
56*387f9dfdSAndroid Build Coastguard Worker    ffffffff811fc3fb walk_component
57*387f9dfdSAndroid Build Coastguard Worker    ffffffff811fd050 link_path_walk
58*387f9dfdSAndroid Build Coastguard Worker    target:          cksum
59*387f9dfdSAndroid Build Coastguard Worker        56529
60*387f9dfdSAndroid Build Coastguard Worker
61*387f9dfdSAndroid Build Coastguard Worker[...]
62*387f9dfdSAndroid Build Coastguard Worker
63*387f9dfdSAndroid Build Coastguard Worker    waker:           swapper/1
64*387f9dfdSAndroid Build Coastguard Worker    ffffffff81475cf0 xen_evtchn_do_upcall
65*387f9dfdSAndroid Build Coastguard Worker    ffffffff81473e83 __xen_evtchn_do_upcall
66*387f9dfdSAndroid Build Coastguard Worker    ffffffff814766f7 evtchn_2l_handle_events
67*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cb0c2 generic_handle_irq
68*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cf1ca handle_percpu_irq
69*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cb9c8 handle_irq_event_percpu
70*387f9dfdSAndroid Build Coastguard Worker    ffffffff8100b9e1 xen_timer_interrupt
71*387f9dfdSAndroid Build Coastguard Worker    ffffffff810dfba8 hrtimer_interrupt
72*387f9dfdSAndroid Build Coastguard Worker    ffffffff810df494 __hrtimer_run_queues
73*387f9dfdSAndroid Build Coastguard Worker    ffffffff810df082 hrtimer_wakeup
74*387f9dfdSAndroid Build Coastguard Worker    -                -
75*387f9dfdSAndroid Build Coastguard Worker    ffffffff81785085 schedule
76*387f9dfdSAndroid Build Coastguard Worker    ffffffff817880bf do_nanosleep
77*387f9dfdSAndroid Build Coastguard Worker    ffffffff810e003d hrtimer_nanosleep
78*387f9dfdSAndroid Build Coastguard Worker    ffffffff810e018c sys_nanosleep
79*387f9dfdSAndroid Build Coastguard Worker    ffffffff81789076 entry_SYSCALL_64_fastpath
80*387f9dfdSAndroid Build Coastguard Worker    target:          vmstat
81*387f9dfdSAndroid Build Coastguard Worker        3000331
82*387f9dfdSAndroid Build Coastguard Worker
83*387f9dfdSAndroid Build Coastguard Worker[...]
84*387f9dfdSAndroid Build Coastguard Worker
85*387f9dfdSAndroid Build Coastguard Worker    waker:           swapper/0
86*387f9dfdSAndroid Build Coastguard Worker    ffffffff81378930 __blk_mq_complete_request
87*387f9dfdSAndroid Build Coastguard Worker    ffffffff8137875a blk_mq_end_request
88*387f9dfdSAndroid Build Coastguard Worker    ffffffff8136f157 blk_update_request
89*387f9dfdSAndroid Build Coastguard Worker    ffffffff8136836f bio_endio
90*387f9dfdSAndroid Build Coastguard Worker    ffffffff812ba709 mpage_end_io
91*387f9dfdSAndroid Build Coastguard Worker    ffffffff81176af9 unlock_page
92*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5781 __wake_up_bit
93*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b54d9 __wake_up
94*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5462 __wake_up_common
95*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5b7e wake_bit_function
96*387f9dfdSAndroid Build Coastguard Worker    -                -
97*387f9dfdSAndroid Build Coastguard Worker    ffffffff81785085 schedule
98*387f9dfdSAndroid Build Coastguard Worker    ffffffff81787e16 schedule_timeout
99*387f9dfdSAndroid Build Coastguard Worker    ffffffff81784634 __sched_text_start
100*387f9dfdSAndroid Build Coastguard Worker    ffffffff8178586b bit_wait_io
101*387f9dfdSAndroid Build Coastguard Worker    ffffffff8178563e __wait_on_bit_lock
102*387f9dfdSAndroid Build Coastguard Worker    ffffffff8117616e __lock_page_killable
103*387f9dfdSAndroid Build Coastguard Worker    ffffffff81177fce generic_file_read_iter
104*387f9dfdSAndroid Build Coastguard Worker    ffffffff811ef9c7 __vfs_read
105*387f9dfdSAndroid Build Coastguard Worker    ffffffff811f0206 vfs_read
106*387f9dfdSAndroid Build Coastguard Worker    ffffffff811f0eb6 sys_read
107*387f9dfdSAndroid Build Coastguard Worker    ffffffff81789076 entry_SYSCALL_64_fastpath
108*387f9dfdSAndroid Build Coastguard Worker    target:          cksum
109*387f9dfdSAndroid Build Coastguard Worker        4334521
110*387f9dfdSAndroid Build Coastguard Worker
111*387f9dfdSAndroid Build Coastguard Worker[...]
112*387f9dfdSAndroid Build Coastguard Worker
113*387f9dfdSAndroid Build Coastguard Worker    waker:           kworker/u16:2
114*387f9dfdSAndroid Build Coastguard Worker    ffffffff8178940f ret_from_fork
115*387f9dfdSAndroid Build Coastguard Worker    ffffffff81092979 kthread
116*387f9dfdSAndroid Build Coastguard Worker    ffffffff8108caeb worker_thread
117*387f9dfdSAndroid Build Coastguard Worker    ffffffff8108c80a process_one_work
118*387f9dfdSAndroid Build Coastguard Worker    ffffffff81496df5 flush_to_ldisc
119*387f9dfdSAndroid Build Coastguard Worker    ffffffff81494424 n_tty_receive_buf2
120*387f9dfdSAndroid Build Coastguard Worker    ffffffff814939fd n_tty_receive_buf_common
121*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b54d9 __wake_up
122*387f9dfdSAndroid Build Coastguard Worker    ffffffff810b5462 __wake_up_common
123*387f9dfdSAndroid Build Coastguard Worker    ffffffff812037b6 pollwake
124*387f9dfdSAndroid Build Coastguard Worker    -                -
125*387f9dfdSAndroid Build Coastguard Worker    ffffffff81785085 schedule
126*387f9dfdSAndroid Build Coastguard Worker    ffffffff81788234 schedule_hrtimeout_range_clock
127*387f9dfdSAndroid Build Coastguard Worker    ffffffff81788253 schedule_hrtimeout_range
128*387f9dfdSAndroid Build Coastguard Worker    ffffffff812035d4 poll_schedule_timeout
129*387f9dfdSAndroid Build Coastguard Worker    ffffffff8120402a do_select
130*387f9dfdSAndroid Build Coastguard Worker    ffffffff812042f0 core_sys_select
131*387f9dfdSAndroid Build Coastguard Worker    ffffffff8120449b sys_select
132*387f9dfdSAndroid Build Coastguard Worker    ffffffff81789076 entry_SYSCALL_64_fastpath
133*387f9dfdSAndroid Build Coastguard Worker    target:          sshd
134*387f9dfdSAndroid Build Coastguard Worker        6530897
135*387f9dfdSAndroid Build Coastguard Worker
136*387f9dfdSAndroid Build Coastguard Worker[...]
137*387f9dfdSAndroid Build Coastguard Worker
138*387f9dfdSAndroid Build Coastguard Worker    waker:           swapper/0
139*387f9dfdSAndroid Build Coastguard Worker    ffffffff81475cf0 xen_evtchn_do_upcall
140*387f9dfdSAndroid Build Coastguard Worker    ffffffff81473e83 __xen_evtchn_do_upcall
141*387f9dfdSAndroid Build Coastguard Worker    ffffffff814766f7 evtchn_2l_handle_events
142*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cb0c2 generic_handle_irq
143*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cf1ca handle_percpu_irq
144*387f9dfdSAndroid Build Coastguard Worker    ffffffff810cb9c8 handle_irq_event_percpu
145*387f9dfdSAndroid Build Coastguard Worker    ffffffff8100b9e1 xen_timer_interrupt
146*387f9dfdSAndroid Build Coastguard Worker    ffffffff810dfba8 hrtimer_interrupt
147*387f9dfdSAndroid Build Coastguard Worker    ffffffff810df494 __hrtimer_run_queues
148*387f9dfdSAndroid Build Coastguard Worker    ffffffff810df082 hrtimer_wakeup
149*387f9dfdSAndroid Build Coastguard Worker    -                -
150*387f9dfdSAndroid Build Coastguard Worker    ffffffff81785085 schedule
151*387f9dfdSAndroid Build Coastguard Worker    ffffffff81787fc3 schedule_hrtimeout_range_clock.part.23
152*387f9dfdSAndroid Build Coastguard Worker    ffffffff81788219 schedule_hrtimeout_range_clock
153*387f9dfdSAndroid Build Coastguard Worker    ffffffff81788253 schedule_hrtimeout_range
154*387f9dfdSAndroid Build Coastguard Worker    ffffffff812035d4 poll_schedule_timeout
155*387f9dfdSAndroid Build Coastguard Worker    ffffffff81204b6d do_sys_poll
156*387f9dfdSAndroid Build Coastguard Worker    ffffffff81204cf2 sys_poll
157*387f9dfdSAndroid Build Coastguard Worker    ffffffff81789076 entry_SYSCALL_64_fastpath
158*387f9dfdSAndroid Build Coastguard Worker    target:          supervise
159*387f9dfdSAndroid Build Coastguard Worker        16332240
160*387f9dfdSAndroid Build Coastguard Worker
161*387f9dfdSAndroid Build Coastguard WorkerDetaching...
162*387f9dfdSAndroid Build Coastguard Worker
163*387f9dfdSAndroid Build Coastguard WorkerThe output includes two paths from the cksum(1) command, one for reading files
164*387f9dfdSAndroid Build Coastguard Workervia vfs_read() and the other doing a link_path_walk(). There is also a vmstat(8)
165*387f9dfdSAndroid Build Coastguard Workerstack showing it sleeping between intervals, and an sshd(8) stack showing it
166*387f9dfdSAndroid Build Coastguard Workerwaiting on a file descriptor for input.
167*387f9dfdSAndroid Build Coastguard Worker
168*387f9dfdSAndroid Build Coastguard WorkerThe stack shown at the bottom is the off-CPU stack belonging to the task name
169*387f9dfdSAndroid Build Coastguard Workershown after "target:". Then there is a separator, "-", and above it the waker
170*387f9dfdSAndroid Build Coastguard Workerstack and the waker task name after "waker:". The wakeup stack is printed
171*387f9dfdSAndroid Build Coastguard Workerin reverse order.
172*387f9dfdSAndroid Build Coastguard Worker
173*387f9dfdSAndroid Build Coastguard WorkerThe number beneath the stacks is the total time spent from the blocking event
174*387f9dfdSAndroid Build Coastguard Workerto the wakeup event. This is summed for all occurrences with the same stack
175*387f9dfdSAndroid Build Coastguard Workerpairs.
176*387f9dfdSAndroid Build Coastguard Worker
177*387f9dfdSAndroid Build Coastguard Worker
178*387f9dfdSAndroid Build Coastguard WorkerThe -u option will print user-mode target threads only, and the -f option will
179*387f9dfdSAndroid Build Coastguard Workershow the stacks in "folded stacks" format. Eg:
180*387f9dfdSAndroid Build Coastguard Worker
181*387f9dfdSAndroid Build Coastguard Worker# ./offwaketime -fu 5
182*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;ext4_truncate;ext4_ext_truncate;ext4_ext_remove_space;ext4_free_blocks;__ext4_handle_dirty_metadata;_cond_resched;preempt_schedule_common;-; 2
183*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;tty_read;n_tty_read;down_read;_cond_resched;preempt_schedule_common;-; 2
184*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;iget_locked;alloc_inode;ext4_alloc_inode;kmem_cache_alloc;_cond_resched;preempt_schedule_common;-; 3
185*387f9dfdSAndroid Build Coastguard Workermkdir;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;anon_vma_prepare;_cond_resched;preempt_schedule_common;-; 3
186*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;link_path_walk;walk_component;__lookup_hash;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;__ext4_get_inode_loc;__breadahead;ll_rw_block;submit_bh_wbc;bio_alloc_bioset;mempool_alloc;_cond_resched;preempt_schedule_common;-; 3
187*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;page_cache_sync_readahead;ondemand_readahead;__do_page_cache_readahead;ext4_readpages;ext4_mpage_readpages;ext4_map_blocks;down_read;_cond_resched;preempt_schedule_common;-; 3
188*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;fd_install;__fd_install;_cond_resched;preempt_schedule_common;-; 3
189*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;elf_map;vm_munmap;down_write;_cond_resched;preempt_schedule_common;-; 3
190*387f9dfdSAndroid Build Coastguard Workersvscan;entry_SYSCALL_64_fastpath;sys_getdents;iterate_dir;ext4_readdir;ext4_htree_fill_tree;htree_dirblock_to_tree;ext4_htree_store_dirent;__kmalloc;_cond_resched;preempt_schedule_common;-; 4
191*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;mutex_lock;_cond_resched;preempt_schedule_common;-; 4
192*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_mprotect;down_write;_cond_resched;preempt_schedule_common;-; 5
193*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;_cond_resched;preempt_schedule_common;-; 5
194*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;set_brk;vm_brk;down_write;_cond_resched;preempt_schedule_common;-; 5
195*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;anon_vma_fork;anon_vma_clone;down_write;_cond_resched;preempt_schedule_common;-; 6
196*387f9dfdSAndroid Build Coastguard Workersvscan;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/0 11
197*387f9dfdSAndroid Build Coastguard Workersupervise;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;flush_old_exec;mmput;exit_mmap;free_pgtables;unlink_anon_vmas;down_write;_cond_resched;preempt_schedule_common;-; 12
198*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;flush_old_exec;mmput;_cond_resched;preempt_schedule_common;-; 13
199*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_write;vfs_write;__vfs_write;sock_write_iter;sock_sendmsg;inet_sendmsg;tcp_sendmsg;lock_sock_nested;_cond_resched;preempt_schedule_common;-; 14
200*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_write;vfs_write;__vfs_write;tty_write;n_tty_write;mutex_lock;_cond_resched;preempt_schedule_common;-; 19
201*387f9dfdSAndroid Build Coastguard Workersshd;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 24
202*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;vm_brk;down_write;_cond_resched;preempt_schedule_common;-; 31
203*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_write;vfs_write;__vfs_write;sock_write_iter;sock_sendmsg;inet_sendmsg;tcp_sendmsg;sk_stream_alloc_skb;__alloc_skb;kmem_cache_alloc_node;_cond_resched;preempt_schedule_common;-; 32
204*387f9dfdSAndroid Build Coastguard Workerrun;page_fault;do_page_fault;__do_page_fault;_cond_resched;preempt_schedule_common;-; 33
205*387f9dfdSAndroid Build Coastguard Workerrun;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;anon_vma_prepare;_cond_resched;preempt_schedule_common;-; 33
206*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;down_write;_cond_resched;preempt_schedule_common;-; 35
207*387f9dfdSAndroid Build Coastguard Workerrun;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;__do_fault;filemap_fault;_cond_resched;preempt_schedule_common;-; 36
208*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;elf_map;vm_mmap;vm_mmap_pgoff;down_write;_cond_resched;preempt_schedule_common;-; 38
209*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;__ext4_get_inode_loc;__getblk_gfp;_cond_resched;preempt_schedule_common;-; 38
210*387f9dfdSAndroid Build Coastguard Workerchmod;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 39
211*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_munmap;vm_munmap;do_munmap;unmap_region;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 41
212*387f9dfdSAndroid Build Coastguard Workerreadproctitle;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;pipe_read;mutex_lock;_cond_resched;preempt_schedule_common;-; 44
213*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;kmem_cache_alloc;_cond_resched;preempt_schedule_common;-; 48
214*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;flush_old_exec;mmput;exit_mmap;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 49
215*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;tty_poll;tty_ldisc_ref_wait;ldsem_down_read;_cond_resched;preempt_schedule_common;-; 50
216*387f9dfdSAndroid Build Coastguard Workersupervise;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;remove_arg_zero;get_user_pages;__get_user_pages;_cond_resched;preempt_schedule_common;-; 50
217*387f9dfdSAndroid Build Coastguard Workerreadproctitle;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 51
218*387f9dfdSAndroid Build Coastguard Workermkdir;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 53
219*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;copy_creds;prepare_creds;kmem_cache_alloc;_cond_resched;preempt_schedule_common;-; 66
220*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;__ext4_read_dirblock;ext4_bread;ext4_getblk;__getblk_gfp;_cond_resched;preempt_schedule_common;-; 76
221*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;kernel_read;vfs_read;__vfs_read;generic_file_read_iter;_cond_resched;preempt_schedule_common;-; 96
222*387f9dfdSAndroid Build Coastguard Workerchmod;entry_SYSCALL_64_fastpath;sys_exit_group;do_group_exit;do_exit;mmput;exit_mmap;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 100
223*387f9dfdSAndroid Build Coastguard Workerrun;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;__do_fault;filemap_fault;__lock_page_or_retry;wait_on_page_bit_killable;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;handle_mm_fault;__do_page_fault;do_page_fault;page_fault;;run 117
224*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;copy_page_range;_cond_resched;preempt_schedule_common;-; 117
225*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;_cond_resched;preempt_schedule_common;-; 121
226*387f9dfdSAndroid Build Coastguard Workerchown;entry_SYSCALL_64_fastpath;sys_mmap;sys_mmap_pgoff;vm_mmap_pgoff;down_write;_cond_resched;preempt_schedule_common;-; 137
227*387f9dfdSAndroid Build Coastguard Workerchown;entry_SYSCALL_64_fastpath;sys_mmap;sys_mmap_pgoff;vm_mmap_pgoff;do_mmap;mmap_region;kmem_cache_alloc;_cond_resched;preempt_schedule_common;-; 138
228*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;count.isra.21.constprop.38;_cond_resched;preempt_schedule_common;-; 145
229*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;mkdir 147
230*387f9dfdSAndroid Build Coastguard Workerchmod;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;clear_user;page_fault;do_page_fault;__do_page_fault;_cond_resched;preempt_schedule_common;-; 159
231*387f9dfdSAndroid Build Coastguard Workerchown;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;setup_arg_pages;shift_arg_pages;vma_adjust;down_write;_cond_resched;preempt_schedule_common;-; 173
232*387f9dfdSAndroid Build Coastguard Workerchown;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 176
233*387f9dfdSAndroid Build Coastguard Workerchmod;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 191
234*387f9dfdSAndroid Build Coastguard Workerchmod;entry_SYSCALL_64_fastpath;sys_fchmodat;chmod_common;notify_change;ext4_setattr;__mark_inode_dirty;ext4_dirty_inode;ext4_mark_inode_dirty;ext4_reserve_inode_write;__ext4_get_inode_loc;__getblk_gfp;_cond_resched;preempt_schedule_common;-; 221
235*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;trailing_symlink;page_follow_link_light;page_getlink.isra.34.constprop.38;read_cache_page;do_read_cache_page;wait_on_page_read;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;swapper/0 230
236*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;__ext4_read_dirblock;ext4_bread;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;rcu_sched 231
237*387f9dfdSAndroid Build Coastguard Workersupervise;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;flush_old_exec;mmput;_cond_resched;preempt_schedule_common;-; 234
238*387f9dfdSAndroid Build Coastguard Workerchown;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 249
239*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;svscan 273
240*387f9dfdSAndroid Build Coastguard Workermkdir;entry_SYSCALL_64_fastpath;sys_exit_group;do_group_exit;do_exit;mmput;exit_mmap;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 382
241*387f9dfdSAndroid Build Coastguard Workersupervise;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;flush_old_exec;mmput;exit_mmap;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 389
242*387f9dfdSAndroid Build Coastguard Workerrun;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;do_wp_page;wp_page_copy.isra.57;anon_vma_prepare;_cond_resched;preempt_schedule_common;-; 390
243*387f9dfdSAndroid Build Coastguard Workersupervise;return_from_execve;sys_execve;do_execveat_common.isra.33;sched_exec;stop_one_cpu;wait_for_completion;_cond_resched;preempt_schedule_common;-; 409
244*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;sched_exec;stop_one_cpu;wait_for_completion;_cond_resched;preempt_schedule_common;-; 419
245*387f9dfdSAndroid Build Coastguard Workermkdir;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 457
246*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;rcuos/0 460
247*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_exit_group;do_group_exit;do_exit;mmput;exit_mmap;unmap_vmas;unmap_single_vma;_cond_resched;preempt_schedule_common;-; 481
248*387f9dfdSAndroid Build Coastguard Workersshd;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 495
249*387f9dfdSAndroid Build Coastguard Workercksum;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;dx_probe;__ext4_read_dirblock;ext4_bread;ext4_getblk;ext4_map_blocks;ext4_ext_map_blocks;ext4_find_extent;__read_extent_tree_block;bh_submit_read;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 495
250*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;dx_probe;__ext4_read_dirblock;ext4_bread;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 514
251*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;alloc_pid;kmem_cache_alloc;_cond_resched;preempt_schedule_common;-; 572
252*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_script;search_binary_handler;load_elf_binary;clear_user;page_fault;do_page_fault;__do_page_fault;handle_mm_fault;__pte_alloc;pte_alloc_one;alloc_pages_current;__alloc_pages_nodemask;_cond_resched;preempt_schedule_common;-; 579
253*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_clone;_do_fork;copy_process;copy_page_range;_cond_resched;preempt_schedule_common;-; 590
254*387f9dfdSAndroid Build Coastguard Workercksum;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 592
255*387f9dfdSAndroid Build Coastguard Workerchmod;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;setup_arg_pages;shift_arg_pages;vma_adjust;down_write;_cond_resched;preempt_schedule_common;-; 697
256*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;__ext4_read_dirblock;ext4_bread;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 706
257*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_write;vfs_write;__vfs_write;tty_write;n_tty_write;mutex_lock;_cond_resched;preempt_schedule_common;-;woken_wake_function;__wake_up_common;__wake_up;n_tty_read;tty_read;__vfs_read;vfs_read;sys_read;entry_SYSCALL_64_fastpath;;sshd 804
258*387f9dfdSAndroid Build Coastguard Workersupervise;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 1101
259*387f9dfdSAndroid Build Coastguard Workerrun;return_from_execve;sys_execve;do_execveat_common.isra.33;search_binary_handler;load_elf_binary;flush_old_exec;mmput;exit_mmap;free_pgtables;unlink_anon_vmas;__put_anon_vma;_cond_resched;preempt_schedule_common;-; 1122
260*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;readproctitle 1319
261*387f9dfdSAndroid Build Coastguard Workerrun;int_ret_from_sys_call;syscall_return_slowpath;exit_to_usermode_loop;schedule;-; 1902
262*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;chown 1925
263*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;cksum 2181
264*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;link_path_walk;walk_component;__lookup_hash;lookup_real;ext4_lookup;ext4_find_entry;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 2599
265*387f9dfdSAndroid Build Coastguard Workercksum;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 2816
266*387f9dfdSAndroid Build Coastguard Workersupervise;ext4_rename2;ext4_rename;ext4_alloc_da_blocks;filemap_flush;__filemap_fdatawrite_range;do_writepages;ext4_writepages;ext4_map_blocks;ext4_ext_map_blocks;ext4_mb_new_blocks;ext4_mb_mark_diskspace_used;__ext4_journal_get_write_access;jbd2_journal_get_write_access;do_get_write_access;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;journal_end_buffer_io_sync;end_bio_bh_io_sync;bio_endio;blk_update_request;blk_mq_end_request;swapper/0 3393
267*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;supervise 5398
268*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;pollwake;__wake_up_common;__wake_up_sync_key;sock_def_readable;tcp_data_queue;tcp_rcv_established;tcp_v4_do_rcv;tcp_v4_rcv;ip_local_deliver_finish;ip_local_deliver;mkdir 6582
269*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;chmod 8310
270*387f9dfdSAndroid Build Coastguard Workerrun;retint_user;prepare_exit_to_usermode;exit_to_usermode_loop;schedule;-; 8444
271*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;readproctitle 9768
272*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;run 9945
273*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;mkdir 11978
274*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;link_path_walk;walk_component;__lookup_hash;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;__ext4_get_inode_loc;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 12120
275*387f9dfdSAndroid Build Coastguard Workercksum;link_path_walk;walk_component;__lookup_hash;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;__ext4_get_inode_loc;submit_bh;submit_bh_wbc;submit_bio;generic_make_request;blk_sq_make_request;blk_mq_map_request;__blk_mq_alloc_request;blk_mq_get_tag;bt_get;__sched_text_start;schedule_timeout;schedule;-;autoremove_wake_function;__wake_up_common;__wake_up;bt_clear_tag;blk_mq_put_tag;__blk_mq_free_request;blk_mq_free_request;blk_mq_end_request;__blk_mq_complete_request;blk_mq_complete_request;swapper/0 23243
276*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_find_entry;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 24767
277*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_wait4;do_wait;schedule;-;child_wait_callback;__wake_up_common;__wake_up_sync_key;__wake_up_parent;do_notify_parent;do_exit;do_group_exit;sys_exit_group;entry_SYSCALL_64_fastpath;;chmod 33289
278*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_wait4;do_wait;schedule;-;child_wait_callback;__wake_up_common;__wake_up_sync_key;__wake_up_parent;do_notify_parent;do_exit;do_group_exit;sys_exit_group;entry_SYSCALL_64_fastpath;;mkdir 34991
279*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;supervise 35746
280*387f9dfdSAndroid Build Coastguard Workerrun;entry_SYSCALL_64_fastpath;sys_wait4;do_wait;schedule;-;child_wait_callback;__wake_up_common;__wake_up_sync_key;__wake_up_parent;do_notify_parent;do_exit;do_group_exit;sys_exit_group;entry_SYSCALL_64_fastpath;;chown 36942
281*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_rename;dput;__dentry_kill;iput;evict;ext4_evict_inode;truncate_inode_pages_final;truncate_inode_pages_range;wait_on_page_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;end_page_writeback;ext4_finish_bio;ext4_end_bio;bio_endio;blk_update_request;blk_mq_end_request;swapper/0 42993
282*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_open;do_sys_open;do_filp_open;path_openat;lookup_real;ext4_lookup;ext4_iget_normal;ext4_iget;__ext4_get_inode_loc;__wait_on_buffer;out_of_line_wait_on_bit;__wait_on_bit;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;wake_up_bit;unlock_buffer;__end_buffer_read_notouch;end_buffer_read_sync;end_bio_bh_io_sync;bio_endio;swapper/0 53348
283*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;pollwake;__wake_up_common;__wake_up;n_tty_receive_buf_common;n_tty_receive_buf2;flush_to_ldisc;process_one_work;worker_thread;kthread;ret_from_fork;kworker/u16:2 86256
284*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;run 109480
285*387f9dfdSAndroid Build Coastguard Workerntpd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;signal_wake_up_state;complete_signal;__send_signal;send_signal;do_send_sig_info;group_send_sig_info;kill_pid_info;it_real_fn;__hrtimer_run_queues;hrtimer_interrupt;cksum 999975
286*387f9dfdSAndroid Build Coastguard Workerntpd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;signal_wake_up_state;complete_signal;__send_signal;send_signal;do_send_sig_info;group_send_sig_info;kill_pid_info;it_real_fn;__hrtimer_run_queues;hrtimer_interrupt;swapper/0 999976
287*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_poll;do_sys_poll;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;chmod 1021082
288*387f9dfdSAndroid Build Coastguard Workersnmpd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/0 1726275
289*387f9dfdSAndroid Build Coastguard Workerntpd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;signal_wake_up_state;complete_signal;__send_signal;send_signal;do_send_sig_info;group_send_sig_info;kill_pid_info;it_real_fn;__hrtimer_run_queues;hrtimer_interrupt;swapper/1 1999944
290*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_poll;do_sys_poll;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;cksum 2041945
291*387f9dfdSAndroid Build Coastguard Workercksum;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;generic_file_read_iter;__lock_page_killable;__wait_on_bit_lock;bit_wait_io;__sched_text_start;schedule_timeout;schedule;-;wake_bit_function;__wake_up_common;__wake_up;__wake_up_bit;unlock_page;mpage_end_io;bio_endio;blk_update_request;blk_mq_end_request;__blk_mq_complete_request;swapper/0 3720413
292*387f9dfdSAndroid Build Coastguard Workervmstat;entry_SYSCALL_64_fastpath;sys_nanosleep;hrtimer_nanosleep;do_nanosleep;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/0 4000402
293*387f9dfdSAndroid Build Coastguard Workertail;entry_SYSCALL_64_fastpath;sys_nanosleep;hrtimer_nanosleep;do_nanosleep;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/0 4000447
294*387f9dfdSAndroid Build Coastguard Workerreadproctitle;entry_SYSCALL_64_fastpath;sys_read;vfs_read;__vfs_read;pipe_read;pipe_wait;schedule;-;autoremove_wake_function;__wake_up_common;__wake_up_sync_key;pipe_write;__vfs_write;vfs_write;sys_write;entry_SYSCALL_64_fastpath;;run 4149862
295*387f9dfdSAndroid Build Coastguard Workeroffwaketime.py;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/1 5005058
296*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_poll;do_sys_poll;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/1 8168600
297*387f9dfdSAndroid Build Coastguard Workersshd;entry_SYSCALL_64_fastpath;sys_select;core_sys_select;do_select;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule;-;pollwake;__wake_up_common;__wake_up;n_tty_receive_buf_common;n_tty_receive_buf2;flush_to_ldisc;process_one_work;worker_thread;kthread;ret_from_fork;kworker/u16:1 8821767
298*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_poll;do_sys_poll;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;run 9186846
299*387f9dfdSAndroid Build Coastguard Workersupervise;entry_SYSCALL_64_fastpath;sys_poll;do_sys_poll;poll_schedule_timeout;schedule_hrtimeout_range;schedule_hrtimeout_range_clock;schedule_hrtimeout_range_clock.part.23;schedule;-;hrtimer_wakeup;__hrtimer_run_queues;hrtimer_interrupt;xen_timer_interrupt;handle_irq_event_percpu;handle_percpu_irq;generic_handle_irq;evtchn_2l_handle_events;__xen_evtchn_do_upcall;xen_evtchn_do_upcall;swapper/0 20415299
300*387f9dfdSAndroid Build Coastguard Worker
301*387f9dfdSAndroid Build Coastguard WorkerThis output format is suitable for feeding into the open source FlameGraph
302*387f9dfdSAndroid Build Coastguard Workersoftware, which visualizes these.
303*387f9dfdSAndroid Build Coastguard Worker
304*387f9dfdSAndroid Build Coastguard Worker
305*387f9dfdSAndroid Build Coastguard WorkerUSAGE message:
306*387f9dfdSAndroid Build Coastguard Worker
307*387f9dfdSAndroid Build Coastguard Worker# ./offwaketime -h
308*387f9dfdSAndroid Build Coastguard Workerusage: offwaketime [-h] [-p PID | -t TID | -u | -k] [-U | -K] [-d] [-f]
309*387f9dfdSAndroid Build Coastguard Worker                   [--stack-storage-size STACK_STORAGE_SIZE]
310*387f9dfdSAndroid Build Coastguard Worker                   [-m MIN_BLOCK_TIME] [-M MAX_BLOCK_TIME] [--state STATE]
311*387f9dfdSAndroid Build Coastguard Worker                   [duration]
312*387f9dfdSAndroid Build Coastguard Worker
313*387f9dfdSAndroid Build Coastguard WorkerSummarize blocked time by kernel stack trace + waker stack
314*387f9dfdSAndroid Build Coastguard Worker
315*387f9dfdSAndroid Build Coastguard Workerpositional arguments:
316*387f9dfdSAndroid Build Coastguard Worker  duration              duration of trace, in seconds
317*387f9dfdSAndroid Build Coastguard Worker
318*387f9dfdSAndroid Build Coastguard Workeroptional arguments:
319*387f9dfdSAndroid Build Coastguard Worker  -h, --help            show this help message and exit
320*387f9dfdSAndroid Build Coastguard Worker  -p PID, --pid PID     trace these PIDS only. Can be a comma separated list of
321*387f9dfdSAndroid Build Coastguard Worker  					    PID.
322*387f9dfdSAndroid Build Coastguard Worker  -t TID, --tid TID     trace these TIDS only. Can be a comma separated list of
323*387f9dfdSAndroid Build Coastguard Worker  						TIDS.
324*387f9dfdSAndroid Build Coastguard Worker  -u, --user-threads-only
325*387f9dfdSAndroid Build Coastguard Worker                        user threads only (no kernel threads)
326*387f9dfdSAndroid Build Coastguard Worker  -k, --kernel-threads-only
327*387f9dfdSAndroid Build Coastguard Worker                        kernel threads only (no user threads)
328*387f9dfdSAndroid Build Coastguard Worker  -U, --user-stacks-only
329*387f9dfdSAndroid Build Coastguard Worker                        show stacks from user space only (no kernel space
330*387f9dfdSAndroid Build Coastguard Worker                        stacks)
331*387f9dfdSAndroid Build Coastguard Worker  -K, --kernel-stacks-only
332*387f9dfdSAndroid Build Coastguard Worker                        show stacks from kernel space only (no user space
333*387f9dfdSAndroid Build Coastguard Worker                        stacks)
334*387f9dfdSAndroid Build Coastguard Worker  -d, --delimited       insert delimiter between kernel/user stacks
335*387f9dfdSAndroid Build Coastguard Worker  -f, --folded          output folded format
336*387f9dfdSAndroid Build Coastguard Worker  --stack-storage-size STACK_STORAGE_SIZE
337*387f9dfdSAndroid Build Coastguard Worker                        the number of unique stack traces that can be stored
338*387f9dfdSAndroid Build Coastguard Worker                        and displayed (default 16384)
339*387f9dfdSAndroid Build Coastguard Worker  -m MIN_BLOCK_TIME, --min-block-time MIN_BLOCK_TIME
340*387f9dfdSAndroid Build Coastguard Worker                        the amount of time in microseconds over which we store
341*387f9dfdSAndroid Build Coastguard Worker                        traces (default 1)
342*387f9dfdSAndroid Build Coastguard Worker  -M MAX_BLOCK_TIME, --max-block-time MAX_BLOCK_TIME
343*387f9dfdSAndroid Build Coastguard Worker                        the amount of time in microseconds under which we
344*387f9dfdSAndroid Build Coastguard Worker                        store traces (default U64_MAX)
345*387f9dfdSAndroid Build Coastguard Worker  --state STATE         filter on this thread state bitmask (eg, 2 ==
346*387f9dfdSAndroid Build Coastguard Worker                        TASK_UNINTERRUPTIBLE) see include/linux/sched.h
347*387f9dfdSAndroid Build Coastguard Worker
348*387f9dfdSAndroid Build Coastguard Workerexamples:
349*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime             # trace off-CPU + waker stack time until Ctrl-C
350*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime 5           # trace for 5 seconds only
351*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -f 5        # 5 seconds, and output in folded format
352*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -m 1000     # trace only events that last more than 1000 usec
353*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -M 10000    # trace only events that last less than 10000 usec
354*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -p 185      # only trace threads for PID 185
355*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -t 188      # only trace thread 188
356*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -u          # only trace user threads (no kernel)
357*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -k          # only trace kernel threads (no user)
358*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -U          # only show user space stacks (no kernel)
359*387f9dfdSAndroid Build Coastguard Worker    ./offwaketime -K          # only show kernel space stacks (no user)
360