ports/64635: New port: sysutils/hourglass a real-time application to learn >how CPU scheduling works

Olivier Tharan olive at oban.frmug.org
Tue Mar 23 21:40:07 UTC 2004


>Number:         64635
>Category:       ports
>Synopsis:       New port: sysutils/hourglass a real-time application to learn >how CPU scheduling works
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 13:40:06 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Tharan
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD mafate.sis.pasteur.fr 4.9-STABLE FreeBSD 4.9-STABLE #16: Wed Mar 17 19:00:27 CET 2004 root at mafate.sis.pasteur.fr:/usr/obj/usr/src/sys/MAFATE i386


	
>Description:
Make a new port for hourglass, as requested by David O'Brien.

This port is a real-time application that can be used to learn how CPU
scheduling in a general-purpose operating system works at microsecond and
millisecond granularities.

Tested it on 4-STABLE and 5.2.1-RELEASE.
portlint -CN and portlint -abvt ok!

I don't knwo how it performs with the thread library on -CURRENT (one strange
thing is the dependance on linuxthreads!), so there may be some things to
check here (I will be happy to integrate them).
>How-To-Repeat:
This is a new port
>Fix:
--- hourglass.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hourglass/
#	hourglass/distinfo
#	hourglass/Makefile
#	hourglass/pkg-descr
#	hourglass/pkg-plist
#
echo c - hourglass/
mkdir -p hourglass/ > /dev/null 2>&1
echo x - hourglass/distinfo
sed 's/^X//' >hourglass/distinfo << 'END-of-hourglass/distinfo'
XMD5 (hourglass-1.0.0.tar.gz) = a282877889bddd3307e7ef7674f32415
XSIZE (hourglass-1.0.0.tar.gz) = 112374
END-of-hourglass/distinfo
echo x - hourglass/Makefile
sed 's/^X//' >hourglass/Makefile << 'END-of-hourglass/Makefile'
X# New ports collection makefile for:	hourglass
X# Date created:		23 March 2004
X# Whom:			olive
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hourglass
XPORTVERSION=	1.0.0
XCATEGORIES=	sysutils parallel
XMASTER_SITES=	http://www.cs.utah.edu/~regehr/hourglass/
X
XMAINTAINER=	olive at oban.frmug.org
XCOMMENT=	A real-time application useful to learn how CPU scheduling works
X
X.include <bsd.port.pre.mk>
X
XLIB_DEPENDS=	lthread.2:${PORTSDIR}/devel/linuxthreads
X
X.if ${OSVERSION} >= 500035
XLIB_DEPENDS=	lthread.3:${PORTSDIR}/devel/linuxthreads
X.endif
X
XRUN_DEPENDS=	jgraph:${PORTSDIR}/graphics/jgraph
X
XHAS_CONFIGURE=	yes
X
X.include <bsd.port.post.mk>
END-of-hourglass/Makefile
echo x - hourglass/pkg-descr
sed 's/^X//' >hourglass/pkg-descr << 'END-of-hourglass/pkg-descr'
XThis is a port of hourglass, a synthetic real-time application that
Xcan be used to learn how CPU scheduling in a general-purpose operating
Xsystem works at microsecond and millisecond granularities.
X
X- It creates very detailed map of when each Hourglass thread has
X  access to the CPU
X
X- It supports multiple thread execution models; e.g. periodic and
X  CPU-bound
X
X- It acts as an abstraction layer for threading, timing, and CPU
X  scheduling functionality on Unix- and Win32-based systems
X
XWWW: http://www.cs.utah.edu/~regehr/hourglass/
X
X- Olivier Tharan
Xolive at oban.frmug.org
END-of-hourglass/pkg-descr
echo x - hourglass/pkg-plist
sed 's/^X//' >hourglass/pkg-plist << 'END-of-hourglass/pkg-plist'
Xbin/busy
Xbin/hourglass
END-of-hourglass/pkg-plist
exit
--- hourglass.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list