mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
Don't use INTERVAL or SAMPLES_PER_SECOND now that we use
Mon Oct 10 13:00:20 2005 Robert Love <rml@novell.com> * module/sysprof-module.c: Don't use INTERVAL or SAMPLES_PER_SECOND now that we use register_timer_hook(), which hits off the timer interrupt at HZ freqency (1/250 second on x86).
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Mon Oct 10 13:00:20 2005 Robert Love <rml@novell.com>
|
||||||
|
|
||||||
|
* module/sysprof-module.c: Don't use INTERVAL or SAMPLES_PER_SECOND
|
||||||
|
now that we use register_timer_hook(), which hits off the timer
|
||||||
|
interrupt at HZ freqency (1/250 second on x86).
|
||||||
|
|
||||||
Sat Oct 1 01:21:57 2005 Soeren Sandmann <sandmann@redhat.com>
|
Sat Oct 1 01:21:57 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* TODO: Update
|
* TODO: Update
|
||||||
|
|||||||
@ -49,8 +49,6 @@
|
|||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)");
|
MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)");
|
||||||
|
|
||||||
#define SAMPLES_PER_SECOND (200)
|
|
||||||
#define INTERVAL (HZ / SAMPLES_PER_SECOND)
|
|
||||||
#define N_TRACES 256
|
#define N_TRACES 256
|
||||||
|
|
||||||
static SysprofStackTrace stack_traces[N_TRACES];
|
static SysprofStackTrace stack_traces[N_TRACES];
|
||||||
@ -447,9 +445,6 @@ timer_notify (struct pt_regs *regs)
|
|||||||
int i;
|
int i;
|
||||||
int is_user;
|
int is_user;
|
||||||
|
|
||||||
if ((n_samples++ % INTERVAL) != 0)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
is_user = user_mode(regs);
|
is_user = user_mode(regs);
|
||||||
|
|
||||||
if (!current || current->pid == 0 || !current->mm)
|
if (!current || current->pid == 0 || !current->mm)
|
||||||
|
|||||||
Reference in New Issue
Block a user