diff options
author | Josh Stone <joshua.i.stone@intel.com> | 2008-05-23 20:35:55 -0700 |
---|---|---|
committer | Josh Stone <joshua.i.stone@intel.com> | 2008-05-27 16:19:03 -0700 |
commit | 2cda5f46cba978e19590efd7fee0b3075f8eb8df (patch) | |
tree | d613226eb1fe124643018b5e4c45f7019df635ea /runtime/autoconf-probe-kernel.c | |
parent | a2eab6ee228991f3ebfa5f628857ec6c703c85d1 (diff) | |
download | systemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.tar.gz systemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.tar.xz systemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.zip |
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.
Diffstat (limited to 'runtime/autoconf-probe-kernel.c')
-rw-r--r-- | runtime/autoconf-probe-kernel.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <linux/uaccess.h> + +void probe_kernel(void *dst, void *src, size_t size) +{ + (void)probe_kernel_read(dst, src, size); + (void)probe_kernel_write(dst, src, size); +} |