From owner-freebsd-arch@FreeBSD.ORG Thu Jun 19 01:19:33 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F78D37B404; Thu, 19 Jun 2003 01:19:33 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 542D743F3F; Thu, 19 Jun 2003 01:19:32 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 49FD8530F; Thu, 19 Jun 2003 10:19:30 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Garance A Drosihn References: From: Dag-Erling Smorgrav Date: Thu, 19 Jun 2003 10:19:30 +0200 In-Reply-To: (Garance A. Drosihn's message of "Thu, 19 Jun 2003 01:01:15 -0400") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: arch@freebsd.org cc: Poul-Henning Kamp cc: Robert Watson Subject: Re: marking normal sleep identifiers as such. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 08:19:34 -0000 Garance A Drosihn writes: > Long ago and in an operating-system far away (and which is not > running anywhere now), we had a similar problem. We ended up > adding a mechanism here the sleeper could specify a character > string which would show up in our equivalent of 'ps'. This > was implemented by having one hardware register which held the > address of the string to display. > > Perhaps something similar could be done in freebsd. You mean like this? des@meali ~% ps -opid,mwchan,command PID MWCHAN COMMAND 7761 pause -zsh (zsh) 16447 select ssh mikrobe 79090 pause -zsh (zsh) 41402 select ssh flood.ping.uio.no 41403 select ssh flood.ping.uio.no 80739 pause -zsh (zsh) 7801 ttyin -zsh (zsh) 41672 select /usr/local/bin/emacs -geometry 90x56-0+0 44723 ttyin -zsh (zsh) 92780 ttyin -zsh (zsh) 2316 select xscreensaver 3767 ttyin -zsh (zsh) 2711 ttyin -zsh (zsh) 15511 ttyin -zsh (zsh) 19014 pause -zsh (zsh) 19033 - ps -opid,mwchan,command DES -- Dag-Erling Smorgrav - des@ofug.org