]> git.karo-electronics.de Git - linux-beck.git/commit
x86, perf, bts, mm: Delete the never used BTS-ptrace code
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 25 Mar 2010 13:51:50 +0000 (14:51 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Mar 2010 10:33:55 +0000 (11:33 +0100)
commitfaa4602e47690fb11221e00f9b9697c8dc0d4b19
treeaf667d1cdff7dc63b6893ee3f27a1f2503229ed1
parent7c5ecaf7666617889f337296c610815b519abfa9
x86, perf, bts, mm: Delete the never used BTS-ptrace code

Support for the PMU's BTS features has been upstreamed in
v2.6.32, but we still have the old and disabled ptrace-BTS,
as Linus noticed it not so long ago.

It's buggy: TIF_DEBUGCTLMSR is trampling all over that MSR without
regard for other uses (perf) and doesn't provide the flexibility
needed for perf either.

Its users are ptrace-block-step and ptrace-bts, since ptrace-bts
was never used and ptrace-block-step can be implemented using a
much simpler approach.

So axe all 3000 lines of it. That includes the *locked_memory*()
APIs in mm/mlock.c as well.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Markus Metzger <markus.t.metzger@intel.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <20100325135413.938004390@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
34 files changed:
arch/x86/Kconfig.cpu
arch/x86/Kconfig.debug
arch/x86/include/asm/ds.h [deleted file]
arch/x86/include/asm/processor.h
arch/x86/include/asm/ptrace-abi.h
arch/x86/include/asm/ptrace.h
arch/x86/include/asm/thread_info.h
arch/x86/kernel/Makefile
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/ds.c [deleted file]
arch/x86/kernel/ds_selftest.c [deleted file]
arch/x86/kernel/ds_selftest.h [deleted file]
arch/x86/kernel/dumpstack.c
arch/x86/kernel/kprobes.c
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/ptrace.c
arch/x86/kernel/step.c
arch/x86/kernel/traps.c
include/linux/ftrace.h
include/linux/mm.h
include/linux/ptrace.h
include/linux/sched.h
kernel/fork.c
kernel/ptrace.c
kernel/sched.c
kernel/trace/Kconfig
kernel/trace/Makefile
kernel/trace/trace.h
kernel/trace/trace_entries.h
kernel/trace/trace_hw_branches.c [deleted file]
kernel/trace/trace_selftest.c
mm/mlock.c