diff options
-rw-r--r-- | runtime/user/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/user/copy.c | 7 | ||||
-rw-r--r-- | runtime/user/emul.h | 4 | ||||
-rw-r--r-- | runtime/user/runtime.h | 3 |
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 |