aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-13 16:07:25 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-13 16:07:25 -0400
commitc8d0ba96471a2af476cf7b1e2ecd8a9a33f20789 (patch)
tree079995980749c587fda2d28689a0cf876a427d4b /kernel
parentcaadead44fc4d8d19cdc80eddf662584dd18e153 (diff)
Improve debugging output and support
- TRACE jobs being queued - TRACE enter_np/exit_np - fix double assignment of F in sysrq handlers
Diffstat (limited to 'kernel')
-rw-r--r--kernel/edf_common.c4
-rw-r--r--kernel/litmus.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/kernel/edf_common.c b/kernel/edf_common.c
index 00e964925c..88937c645b 100644
--- a/kernel/edf_common.c
+++ b/kernel/edf_common.c
@@ -88,6 +88,8 @@ void __add_ready(edf_domain_t* edf, struct task_struct *new)
88 unsigned int passed = 0; 88 unsigned int passed = 0;
89 89
90 BUG_ON(!new); 90 BUG_ON(!new);
91 TRACE("edf: adding %s/%d to ready queue\n", new->comm, new->pid);
92
91 /* find a spot where our deadline is earlier than the next */ 93 /* find a spot where our deadline is earlier than the next */
92 list_for_each(pos, &edf->ready_queue) { 94 list_for_each(pos, &edf->ready_queue) {
93 queued = list_entry(pos, struct task_struct, rt_list); 95 queued = list_entry(pos, struct task_struct, rt_list);
@@ -140,7 +142,7 @@ void __add_release(edf_domain_t* edf, struct task_struct *task)
140 142
141 BUG_ON(!task); 143 BUG_ON(!task);
142 /* first we need the lock for edf_release_queue */ 144 /* first we need the lock for edf_release_queue */
143 TRACE("ADDING release %d\n", task->pid); 145 TRACE("edf: adding %s/%d to release queue\n", task->comm, task->pid);
144 146
145 /* find a spot where our deadline is earlier than the next */ 147 /* find a spot where our deadline is earlier than the next */
146 list_for_each_prev(pos, &edf->release_queue) { 148 list_for_each_prev(pos, &edf->release_queue) {
diff --git a/kernel/litmus.c b/kernel/litmus.c
index a93f99bfce..2483e929ab 100644
--- a/kernel/litmus.c
+++ b/kernel/litmus.c
@@ -236,6 +236,8 @@ asmlinkage long sys_enter_np(void)
236 /* Let the plugin decide. The default callback will return -EPERM. 236 /* Let the plugin decide. The default callback will return -EPERM.
237 */ 237 */
238 retval = curr_sched_plugin->enter_np(current); 238 retval = curr_sched_plugin->enter_np(current);
239 TRACE("enter_np(%s/%d) => %d and np=%d\n",
240 current->comm, current->pid, retval, is_np(current));
239 out: 241 out:
240 return retval; 242 return retval;
241} 243}
@@ -256,6 +258,8 @@ asmlinkage long sys_exit_np(void)
256 /* Let the plugin decide. The default callback will return -EPERM. 258 /* Let the plugin decide. The default callback will return -EPERM.
257 */ 259 */
258 retval = curr_sched_plugin->exit_np(current); 260 retval = curr_sched_plugin->exit_np(current);
261 TRACE("exit_np(%s/%d) => %d and np=%d\n",
262 current->comm, current->pid, retval, is_np(current));
259 out: 263 out:
260 return retval; 264 return retval;
261} 265}
@@ -360,7 +364,7 @@ static void sysrq_handle_kill_rt_tasks(int key, struct tty_struct *tty)
360 364
361static struct sysrq_key_op sysrq_kill_rt_tasks_op = { 365static struct sysrq_key_op sysrq_kill_rt_tasks_op = {
362 .handler = sysrq_handle_kill_rt_tasks, 366 .handler = sysrq_handle_kill_rt_tasks,
363 .help_msg = "f:kill-rt-tasks", 367 .help_msg = "Quit-rt-tasks",
364 .action_msg = "sent SIGKILL to all real-time tasks", 368 .action_msg = "sent SIGKILL to all real-time tasks",
365}; 369};
366#endif 370#endif
@@ -491,7 +495,7 @@ out:
491 printk("Registered eXit real-time mode magic sysrq.\n"); 495 printk("Registered eXit real-time mode magic sysrq.\n");
492 else 496 else
493 printk("Could not register eXit real-time mode magic sysrq.\n"); 497 printk("Could not register eXit real-time mode magic sysrq.\n");
494 if (!register_sysrq_key('f', &sysrq_kill_rt_tasks_op)) 498 if (!register_sysrq_key('q', &sysrq_kill_rt_tasks_op))
495 printk("Registered kill rt tasks magic sysrq.\n"); 499 printk("Registered kill rt tasks magic sysrq.\n");
496 else 500 else
497 printk("Could not register kill rt tasks magic sysrq.\n"); 501 printk("Could not register kill rt tasks magic sysrq.\n");