Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2012 09:31:19 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Attilio Rao <attilio@FreeBSD.org>
Cc:        marcel@FreeBSD.org, Eitan Adler <eadler@FreeBSD.org>, svn-src-all@FreeBSD.org, "Kenneth D. Merry" <ken@FreeBSD.org>, Andriy Gapon <avg@FreeBSD.org>, src-committers@FreeBSD.org, Bruce Evans <brde@optusnet.com.au>, svn-src-head@FreeBSD.org, Julian Elischer <julian@FreeBSD.org>
Subject:   Re: svn commit: r231814 - in head/sys: kern sys
Message-ID:  <8926DEE3-9779-464D-A7CA-B67F544763D4@xcllnt.net>
In-Reply-To: <CAJ-FndBh0n7vRY2XwOV-6_RL_dF41P8tzPJZmmA3MwLorwjFRw@mail.gmail.com>
References:  <201202160511.q1G5BZNk099785@svn.freebsd.org> <20120216181210.K1423@besplex.bde.org> <4F3CC40D.4000307@freebsd.org> <4F3CC5C4.7020501@FreeBSD.org> <4F3CC8A5.3030107@FreeBSD.org> <20120216174758.GA64180@nargothrond.kdm.org> <20120217053341.R1256@besplex.bde.org> <20120217000846.GA7641@nargothrond.kdm.org> <4F3D9D03.6020507@FreeBSD.org> <9CB7ECE8-FF10-43BE-9EBD-16953BE3B193@xcllnt.net> <CAJ-FndBh0n7vRY2XwOV-6_RL_dF41P8tzPJZmmA3MwLorwjFRw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Feb 17, 2012, at 1:09 AM, Attilio Rao wrote:
>> 
>> The message buffer does not have to be a chunk of memory that
>> we circularly scribble to. It can be a per-cpu linked list of
>> messages even.
> 
> Do you think we could inherit much of the code from KTR subsystem?
> We could use KTR as a scheleton (and possibly improving it) for making
> a general circular-buffer and then create a new KPI, thus add
> implementations for KTR, msgbuf, etc.

Aaah... I like your thinking. See also my response to pjd@.
If printf becomes a wrapper around a log infrastructure, then
ktr could potentially be a log of some "high" verbosity or
even some specific facility (or however we can augment messages
to make filtering and distribution easy and flexible).

I like that. Fewer ways to do fundamentally the same thing is
good. Not to mention that if our printf/log function has the
strength to handle KTR functionality, we also open the door
for getting those KTR messages pushed out of the kernel and
into some analysis or monitoring tool... Watch the events as
they happen...

-- 
Marcel Moolenaar
marcel@xcllnt.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8926DEE3-9779-464D-A7CA-B67F544763D4>