mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
*** empty log message ***
This commit is contained in:
@ -304,11 +304,10 @@ on_timer(unsigned long dong)
|
|||||||
{
|
{
|
||||||
struct task_struct *p;
|
struct task_struct *p;
|
||||||
|
|
||||||
|
static const int cpu_profiler = 1; /* set to 0 to profile disk */
|
||||||
|
|
||||||
for_each_process (p) {
|
for_each_process (p) {
|
||||||
/* Change TASK_RUNNING to TASK_UNINTERRUPTIABLE to
|
if (p->state == cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE)
|
||||||
* profile (synchronous) disk access
|
|
||||||
*/
|
|
||||||
if (p->state == TASK_RUNNING)
|
|
||||||
queue_generate_stack_trace (p);
|
queue_generate_stack_trace (p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user