summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-05-12 17:59:05 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:36 -0700
commit7f78facb9a3dea1bcad4b41a4d253fa698ed07e8 (patch)
treefa6125c562fe3cf49b7351a59169ef55678c5eb1 /include/linux
parent53a4978f8044d16f8e5ecfe353f10cab5ab92022 (diff)
sched: Add new trace events
Add trace events for update_task_ravg(), update_history(), and set_task_cpu(). These tracepoints are useful for monitoring the per-task and per-runqueue demand statistics. Change-Id: Ibec9f945074ff31d1fc1a76ae37c40c8fea8cda9 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f22f67de7320..266dca375d59 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -314,6 +314,14 @@ extern char ___assert_task_state[1 - 2*!!(
/* Task command name length */
#define TASK_COMM_LEN 16
+enum task_event {
+ PUT_PREV_TASK = 0,
+ PICK_NEXT_TASK = 1,
+ TASK_WAKE = 2,
+ TASK_MIGRATE = 3,
+ TASK_UPDATE = 4,
+};
+
#include <linux/spinlock.h>
/*