chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dfb6e7
)
bootchart: cleanup unused structs and globals
author
Auke Kok
<auke-jan.h.kok@intel.com>
Thu, 2 May 2013 16:40:52 +0000
(09:40 -0700)
committer
Auke Kok
<auke-jan.h.kok@intel.com>
Thu, 2 May 2013 16:40:52 +0000
(09:40 -0700)
src/bootchart/bootchart.h
patch
|
blob
|
history
diff --git
a/src/bootchart/bootchart.h
b/src/bootchart/bootchart.h
index ee1e67604da19c1f5671386ef43014b6a350ac67..d0273421de2b47c8faf040a2264c27a22c1716e6 100644
(file)
--- a/
src/bootchart/bootchart.h
+++ b/
src/bootchart/bootchart.h
@@
-30,7
+30,6
@@
#define MAXCPUS 16
#define MAXPIDS 65535
#define MAXCPUS 16
#define MAXPIDS 65535
-#define MAXSAMPLES 8192
struct block_stat_struct {
/* /proc/vmstat pgpgin & pgpgout */
struct block_stat_struct {
/* /proc/vmstat pgpgin & pgpgout */
@@
-44,11
+43,6
@@
struct cpu_stat_sample_struct {
double waittime;
};
double waittime;
};
-struct cpu_stat_struct {
- /* 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 */
/* per process, per sample data we will log */
struct ps_sched_struct {
/* /proc/<n>/schedstat fields 1 & 2 */
@@
-68,7
+62,6
@@
struct list_sample_data {
double sampletime;
int entropy_avail;
struct block_stat_struct blockstat;
double sampletime;
int entropy_avail;
struct block_stat_struct blockstat;
- struct cpu_stat_struct cpustat;
LIST_FIELDS(struct list_sample_data, link); /* DLL */
int counter;
};
LIST_FIELDS(struct list_sample_data, link); /* DLL */
int counter;
};
@@
-117,7
+110,6
@@
extern double log_start;
extern double sampletime[];
extern struct ps_struct *ps_first;
extern struct block_stat_struct blockstat[];
extern double sampletime[];
extern struct ps_struct *ps_first;
extern struct block_stat_struct blockstat[];
-extern struct cpu_stat_struct cpustat[];
extern int pscount;
extern bool arg_relative;
extern bool arg_filter;
extern int pscount;
extern bool arg_relative;
extern bool arg_filter;