[perfmon2] [PATCH percpu#for-next] percpu: clear memory allocated with the km allocator

2010-09-10 Thread Tejun Heo
Percpu allocator should clear memory before returning it but the km allocator forgot to do it. Fix it. Signed-off-by: Tejun Heo Spotted-by: Peter Zijlstra --- mm/percpu-km.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/mm/percpu-km.c b/mm/percpu-km.c index

[perfmon2] [PATCH] percpu: update comments to reflect that percpu allocations are always zero-filled

2010-09-10 Thread Tejun Heo
Signed-off-by: Tejun Heo Reported-by: Stephane Eranian --- mm/percpu.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index 0cd4bf6..12dea33 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -826,8 +826,8 @@ fail_unlock_mutex: * @size

Re: [perfmon2] [RFC PATCH 1/2] perf_events: add support for per-cpu per-cgroup monitoring (v3)

2010-09-10 Thread Tejun Heo
Hello, On 09/10/2010 10:16 AM, Peter Zijlstra wrote: > On Thu, 2010-09-09 at 23:41 +0200, Stephane Eranian wrote: >>> alloc_percpu() is zalloc_percpu() in fact, memory is already cleared. >>> >> I remember thinking about this and trying to trace to the code down >> to figure this out. But it is ra

Re: [perfmon2] [PATCH percpu#for-next] percpu: clear memory allocated with the km allocator

2010-09-10 Thread Tejun Heo
On 09/10/2010 06:45 PM, Ingo Molnar wrote: > > * Randy Dunlap wrote: > >> On Fri, 10 Sep 2010 10:55:18 +0200 Peter Zijlstra wrote: >> >>> On Fri, 2010-09-10 at 10:52 +0200, Tejun Heo wrote: >>>> Percpu allocator should clear memory before returning it