]> sourceware.org Git - systemtap.git/commitdiff
*** empty log message ***
authorhunt <hunt>
Tue, 31 May 2005 19:58:29 +0000 (19:58 +0000)
committerhunt <hunt>
Tue, 31 May 2005 19:58:29 +0000 (19:58 +0000)
runtime/user/emul.h
runtime/user/recreate_links

index d6f0853e301b2889e38e7a53178226ca4ea5866b..3086a66619ae19e89e2e1fda89f35464c44841f6 100644 (file)
@@ -14,3 +14,19 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
 #include <stdarg.h>
 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,
+                            unsigned long *symbolsize,
+                            unsigned long *offset,
+                            char **modname, 
+                            char *namebuf)
+{
+  static char buf[32];
+  sprintf (namebuf, "foobar");
+  sprintf (buf, "foobar_mod");
+  *offset = 1;
+  modname = (char **)&buf;
+  return namebuf;
+}
index 080654e942f555861e29766da0fe8b23a0d7b786..7b2f58d76ff06384a77039161c5c964f14c62aad 100755 (executable)
@@ -6,3 +6,4 @@ ln -s ../map-values.c .
 ln -s ../map-keys.c .
 ln -s ../list.c .
 ln -s ../string.c .
+ln -s ../sym.c .
This page took 0.028858 seconds and 5 git commands to generate.