From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755044AbcANCqp (ORCPT ); Wed, 13 Jan 2016 21:46:45 -0500 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:34154 "EHLO e23smtp08.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752002AbcANCqo (ORCPT ); Wed, 13 Jan 2016 21:46:44 -0500 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: xinhui@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Message-ID: <56970BCF.2000100@linux.vnet.ibm.com> Date: Thu, 14 Jan 2016 10:45:35 +0800 From: Pan Xinhui User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Li , mingo@redhat.com CC: linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/hung_task.c: printk address for hung_task References: <1452652949-7688-1-git-send-email-yingangl@qti.qualcomm.com> In-Reply-To: <1452652949-7688-1-git-send-email-yingangl@qti.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16011402-0029-0000-0000-000002C5D60A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > this is used to check task_struct info when got a dump. > > Signed-off-by: Kassey Li > --- > 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, " "), >