mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Formatting
2007-11-16 Soren Sandmann <sandmann@daimi.au.dk> * module/sysprof-module.c (n_traces_available): Formatting * module/sysprof-module.c (sysprof_poll): Require 16 traces rather than 8. svn path=/trunk/; revision=389
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
c00ccd69c7
commit
41efdc9c7e
@ -1,3 +1,10 @@
|
||||
2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* module/sysprof-module.c (n_traces_available): Formatting
|
||||
|
||||
* module/sysprof-module.c (sysprof_poll): Require 16 traces rather
|
||||
than 8.
|
||||
|
||||
2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* TODO: updates
|
||||
|
||||
@ -169,6 +169,8 @@ in_dead_period (Collector *collector)
|
||||
static void
|
||||
collect_traces (Collector *collector)
|
||||
{
|
||||
int n;
|
||||
|
||||
/* After a reset we ignore samples for a short period so that
|
||||
* a reset will actually cause 'samples' to become 0
|
||||
*/
|
||||
|
||||
@ -236,7 +236,7 @@ sysprof_read(struct file *file, char *buffer, size_t count, loff_t *offset)
|
||||
}
|
||||
|
||||
static int
|
||||
n_traces_available (SysprofStackTrace *tail)
|
||||
n_traces_available(SysprofStackTrace *tail)
|
||||
{
|
||||
SysprofStackTrace *head = &(area->traces[area->head]);
|
||||
|
||||
@ -251,12 +251,12 @@ sysprof_poll(struct file *file, poll_table *poll_table)
|
||||
{
|
||||
SysprofStackTrace *tail = file->private_data;
|
||||
|
||||
if (n_traces_available (tail) >= 8)
|
||||
if (n_traces_available (tail) >= 16)
|
||||
return POLLIN | POLLRDNORM;
|
||||
|
||||
poll_wait(file, &wait_for_trace, poll_table);
|
||||
|
||||
if (n_traces_available (tail) >= 8)
|
||||
if (n_traces_available (tail) >= 16)
|
||||
return POLLIN | POLLRDNORM;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user