lkml.org 
[lkml]   [2007]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] Add CRC checksum for RCU lists
On Thu, 20 Sep 2007 14:34:11 -0400 Steven Rostedt <rostedt@goodmis.org>
wrote:


> +static inline void rcu_crc_check(struct rcu_head *head)
> +{
> + static int once;
> + if (unlikely(head->crc != rcu_crc_calc(head)) && !once) {
> + once++;
> + printk("BUG: RCU check failed!");
> + if (head->caller)
> + printk(" (caller=%p)",
> + head->caller);

char sym[KSYM_SYMBOL_LEN];
sprint_symbol(sym, head->caller);
printk(" (caller: [<%p>] %s)", head->caller, sym);

> + printk("\n");
> + printk(" CRC was %08lx, expected %08lx\n",
> + head->crc, rcu_crc_calc(head));
> + printk(" %p %p\n",
> + head->next, head->func);
> + dump_stack();
> + }
> +}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-21 14:05    [W:0.057 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site