summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-31 18:09:52 +0000
committerhunt <hunt>2005-08-31 18:09:52 +0000
commita6c632f50fdaf53107dbf3e89a875c3f71e0fca5 (patch)
treebae038c6926a56a98403d54e3f350d6b4215e5e8 /runtime
parentb4ee3f928bfe97666d987bcaddd926c51132e3d6 (diff)
downloadsystemtap-steved-a6c632f50fdaf53107dbf3e89a875c3f71e0fca5.tar.gz
systemtap-steved-a6c632f50fdaf53107dbf3e89a875c3f71e0fca5.tar.xz
systemtap-steved-a6c632f50fdaf53107dbf3e89a875c3f71e0fca5.zip
2005-08-31 Martin Hunt <hunt@redhat.com>
* emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup. * runtime.h: Add prototype for exit(); * copy.c: New file. Just some empty functions.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/user/ChangeLog6
-rw-r--r--runtime/user/copy.c7
-rw-r--r--runtime/user/emul.h4
-rw-r--r--runtime/user/runtime.h3
4 files changed, 17 insertions, 3 deletions
diff --git a/runtime/user/ChangeLog b/runtime/user/ChangeLog
index 227fe966..357bb422 100644
--- a/runtime/user/ChangeLog
+++ b/runtime/user/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-31 Martin Hunt <hunt@redhat.com>
+
+ * emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup.
+ * runtime.h: Add prototype for exit();
+ * copy.c: New file. Just some empty functions.
+
2005-08-19 Martin Hunt <hunt@redhat.com>
* runtime.h: Include io.c.
diff --git a/runtime/user/copy.c b/runtime/user/copy.c
new file mode 100644
index 00000000..2186aa59
--- /dev/null
+++ b/runtime/user/copy.c
@@ -0,0 +1,7 @@
+long
+_stp_strncpy_from_user(char *dst, const char __user *src, long count)
+{
+ return 0;
+}
+
+void __get_user_4(void) {};
diff --git a/runtime/user/emul.h b/runtime/user/emul.h
index 4b029b39..2821e8ac 100644
--- a/runtime/user/emul.h
+++ b/runtime/user/emul.h
@@ -62,9 +62,7 @@ free_percpu(const void *objp)
unsigned long strtoul(const char *nptr, char **endptr, int base);
#define simple_strtoul strtoul
-#define KALLSYMS_LOOKUP kallsyms_lookup
-
-const char *kallsyms_lookup (unsigned long addr,
+const char *_stp_kallsyms_lookup (unsigned long addr,
unsigned long *symbolsize,
unsigned long *offset,
char **modname,
diff --git a/runtime/user/runtime.h b/runtime/user/runtime.h
index 9d098fc7..1d6d5307 100644
--- a/runtime/user/runtime.h
+++ b/runtime/user/runtime.h
@@ -24,6 +24,7 @@
#include <linux/kallsyms.h>
#include <linux/percpu.h>
+
#ifdef DEBUG
#define dbug(args...) \
{ \
@@ -39,6 +40,8 @@
#undef memcpy
#define memcpy __builtin_memcpy
+void exit(int status);
+
#define NEED_STAT_LOCKS 0
#define NEED_COUNTER_LOCKS 0