summaryrefslogtreecommitdiff
path: root/src/bootchart/store.h
diff options
context:
space:
mode:
authorNathaniel Chen <nathaniel.chen@intel.com>2013-04-24 14:56:15 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2013-05-02 09:23:01 -0700
commit8dfb6e718d621a5115bd3b8e7e826195dc6bfe14 (patch)
treee64c6e39a8a0578fee928795be62778ffa893e20 /src/bootchart/store.h
parent8368868452fc24536bf3322bfab536c66bf56a13 (diff)
Dynamically allocate bootchart logs
Instead of storing bootchart sample data in arrays, this patch moves storage to linked lists so that there is no more limit on samples. This patch also fixes parsing of /proc/<pid>/smaps in kernels > 3.7.
Diffstat (limited to 'src/bootchart/store.h')
-rw-r--r--src/bootchart/store.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootchart/store.h b/src/bootchart/store.h
index e8d013cde4..7c8ad284da 100644
--- a/src/bootchart/store.h
+++ b/src/bootchart/store.h
@@ -25,10 +25,11 @@
***/
#include <dirent.h>
+#include "bootchart.h"
extern DIR *proc;
extern int procfd;
double gettime_ns(void);
void log_uptime(void);
-void log_sample(int sample);
+void log_sample(int sample, struct list_sample_data **ptr);