aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mmprofile_static_event.h
diff options
context:
space:
mode:
authorMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
committerMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
commitd2e1446d81725c351dc73a03b397ce043fb18452 (patch)
tree4dbc616b7f92aea39cd697a9084205ddb805e344 /include/linux/mmprofile_static_event.h
first commit
Diffstat (limited to 'include/linux/mmprofile_static_event.h')
-rw-r--r--include/linux/mmprofile_static_event.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/mmprofile_static_event.h b/include/linux/mmprofile_static_event.h
new file mode 100644
index 000000000..c0a0c7df0
--- /dev/null
+++ b/include/linux/mmprofile_static_event.h
@@ -0,0 +1,28 @@
+#ifndef __MMPROFILE_STATIC_EVENT_H__
+#define __MMPROFILE_STATIC_EVENT_H__
+
+
+typedef enum {
+ MMP_InvalidEvent = 0,
+ MMP_RootEvent = 1,
+ /* User defined static events begin */
+ MMP_TouchPanelEvent,
+ /* User defined static events end. */
+ MMP_MaxStaticEvent
+} MMP_StaticEvents;
+
+#ifdef MMPROFILE_INTERNAL
+typedef struct {
+ MMP_StaticEvents event;
+ char *name;
+ MMP_StaticEvents parent;
+} MMP_StaticEvent_t;
+
+static MMP_StaticEvent_t MMProfileStaticEvents[] = {
+ {MMP_RootEvent, "Root_Event", MMP_InvalidEvent},
+ {MMP_TouchPanelEvent, "TouchPanel_Event", MMP_RootEvent},
+};
+
+#endif
+
+#endif