Module Name: src Committed By: christos Date: Mon Mar 30 12:47:49 UTC 2009
Modified Files: src/sys/rump/librump/rumpkern: emul.c Log Message: we want microuptime too. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/rump/librump/rumpkern/emul.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpkern/emul.c diff -u src/sys/rump/librump/rumpkern/emul.c:1.84 src/sys/rump/librump/rumpkern/emul.c:1.85 --- src/sys/rump/librump/rumpkern/emul.c:1.84 Sun Mar 29 22:01:09 2009 +++ src/sys/rump/librump/rumpkern/emul.c Mon Mar 30 08:47:49 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: emul.c,v 1.84 2009/03/30 02:01:09 christos Exp $ */ +/* $NetBSD: emul.c,v 1.85 2009/03/30 12:47:49 christos Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.84 2009/03/30 02:01:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.85 2009/03/30 12:47:49 christos Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -253,6 +253,18 @@ } void +getmicrouptime(struct timeval *tv) +{ + uint64_t sec, nsec; + int error; + + /* XXX: this is wrong, does not report *uptime* */ + rumpuser_gettime(&sec, &nsec, &error); + tv->tv_sec = sec; + tv->tv_usec = nsec / 1000; +} + +void malloc_type_attach(struct malloc_type *type) {