aboutsummaryrefslogtreecommitdiff
path: root/clocks.h
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-11-09 11:12:41 +0530
committerAmit Arora <amit.arora@linaro.org>2010-11-09 11:12:41 +0530
commit031263aff48b6a987015a34652bebe1764ca1f83 (patch)
tree934b2d84fa62e9062b6584d0af4312d53d1994ca /clocks.h
parent97006e5f47996d630f88b890bc7cec42f169c634 (diff)
downloadpowerdebug-031263aff48b6a987015a34652bebe1764ca1f83.tar.gz
Use in-memory ds to display clocks in ncurses mode
Diffstat (limited to 'clocks.h')
-rw-r--r--clocks.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clocks.h b/clocks.h
index 2157162..87e7139 100644
--- a/clocks.h
+++ b/clocks.h
@@ -18,6 +18,8 @@
#include <sys/vfs.h>
#include <linux/magic.h>
+#define MAX_LINES 80
+
struct clock_info {
char name[NAME_MAX];
int flags;
@@ -25,14 +27,21 @@ struct clock_info {
int usecount;
int num_children;
int last_child;
+ int expanded;
struct clock_info *parent;
struct clock_info **children;
} *clocks_info;
char debugfs_mntpoint[1024];
+char clock_lines[MAX_LINES][128];
+int clock_line_no;
char *likely_mpoints[] = {
"/sys/kernel/debug",
"/debug",
NULL
};
+
+void add_clock_details_recur(struct clock_info *clk);
+void destroy_clocks_info(void);
+void destroy_clocks_info_recur(struct clock_info *clock);