mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Some updates - add note about SMP kernels.
Fri Jan 21 11:23:54 2005 Søren Sandmann <sandmann@redhat.com> * README: Some updates - add note about SMP kernels. * sysprof-module.c: Go back to just sampling the current process. * ChangeLog: I guess these do make sense, so start one.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
6ecc4be164
commit
5dec3764c1
@ -302,14 +302,22 @@ queue_generate_stack_trace (struct task_struct *cur)
|
||||
static void
|
||||
on_timer(unsigned long dong)
|
||||
{
|
||||
#if 0
|
||||
struct task_struct *p;
|
||||
#endif
|
||||
|
||||
static const int cpu_profiler = 1; /* set to 0 to profile disk */
|
||||
|
||||
if (current && current->pid != 0) {
|
||||
#if 0
|
||||
|
||||
for_each_process (p) {
|
||||
if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE)) {
|
||||
queue_generate_stack_trace (p);
|
||||
#endif
|
||||
queue_generate_stack_trace (current);
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
add_timeout (INTERVAL, on_timer);
|
||||
|
||||
Reference in New Issue
Block a user