akaros.cs.berkeley.edu Git - akaros.git/rss - user/parlib/timing.c historyhttp://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=history;f=user/parlib/timing.c
AkarosenBarret Rhodenstatic/git-logo.pngakaros.cs.berkeley.edu Git - akaros.git/rss - user/parlib/timing.c historyhttp://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=history;f=user/parlib/timing.c
Thu, 11 Apr 2019 21:13:44 +0000Thu, 11 Apr 2019 21:13:44 +0000gitweb v.2.7.4/2.7.4parlib: have 2LS libraries #include parlib/stdio.hBarret Rhoden <brho@cs.berkeley.edu>Thu, 11 Apr 2019 21:06:06 +0000http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=ba3acab96e99ff6c3cd2dd5d147928be927a4ceehttp://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=ba3acab96e99ff6c3cd2dd5d147928be927a4cee
parlib: have 2LS libraries #include parlib/stdio.h
parlib: have 2LS libraries #include parlib/stdio.h
For painful reasons, if you call any functions related to printf from
vcore context or from a uthread with notifs disabled, you need to use
our special fprintf macros. You get those via parlib/stdio.h, which
also #includes the real stdio.h.
Most code that this could happen to come from parlib, pthread, or vmm.
This commit just changes all of their headers to include parlib/stdio.h.
This is far from the best approach, but it stops the bleeding.
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>

]]>
parlib: have delay functions return end time; add nsec call.Ronald G. Minnich <rminnich@gmail.com>Wed, 31 Aug 2016 22:28:07 +0000http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=c9e3a91ac6637fd965a8401c70a23e95f6f46f61http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=c9e3a91ac6637fd965a8401c70a23e95f6f46f61
parlib: have delay functions return end time; add nsec call.
parlib: have delay functions return end time; add nsec call.
Delay functions don't necessarily end right at the exact time
asked. Change udelay and ndelay to return the last read time in
microseconds and nanoseconds, respectively. A side effect is that
udelay(0) and ndelay(0) return approximate current time.
Add an nsec() call to return the current nanoseconds as a uint64_t.
While we're at it, have timing.c including timing.h so we can
be sure the prototypes match the function definitions.
And, finally, clang-format it.
Change-Id: I22b855ac055314a1846dc45f93378675104f13a4
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
[checkpatch touchup]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>

]]>
Add parlib/common.hBarret Rhoden <brho@cs.berkeley.edu>Tue, 18 Aug 2015 19:10:43 +0000http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=7388dc61a3e0ac8851ce9474e256fa544cbaef17http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=7388dc61a3e0ac8851ce9474e256fa544cbaef17
Add parlib/common.h
Add parlib/common.h
Wrapper for ros/common.h, plus it has a few things of its own. We need
to be somewhat careful about what goes in ros/common.h; I've had issues
in the past with things that aren't namespaced well that conflict with
various pieces of user-level software.

]]>
Changes user includes to <library/header.h> (XCC)Barret Rhoden <brho@cs.berkeley.edu>Thu, 18 Jun 2015 14:18:04 +0000http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=006063c63ba01abe859e9b342fd910587641393ehttp://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=006063c63ba01abe859e9b342fd910587641393e
Changes user includes to <library/header.h> (XCC)
Changes user includes to <library/header.h> (XCC)
This has been an option for a long time, due to the symlinks dropped in
the sysroot/usr/include during the user libs FINAL_INSTALL, but will be
mandatory soon.
Rebuild your toolchain.

]]>
Moves some timing func from benchutil to parlibBarret Rhoden <brho@cs.berkeley.edu>Thu, 17 Apr 2014 00:49:56 +0000http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=dd7547b8fc546ca65169707fd23277b2931782a0http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=commitdiff;h=dd7547b8fc546ca65169707fd23277b2931782a0
Moves some timing func from benchutil to parlib
Moves some timing func from benchutil to parlib
They don't need to be in benchutil, unlike the other benchutil functions
that use libm. Also, programs that want to use the simply timing
functions won't need to -lbenchutil (and -lm).