aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-02-04 20:15:36 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2014-02-04 20:15:36 -0500
commit0bc17e1ede563f8d59706250dc46757570977723 (patch)
treeb46ddb87fa027b3f12223f70958e4d37ee5a6703 /include
parent48e8cdc06c6bf3e3344ef8824843d6a83434cea5 (diff)
sched_plgn: Add fn. for reporting CPU/cluster maps
This patch adds the plugin interface "get_domain_proc_info()". Plugins use this function to report their cpu/clustering configuration to the user via /proc/litmus/domains and /proc/litmus/cpus.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/sched_plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index 0f2fe90123db..f173dca7cd65 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -16,6 +16,8 @@
16typedef long (*activate_plugin_t) (void); 16typedef long (*activate_plugin_t) (void);
17typedef long (*deactivate_plugin_t) (void); 17typedef long (*deactivate_plugin_t) (void);
18 18
19struct domain_proc_info;
20typedef long (*get_domain_proc_info_t) (struct domain_proc_info **info);
19 21
20 22
21/********************* scheduler invocation ******************/ 23/********************* scheduler invocation ******************/
@@ -69,6 +71,9 @@ typedef long (*admit_task_t)(struct task_struct* tsk);
69 71
70typedef void (*release_at_t)(struct task_struct *t, lt_t start); 72typedef void (*release_at_t)(struct task_struct *t, lt_t start);
71 73
74/************************ misc routines ***********************/
75
76
72struct sched_plugin { 77struct sched_plugin {
73 struct list_head list; 78 struct list_head list;
74 /* basic info */ 79 /* basic info */
@@ -77,6 +82,7 @@ struct sched_plugin {
77 /* setup */ 82 /* setup */
78 activate_plugin_t activate_plugin; 83 activate_plugin_t activate_plugin;
79 deactivate_plugin_t deactivate_plugin; 84 deactivate_plugin_t deactivate_plugin;
85 get_domain_proc_info_t get_domain_proc_info;
80 86
81 /* scheduler invocation */ 87 /* scheduler invocation */
82 scheduler_tick_t tick; 88 scheduler_tick_t tick;