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:
Søren Sandmann
2005-01-21 16:27:41 +00:00
committed by Søren Sandmann Pedersen
parent 6ecc4be164
commit 5dec3764c1
3 changed files with 20 additions and 3 deletions

View File

@ -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);