aboutsummaryrefslogtreecommitdiff
path: root/clocks.h
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-11-09 11:16:53 +0530
committerAmit Arora <amit.arora@linaro.org>2010-11-09 11:16:53 +0530
commitac4e865c0c3b260002d1bd9e0b1a1ba7aa8d7382 (patch)
tree79d5f0db7c7fa97966a28f26714b93bb02b82ad2 /clocks.h
parent031263aff48b6a987015a34652bebe1764ca1f83 (diff)
downloadpowerdebug-ac4e865c0c3b260002d1bd9e0b1a1ba7aa8d7382.tar.gz
expand/collapse clocks
Diffstat (limited to 'clocks.h')
-rw-r--r--clocks.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clocks.h b/clocks.h
index 87e7139..9a945b7 100644
--- a/clocks.h
+++ b/clocks.h
@@ -16,6 +16,8 @@
#include <sys/stat.h>
#include <sys/vfs.h>
+#include <errno.h>
+#include <sys/stat.h>
#include <linux/magic.h>
#define MAX_LINES 80
@@ -28,6 +30,7 @@ struct clock_info {
int num_children;
int last_child;
int expanded;
+ int level;
struct clock_info *parent;
struct clock_info **children;
} *clocks_info;
@@ -35,6 +38,7 @@ struct clock_info {
char debugfs_mntpoint[1024];
char clock_lines[MAX_LINES][128];
int clock_line_no;
+int old_clock_line_no;
char *likely_mpoints[] = {
"/sys/kernel/debug",
@@ -42,6 +46,7 @@ char *likely_mpoints[] = {
NULL
};
-void add_clock_details_recur(struct clock_info *clk);
+void add_clock_details_recur(struct clock_info *clk, int hrow, int selected);
void destroy_clocks_info(void);
void destroy_clocks_info_recur(struct clock_info *clock);
+void collapse_all_subclocks(struct clock_info *clock);