Re: [PATCH 1/4] kmemcheck v4

2008-02-14 Thread Randy Dunlap
On Thu, 14 Feb 2008 20:59:46 +0100 Vegard Nossum wrote: > Greetings, > Just a few doc comments (below). > > From 0fcca4341b6b1b277d936558aa3cab0f212bad9b Mon Sep 17 00:00:00 2001 > From: Vegard Nossum <[EMAIL PROTECTED]> > Date: Thu, 14 Feb 2008 19:10:40 +0100 > Subject: [PATCH] kmemcheck: ad

Re: [PATCH 1/4] kmemcheck v4

2008-02-14 Thread Pekka Enberg
Vegard Nossum wrote: +DEFINE_PER_CPU(bool, kmemcheck_busy) = false; +DEFINE_PER_CPU(uint32_t, kmemcheck_addr1) = 0; +DEFINE_PER_CPU(uint32_t, kmemcheck_addr2) = 0; +DEFINE_PER_CPU(uint32_t, kmemcheck_reg_flags) = 0; + +DEFINE_PER_CPU(int, kmemcheck_num) = 0; +DEFINE_PER_CPU(int, kmemcheck_balanc

[PATCH 1/4] kmemcheck v4

2008-02-14 Thread Vegard Nossum
Greetings, I post the fourth revision of kmemcheck. It seems that we are slowly converging towards something usable :-) General description: kmemcheck is a patch to the linux kernel that detects use of uninitialized memory. It does this by trapping every read and write to memory that was allocat