]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86, bts: memory accounting
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 19 Dec 2008 14:17:02 +0000 (15:17 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 20 Dec 2008 08:15:47 +0000 (09:15 +0100)
commitc5dee6177f4bd2095aab7d9be9f6ebdddd6deee9
treefb980dcfc3d3e6f04d4dcef488c370ca653434da
parentbf53de907dfdaac178c92d774aae7370d7b97d20
x86, bts: memory accounting

Impact: move the BTS buffer accounting to the mlock bucket

Add alloc_locked_buffer() and free_locked_buffer() functions to mm/mlock.c
to kalloc a buffer and account the locked memory to current.

Account the memory for the BTS buffer to the tracer.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ptrace.c
include/linux/mm.h
mm/mlock.c