socsvn commit: r238343 - in soc2012/gmiller/locking-head: . lib/libwitness

gmiller at FreeBSD.org gmiller at FreeBSD.org
Tue Jun 26 17:10:16 UTC 2012


Author: gmiller
Date: Tue Jun 26 17:10:14 2012
New Revision: 238343
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238343

Log:
   r238275 at FreeBSD-dev:  root | 2012-06-19 17:30:54 -0500
   Begin adding libwitness code.

Added:
  soc2012/gmiller/locking-head/lib/libwitness/graph.c
  soc2012/gmiller/locking-head/lib/libwitness/graph.h
  soc2012/gmiller/locking-head/lib/libwitness/lists.c
Modified:
  soc2012/gmiller/locking-head/   (props changed)
  soc2012/gmiller/locking-head/lib/libwitness/Makefile

Modified: soc2012/gmiller/locking-head/lib/libwitness/Makefile
==============================================================================
--- soc2012/gmiller/locking-head/lib/libwitness/Makefile	Tue Jun 26 17:05:11 2012	(r238342)
+++ soc2012/gmiller/locking-head/lib/libwitness/Makefile	Tue Jun 26 17:10:14 2012	(r238343)
@@ -4,7 +4,7 @@
 
 LIB=		witness
 SHLIB_MAJOR=	1
-SRCS=		wrappers.c
+SRCS=		wrappers.c graph.c lists.c
 DPADD=		${LIBTHR}
 LDADD=		-lthr
 

Added: soc2012/gmiller/locking-head/lib/libwitness/graph.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/gmiller/locking-head/lib/libwitness/graph.c	Tue Jun 26 17:10:14 2012	(r238343)
@@ -0,0 +1,9 @@
+
+#include "graph.h"
+
+int
+insert_edge(struct graph_node *from, struct graph_node *to)
+{
+	from = from; to = to;
+	return 0;
+}

Added: soc2012/gmiller/locking-head/lib/libwitness/graph.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/gmiller/locking-head/lib/libwitness/graph.h	Tue Jun 26 17:10:14 2012	(r238343)
@@ -0,0 +1,5 @@
+
+struct graph_node {
+};
+
+int	insert_edge(struct graph_node *from, struct graph_node *to);

Added: soc2012/gmiller/locking-head/lib/libwitness/lists.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/gmiller/locking-head/lib/libwitness/lists.c	Tue Jun 26 17:10:14 2012	(r238343)
@@ -0,0 +1,25 @@
+
+SLIST_HEAD(lock_lists_head, lock_lists_next) lock_lists_head =
+    SLIST_HEAD_INITIALIZER(lock_lists_head);
+
+static struct lock_list *
+get_lock_list()
+{
+	return NULL;
+}
+
+void
+add_lock(void *lock)
+{
+	struct lock_list *lock_list;
+
+	lock_list = get_lock_list();
+}
+
+void
+remove_lock(void *lock)
+{
+	struct lock_list *lock_list;
+
+	lock_list = get_lock_list();
+}


More information about the svn-soc-all mailing list