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

8
ChangeLog Normal file
View File

@ -0,0 +1,8 @@
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.

5
README
View File

@ -4,10 +4,11 @@ program "sysprof".
- There is no auto* stuff. Just type "make" and hope for the best
- You need gtk+ 2.4.0 or better. If you are using gtk+ 2.5 or greater,
- You need gtk+ 2.4.0 or better. If you are using gtk+ 2.5 or newer
you also need libglade cvs HEAD.
- You need a 2.6 kernel
- You need a 2.6 kernel. On SMP kernels the module seems to crash the system
from time to time, so you might want to stick with UP kernels.
- The programs you want to profile should have debugging symbols, or
you won't get much usable information. On a Fedora Core system,

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