From owner-svn-soc-all@FreeBSD.ORG Tue Jun 26 17:10:16 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 48FD8106566B for ; Tue, 26 Jun 2012 17:10:14 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Tue, 26 Jun 2012 17:10:14 +0000 Date: Tue, 26 Jun 2012 17:10:14 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120626171014.48FD8106566B@hub.freebsd.org> Cc: Subject: socsvn commit: r238343 - in soc2012/gmiller/locking-head: . lib/libwitness X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 17:10:16 -0000 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@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(); +}