summaryrefslogtreecommitdiff
path: root/src/bootchart/bootchart.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/bootchart.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/bootchart.h')
-rw-r--r--src/bootchart/bootchart.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/bootchart/bootchart.h b/src/bootchart/bootchart.h
index 6e83a99a2b..bdb4b00199 100644
--- a/src/bootchart/bootchart.h
+++ b/src/bootchart/bootchart.h
@@ -103,14 +103,6 @@ struct ps_struct {
struct ps_sched_struct *sample;
};
-extern int entropy_avail[];
-
-extern double graph_start;
-extern double log_start;
-extern double sampletime[];
-extern struct ps_struct *ps_first;
-extern struct block_stat_struct blockstat[];
-extern int pscount;
extern bool arg_relative;
extern bool arg_filter;
extern bool arg_show_cmdline;
@@ -118,17 +110,11 @@ extern bool arg_show_cgroup;
extern bool arg_pss;
extern bool arg_entropy;
extern bool arg_percpu;
-extern bool initcall;
-extern int samples;
-extern int cpus;
-extern int arg_samples_len;
+extern bool arg_initcall;
+extern int arg_samples_len;
extern double arg_hz;
extern double arg_scale_x;
extern double arg_scale_y;
-extern int overrun;
-extern double interval;
extern char arg_output_path[PATH_MAX];
extern char arg_init_path[PATH_MAX];
-
-extern FILE *of;