lkml.org 
[lkml]   [2012]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] hrtimer: Printing timer info when hitting BUG_ON()
From
Date
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 ?


\
 
 \ /
  Last update: 2012-10-29 11:01    [W:0.040 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site