From owner-freebsd-arch Tue Aug 20 4:38:53 2002 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 A741737B400 for ; Tue, 20 Aug 2002 04:38:51 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBF3943E75 for ; Tue, 20 Aug 2002 04:38:50 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g7KBZMRo024057; Tue, 20 Aug 2002 13:35:37 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Alexander Leidinger Cc: arch@FreeBSD.ORG Subject: Re: timestamping kernel messages In-Reply-To: Your message of "Tue, 20 Aug 2002 13:32:15 +0200." <20020820133215.0545063d.Alexander@Leidinger.net> Date: Tue, 20 Aug 2002 13:35:22 +0200 Message-ID: <24056.1029843322@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20020820133215.0545063d.Alexander@Leidinger.net>, Alexander Leidinger wr ites: >Hi, > >what do you think about using timestamps in kernel messages? > >Long: >I think it would be useful to have timestamps in kernel warnings, e.g. >(sa0:ahc0:0:1:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to clear this state >should be prefixed by a timestamp to be able to determine the importance >of messages / make it easier to correlate this messages with other >events just by looking at the console. I think we need to revamp the console/logging system in toto. I think we should have a pseudo-device for console/log use, which stores thing in a circular buffer. Syslogd would then retreive stuff from that buffer, somewhat like what it does today. For tty console usage, we should have a kernel thread which picks things out of the buffer and prints it on the chosen console, and putting a timestamp on it would be a Good Thing. This would also give us a good architecture for hooking up ethernet consoles. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message