From 2cda5f46cba978e19590efd7fee0b3075f8eb8df Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 23 May 2008 20:35:55 -0700 Subject: Add prototypes for using the 2.6.26 probe_kernel_* functions. For now, the autoconf for the new code is disabled, because it shows poorer performance than our existing dereferencing functions. This is probably because ours get inlined and optimized. The code is being committed so that we may re-evaluate its usefulness in the future. This addresses bugzilla 6432. --- runtime/autoconf-probe-kernel.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 runtime/autoconf-probe-kernel.c (limited to 'runtime/autoconf-probe-kernel.c') diff --git a/runtime/autoconf-probe-kernel.c b/runtime/autoconf-probe-kernel.c new file mode 100644 index 00000000..93fbaae6 --- /dev/null +++ b/runtime/autoconf-probe-kernel.c @@ -0,0 +1,7 @@ +#include + +void probe_kernel(void *dst, void *src, size_t size) +{ + (void)probe_kernel_read(dst, src, size); + (void)probe_kernel_write(dst, src, size); +} -- cgit