mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +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
8
ChangeLog
Normal file
8
ChangeLog
Normal 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
5
README
@ -4,10 +4,11 @@ program "sysprof".
|
|||||||
|
|
||||||
- There is no auto* stuff. Just type "make" and hope for the best
|
- 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 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
|
- The programs you want to profile should have debugging symbols, or
|
||||||
you won't get much usable information. On a Fedora Core system,
|
you won't get much usable information. On a Fedora Core system,
|
||||||
|
|||||||
@ -302,14 +302,22 @@ queue_generate_stack_trace (struct task_struct *cur)
|
|||||||
static void
|
static void
|
||||||
on_timer(unsigned long dong)
|
on_timer(unsigned long dong)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
struct task_struct *p;
|
struct task_struct *p;
|
||||||
|
#endif
|
||||||
|
|
||||||
static const int cpu_profiler = 1; /* set to 0 to profile disk */
|
static const int cpu_profiler = 1; /* set to 0 to profile disk */
|
||||||
|
|
||||||
|
if (current && current->pid != 0) {
|
||||||
|
#if 0
|
||||||
|
|
||||||
for_each_process (p) {
|
for_each_process (p) {
|
||||||
if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE)) {
|
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);
|
add_timeout (INTERVAL, on_timer);
|
||||||
|
|||||||
Reference in New Issue
Block a user