Analyzing the Android Scheduler - Is the process waking itself up?

I am currently using ftrace (via atrace on Android in particular) to help me figure out my scheduler thread wakeup thread. However, the line below is confusing me. This assumes that the current task (ls-4787) wakes up itself (comm = ls pid = 4787).

Why or how will this happen? I can't think of a situation where the currently running process (which is already in the execution queue!) To ... add itself to the queue. Am I reading this wrong? Thanks for any help you could offer!

 kworker/0:0-4692  ( 4692) [000] d..3 52894.176161: sched_switch: prev_comm=kworker/0:0 prev_pid=4692 prev_prio=120 prev_state=S ==> next_comm=ls next_pid=4787 next_prio=120
        adbd-209   (  209) [001] d..3 52894.176192: sched_switch: prev_comm=adbd prev_pid=209 prev_prio=120 prev_state=S ==> next_comm=adbd next_pid=230 next_prio=120
          ls-4787  ( 4787) [000] dN.4 52894.176204: sched_wakeup: comm=kworker/0:0 pid=4692 prio=120 success=1 target_cpu=000
          ls-4787  ( 4787) [000] dN.4 52894.176211: sched_wakeup: comm=ls pid=4787 prio=120 success=1 target_cpu=000
          ls-4787  ( 4787) [000] d..3 52894.176221: sched_switch: prev_comm=ls prev_pid=4787 prev_prio=120 prev_state=R+ ==> next_comm=kworker/0:0 next_pid=4692 next_prio=120

      

As a complement, these strange instances are always associated with the kworker event, but I'm not sure why this would affect the scheduler's perspective.

+3
android scheduler ftrace


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
1296
Reloading activity on android rotation
1152
Difference between gravity and layout_gravity on Android



All Articles
Loading...
X
Show
Funny
Dev
Pics