From 41efdc9c7ebebb80ce5f1850ba918e49bcc40ea1 Mon Sep 17 00:00:00 2001 From: Soren Sandmann Date: Sat, 17 Nov 2007 03:48:31 +0000 Subject: [PATCH] Formatting 2007-11-16 Soren Sandmann * 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 --- ChangeLog | 7 +++++++ collector.c | 2 ++ module/sysprof-module.c | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e050365..23c2b148 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-16 Soren Sandmann + + * 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 * TODO: updates diff --git a/collector.c b/collector.c index c598b166..1c1b131a 100644 --- a/collector.c +++ b/collector.c @@ -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 */ diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 71e5e95d..1ae4cc23 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -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;