]> bbs.cooldavid.org Git - net-next-2.6.git/commit
perf: Don't use 4 bytes as a default instruction breakpoint length
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 19:36:19 +0000 (21:36 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 21:35:49 +0000 (23:35 +0200)
commitaa59a48596d8358a908bfb458300b5625cd47785
tree58ae30e731167f6bb9bf6d6ef6a42003bc0f054c
parentf7809daf64bf119fef70af172db6a0636fa51f92
perf: Don't use 4 bytes as a default instruction breakpoint length

4 bytes is fine as a default access for data breakpoints. But
instruction breakpoints should take the native pointer length,
otherwise we get a -EINVAL in x86-64.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Prasad <prasad@linux.vnet.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
tools/perf/util/parse-events.c