It seems that the perf_counter_open system call was renamed to
authortom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Wed, 8 Jun 2011 09:10:40 +0000 (09:10 +0000)
committertom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Wed, 8 Jun 2011 09:10:40 +0000 (09:10 +0000)
commitc8232f94b88c0b9ea62399fa5abe5a5a34d35c40
treef95b522aba5549428e95671ef186f9aa1fd6872c
parentb0473e965b531ad8497bcae50f47c0c7e6a4fd9a
It seems that the perf_counter_open system call was renamed to
perf_event_open some time after we added it, so correct the name
wherever it appears to match the current kernel source.

Also fixup the PRE handler to do the check correctly, using the
size field of the structure to work out how much data there is.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11804 a5019735-40e9-0310-863c-91ae7b9d1cf9
coregrind/m_syswrap/priv_syswrap-linux.h
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
include/vki/vki-linux.h
include/vki/vki-scnums-amd64-linux.h
include/vki/vki-scnums-ppc32-linux.h
include/vki/vki-scnums-ppc64-linux.h
include/vki/vki-scnums-x86-linux.h