lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 30 Oct 2012 04:55:59 +0000
From:	"Liu, Chuansheng" <chuansheng.liu@...el.com>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC:	"tglx@...utronix.de" <tglx@...utronix.de>,
	"mingo@...nel.org" <mingo@...nel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Li, Fei" <fei.li@...el.com>,
	"yanmin_zhang@...ux.intel.com" <yanmin_zhang@...ux.intel.com>
Subject: RE: [PATCH] hrtimer: Printing timer info when hitting BUG_ON()



> -----Original Message-----
> From: Peter Zijlstra [mailto:a.p.zijlstra@...llo.nl]
> Sent: Monday, October 29, 2012 5:06 PM
> To: Liu, Chuansheng
> Cc: tglx@...utronix.de; mingo@...nel.org; linux-kernel@...r.kernel.org; Li, Fei;
> yanmin_zhang@...ux.intel.com
> Subject: Re: [PATCH] hrtimer: Printing timer info when hitting BUG_ON()
> 
> On Mon, 2012-10-29 at 19:02 +0800, Chuansheng Liu wrote:
> > +/*
> > + * dump_hrtimer_callinfo - print hrtimer information including:
> > + * state, callback function, pid and start_site.
> > +*/
> > +static void dump_hrtimer_callinfo(struct hrtimer *timer)
> > +{
> > +
> > +       char symname[KSYM_NAME_LEN];
> > +
> > +       if (lookup_symbol_name((unsigned long)(timer->function),
> symname) < 0) {
> > +               pr_err("timer info: state/%lx, func/%pK\n",
> > +                       timer->state, timer->function);
> > +       } else {
> > +               pr_err("timer info: state/%lx, func/%s",
> > +                       timer->state, symname);
> > +       }
> > +
> > +#ifdef CONFIG_TIMER_STATS
> > +       if (lookup_symbol_name((unsigned long)(timer->start_site),
> > +                                               symname) < 0) {
> > +               pr_err("timer stats: pid/%d(%s), site/%pK\n",
> > +                       timer->start_pid, timer->start_comm,
> timer->start_site);
> > +       } else {
> > +               pr_err("timer stats: pid/%d(%s), site/%s\n",
> > +                       timer->start_pid, timer->start_comm,
> symname);
> > +       }
> > +#endif
> > +}
> 
> What's wrong with %pf ?
Thanks Peter's help and pointing out, patch V2 has been sent.
This patch helps us to find out the root cause quickly.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ