Ingo Molnar ece8a684c7 [PATCH] sleep profiling
Implement prof=sleep profiling.  TASK_UNINTERRUPTIBLE sleeps will be taken
as a profile hit, and every millisecond spent sleeping causes a profile-hit
for the call site that initiated the sleep.

Sample readprofile output on i386:

   306 ps2_sendbyte                               1.3973
   432 call_usermodehelper_keys                   1.9548
   484 ps2_command                                0.6453
   790 __driver_attach                            4.7879
  1593 msleep                                    44.2500
  3976 sync_buffer                               64.1290
  4076 do_lookup                                 12.4648
  8587 sync_page                                122.6714
 20820 total                                      0.0067

(NOTE: architectures need to check whether get_wchan() can be called from
deep within the wakeup path.)

akpm: we need to mark more functions __sched.  lock_sock(), msleep(), others..

akpm: the contention in do_lookup() is a surprise.  Presumably doing disk
reads for directory contents while holding i_mutex.

[akpm@osdl.org: various fixes]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-07 08:39:36 -08:00
..
2006-09-11 13:32:30 -04:00
2006-09-29 09:18:12 -07:00
2006-12-07 08:39:25 -08:00
2006-10-03 08:03:41 -07:00
2006-03-26 08:57:03 -08:00
2006-09-29 09:18:15 -07:00
2006-12-04 02:00:22 -05:00
2006-07-03 15:27:04 -07:00
2006-12-04 02:00:22 -05:00
2006-09-30 01:47:55 +02:00
2006-12-07 08:39:25 -08:00
2006-11-03 12:27:58 -08:00
2006-12-07 08:39:36 -08:00
2006-09-29 09:18:12 -07:00
2006-11-22 14:57:56 +00:00
2006-12-07 08:39:36 -08:00
2005-04-16 15:20:36 -07:00
2006-10-01 00:39:27 -07:00
2006-04-19 16:27:18 -07:00
2006-12-07 08:39:25 -08:00
2006-07-10 13:24:25 -07:00