summaryrefslogtreecommitdiff
path: root/src/bootchart/store.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-02 15:15:43 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-03 15:29:18 +0200
commit1f2ecb0393bf071fcd476300e0b3f94726b01b15 (patch)
tree8aaee7d724db8cc55139b9779354d3c4458a09f7 /src/bootchart/store.h
parentf91781329c6d8a760e3c1b88b66b0e2137c2e5ab (diff)
bootchart: kill a bunch of global variables
This code is in a confusingly bad shape. Kill a bunch of global variables and pass needed variables around in function calls.
Diffstat (limited to 'src/bootchart/store.h')
-rw-r--r--src/bootchart/store.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootchart/store.h b/src/bootchart/store.h
index bc54f4f631..bbb4796efd 100644
--- a/src/bootchart/store.h
+++ b/src/bootchart/store.h
@@ -29,4 +29,9 @@
double gettime_ns(void);
void log_uptime(void);
-int log_sample(DIR *proc, int sample, struct list_sample_data **ptr);
+int log_sample(DIR *proc,
+ int sample,
+ struct ps_struct *ps_first,
+ struct list_sample_data **ptr,
+ int *pscount,
+ int *cpus);