summaryrefslogtreecommitdiff
path: root/src/bootchart/bootchart.h
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-01-09 22:38:03 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-01-10 00:24:48 +0100
commit28989b63f5e3a959557000f21f3891af08be40f7 (patch)
treefdbd185b509c2c646d0d13037cf48f7dd3aec4bf /src/bootchart/bootchart.h
parente711d102df3d3eafec9c51edfbb302c0fd8583f0 (diff)
bootchart: tabs to spaces
Diffstat (limited to 'src/bootchart/bootchart.h')
-rw-r--r--src/bootchart/bootchart.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/bootchart/bootchart.h b/src/bootchart/bootchart.h
index 0d8bed16b0..9127f92302 100644
--- a/src/bootchart/bootchart.h
+++ b/src/bootchart/bootchart.h
@@ -20,65 +20,65 @@
struct block_stat_struct {
- /* /proc/vmstat pgpgin & pgpgout */
- int bi;
- int bo;
+ /* /proc/vmstat pgpgin & pgpgout */
+ int bi;
+ int bo;
};
struct cpu_stat_sample_struct {
- /* /proc/schedstat fields 10 & 11 (after name) */
- double runtime;
- double waittime;
+ /* /proc/schedstat fields 10 & 11 (after name) */
+ double runtime;
+ double waittime;
};
struct cpu_stat_struct {
- /* per cpu array */
- struct cpu_stat_sample_struct sample[MAXSAMPLES];
+ /* per cpu array */
+ struct cpu_stat_sample_struct sample[MAXSAMPLES];
};
/* per process, per sample data we will log */
struct ps_sched_struct {
- /* /proc/<n>/schedstat fields 1 & 2 */
- double runtime;
- double waittime;
- int pss;
+ /* /proc/<n>/schedstat fields 1 & 2 */
+ double runtime;
+ double waittime;
+ int pss;
};
/* process info */
struct ps_struct {
- struct ps_struct *next_ps; /* SLL pointer */
- struct ps_struct *parent; /* ppid ref */
- struct ps_struct *children; /* children */
- struct ps_struct *next; /* siblings */
+ struct ps_struct *next_ps; /* SLL pointer */
+ struct ps_struct *parent; /* ppid ref */
+ struct ps_struct *children; /* children */
+ struct ps_struct *next; /* siblings */
- /* must match - otherwise it's a new process with same PID */
- char name[16];
- int pid;
- int ppid;
+ /* must match - otherwise it's a new process with same PID */
+ char name[16];
+ int pid;
+ int ppid;
- /* cache fd's */
- int sched;
- int schedstat;
- FILE *smaps;
+ /* cache fd's */
+ int sched;
+ int schedstat;
+ FILE *smaps;
- /* index to first/last seen timestamps */
- int first;
- int last;
+ /* index to first/last seen timestamps */
+ int first;
+ int last;
- /* records actual start time, may be way before bootchart runs */
- double starttime;
+ /* records actual start time, may be way before bootchart runs */
+ double starttime;
- /* record human readable total cpu time */
- double total;
+ /* record human readable total cpu time */
+ double total;
- /* largest PSS size found */
- int pss_max;
+ /* largest PSS size found */
+ int pss_max;
- /* for drawing connection lines later */
- double pos_x;
- double pos_y;
+ /* for drawing connection lines later */
+ double pos_x;
+ double pos_y;
- struct ps_sched_struct *sample;
+ struct ps_sched_struct *sample;
};
extern int entropy_avail[];