Skip to contentSkip to conversation

print RT watchdog message

PATCH New Hiroshi Shimamoto 2 participants 3 messages May 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 print RT watchdog message

From: Hiroshi Shimamoto <[email protected]>

It's useful to detect which process is killed by RT watchdog.

---
 kernel/posix-cpu-timers.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
kernel/posix-cpu-timers.c +3 -0
index f1525ad..c42a03a 100644
@@ -1037,6 +1037,9 @@ static void check_thread_timers(struct task_struct *tsk,
 				sig->rlim[RLIMIT_RTTIME].rlim_cur +=
 								USEC_PER_SEC;
 			}
+			printk(KERN_INFO
+				"RT Watchdog Timeout: %s[%d]\n",
+				tsk->comm, task_pid_nr(tsk));
 			__group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk);
 		}
 	}
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 print RT watchdog message

From: Hiroshi Shimamoto <[email protected]>

It's useful to detect which process is killed by RT watchdog.

---
Oops, I forgot to add S-O-B.

 kernel/posix-cpu-timers.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
kernel/posix-cpu-timers.c +3 -0
index f1525ad..c42a03a 100644
@@ -1037,6 +1037,9 @@ static void check_thread_timers(struct task_struct *tsk,
 				sig->rlim[RLIMIT_RTTIME].rlim_cur +=
 								USEC_PER_SEC;
 			}
+			printk(KERN_INFO
+				"RT Watchdog Timeout: %s[%d]\n",
+				tsk->comm, task_pid_nr(tsk));
 			__group_send_sig_info(SIGXCPU, SEND_SIG_PRIV, tsk);
 		}
 	}