fix syscall table
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Nov 2006 03:15:26 +0000 (03:15 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 9 Nov 2006 03:15:26 +0000 (03:15 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2237 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/doc/developer/xen-port.txt
ltt/branches/poly/lttv/lttv/state.c

index d3b9f35a0ec5e2ed713ff8402e7a1aec133ed733..db97c82d88d778c39580d563796f1fb5e60b9661 100644 (file)
@@ -23,7 +23,7 @@
 AC_PREREQ(2.57)
 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
 #AC_WITH_LTDL  # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.69-27102006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.70-08112006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index e91babe34db75766c1a79bc19d825d216ec9ea6e..a7218e3d737a8297f8a5f0be12d0ce6528758abe 100644 (file)
@@ -106,3 +106,41 @@ get_info :
 tb_control that returns a fresh copy of trace control info.
 
 
+
+NOTE 8-11-2006
+
+Xen 3.0.3
+Only one init of buffers (cannot change buffer size)
+tbc->buffer_mfn = opt_tbuf_size ? virt_to_mfn(per_cpu(t_bufs, 0)) : 0;
+/* Convert between Xen-heap virtual addresses and machine frame numbers. */
+#define virt_to_mfn(va)     (virt_to_maddr(va) >> PAGE_SHIFT)
+
+struct t_buf *tbufs_mapped;
+
+    tbufs_mapped = xc_map_foreign_range(xc_handle, DOMID_XEN,
+                                        size * num, PROT_READ | PROT_WRITE,
+                                        tbufs_mfn);
+
+int fd = open("/proc/xen/privcmd", O_RDWR);
+
+/* sleep for this long (milliseconds) between checking the trace buffers */
+#define POLL_SLEEP_MILLIS 100
+
+
+netfront.c
+xenbus_alloc_evtchn
+bind_evtchn_to_irqhandler
+
+
+virq :
+
+include/public/xen.h VIRQ_TBUF
+                       /* G. (DOM0) Trace buffer has records available. */
+
+trace_notify_guest : send_guest_global_virq(dom0, VIRQ_TBUF);
+
+see arch/i386/oprofile/xenoprof.c
+bind_virq
+
+
+
index e88db8cded15b83fbb62febe77b72124e42f36ac..6aae5ad9e6658c7655d4a7f6e5b7f2824b67953c 100644 (file)
@@ -1415,6 +1415,12 @@ create_name_tables(LttvTraceState *tcs)
 
     for(i = 0 ; i < nb ; i++) {
       name_tables->syscall_names[i] = ltt_enum_string_get(t, i);
+      if(!name_tables->syscall_names[i]) {
+        GString *string = g_string_new("");
+        g_string_printf(string, "syscall %u", i);
+        name_tables->syscall_names[i] = g_quark_from_string(string->str);
+        g_string_free(string, TRUE);
+      }
     }
 
     //name_tables->syscall_names = g_new(GQuark, 256);
This page took 0.027885 seconds and 4 git commands to generate.