Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1307993 > unrolled thread

[PATCH] kernel/hung_task.c: printk address for hung_task

Started byLi <kassey1216@gmail.com>
First post2016-01-13 03:50 +0100
Last post2016-01-14 10:40 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] kernel/hung_task.c: printk address for hung_task Li <kassey1216@gmail.com> - 2016-01-13 03:50 +0100
    Re: [PATCH] kernel/hung_task.c: printk address for hung_task Pan Xinhui <xinhui@linux.vnet.ibm.com> - 2016-01-14 03:50 +0100
      Re: [PATCH] kernel/hung_task.c: printk address for hung_task Kassey <kassey1216@gmail.com> - 2016-01-14 10:40 +0100

#1307993 — [PATCH] kernel/hung_task.c: printk address for hung_task

FromLi <kassey1216@gmail.com>
Date2016-01-13 03:50 +0100
Subject[PATCH] kernel/hung_task.c: printk address for hung_task
Message-ID<qQjFw-1z9-17@gated-at.bofh.it>
From: Kassey Li <kassey1216@gmail.com>

this is used to check task_struct info when got a dump.

Signed-off-by: Kassey Li <kassey1216@gmail.com>
---
 kernel/hung_task.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index d234022..b5dd7dd 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -108,8 +108,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
 	 * Ok, the task did not get scheduled for more than 2 minutes,
 	 * complain:
 	 */
-	pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
-		t->comm, t->pid, timeout);
+	pr_err("INFO: task %s:%d 0x%p blocked for more than %ld seconds.\n",
+		t->comm, t->pid, t, timeout);
 	pr_err("      %s %s %.*s\n",
 		print_tainted(), init_utsname()->release,
 		(int)strcspn(init_utsname()->version, " "),
-- 
2.1.4

[toc] | [next] | [standalone]


#1308967

FromPan Xinhui <xinhui@linux.vnet.ibm.com>
Date2016-01-14 03:50 +0100
Message-ID<qQG93-tg-3@gated-at.bofh.it>
In reply to#1307993
hi, Li
	I have a little confusion. for what you want to know this ptr's value. Can that help you debug or root the cause?
I'm just wondering :)

thanks
xinhui

On 2016年01月13日 10:42, Li wrote:
> From: Kassey Li <kassey1216@gmail.com>
> 
> this is used to check task_struct info when got a dump.
> 
> Signed-off-by: Kassey Li <kassey1216@gmail.com>
> ---
>  kernel/hung_task.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/hung_task.c b/kernel/hung_task.c
> index d234022..b5dd7dd 100644
> --- a/kernel/hung_task.c
> +++ b/kernel/hung_task.c
> @@ -108,8 +108,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
>  	 * Ok, the task did not get scheduled for more than 2 minutes,
>  	 * complain:
>  	 */
> -	pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
> -		t->comm, t->pid, timeout);
> +	pr_err("INFO: task %s:%d 0x%p blocked for more than %ld seconds.\n",
> +		t->comm, t->pid, t, timeout);
>  	pr_err("      %s %s %.*s\n",
>  		print_tainted(), init_utsname()->release,
>  		(int)strcspn(init_utsname()->version, " "),
> 

[toc] | [prev] | [next] | [standalone]


#1309116

FromKassey <kassey1216@gmail.com>
Date2016-01-14 10:40 +0100
Message-ID<qQMxQ-54U-9@gated-at.bofh.it>
In reply to#1308967
Xinhui:
      when I got a  DDR dump, with the task_struct address for this
task, I can see what file this task is accessing, as well as
task_struct member.
      this is very useful and popular on arch where we can generate a
DDR dump when system crash.

BR
Kassey

On Thu, Jan 14, 2016 at 10:45 AM, Pan Xinhui <xinhui@linux.vnet.ibm.com> wrote:
> hi, Li
>         I have a little confusion. for what you want to know this ptr's value. Can that help you debug or root the cause?
> I'm just wondering :)
>
> thanks
> xinhui
>
> On 2016年01月13日 10:42, Li wrote:
>> From: Kassey Li <kassey1216@gmail.com>
>>
>> this is used to check task_struct info when got a dump.
>>
>> Signed-off-by: Kassey Li <kassey1216@gmail.com>
>> ---
>>  kernel/hung_task.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/kernel/hung_task.c b/kernel/hung_task.c
>> index d234022..b5dd7dd 100644
>> --- a/kernel/hung_task.c
>> +++ b/kernel/hung_task.c
>> @@ -108,8 +108,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
>>        * Ok, the task did not get scheduled for more than 2 minutes,
>>        * complain:
>>        */
>> -     pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
>> -             t->comm, t->pid, timeout);
>> +     pr_err("INFO: task %s:%d 0x%p blocked for more than %ld seconds.\n",
>> +             t->comm, t->pid, t, timeout);
>>       pr_err("      %s %s %.*s\n",
>>               print_tainted(), init_utsname()->release,
>>               (int)strcspn(init_utsname()->version, " "),
>>
>



-- 
Best regards
Kassey

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web