aboutsummaryrefslogtreecommitdiff
path: root/clocks.h
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-27 12:02:53 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-27 12:07:03 +0530
commited3e565b961db8dd95b098483d49b624268f3f97 (patch)
treee8423223db445de0ab7fe550201a242c170206a2 /clocks.h
parenteb6cba934b52f6685394d04bd1937ab7309fc9e1 (diff)
downloadpowerdebug-ed3e565b961db8dd95b098483d49b624268f3f97.tar.gz
Discover debugfs mntpoint and split header files
Diffstat (limited to 'clocks.h')
-rw-r--r--clocks.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/clocks.h b/clocks.h
new file mode 100644
index 0000000..91cf434
--- /dev/null
+++ b/clocks.h
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (C) 2010, Linaro
+ * Copyright (C) 2010, IBM Corporation
+ *
+ * This file is part of PowerDebug.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Amit Arora <amit.arora@linaro.org> (IBM Corporation)
+ * - initial API and implementation
+ *******************************************************************************/
+
+#include <sys/stat.h>
+#include <sys/vfs.h>
+#include <linux/magic.h>
+
+struct clock_info {
+ char name[NAME_MAX];
+ int flags;
+ int rate;
+ int usecount;
+ int num_children;
+ int last_child;
+ struct clock_info *parent;
+ struct clock_info **children;
+} *clocks_info;
+
+char debugfs_mntpoint[1024];
+
+char *likely_mpoints[] = {
+ "/sys/kernel/debug",
+ "/debug",
+ NULL
+};