diff options
author | Amit Arora <amit.arora@linaro.org> | 2010-11-09 11:12:41 +0530 |
---|---|---|
committer | Amit Arora <amit.arora@linaro.org> | 2010-11-09 11:12:41 +0530 |
commit | 031263aff48b6a987015a34652bebe1764ca1f83 (patch) | |
tree | 934b2d84fa62e9062b6584d0af4312d53d1994ca /clocks.h | |
parent | 97006e5f47996d630f88b890bc7cec42f169c634 (diff) |
Use in-memory ds to display clocks in ncurses mode
Diffstat (limited to 'clocks.h')
-rw-r--r-- | clocks.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |