Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 16:38:05 -0800
From:      Adrian Chadd <adrian.chadd@gmail.com>
To:        Jordan Hubbard <jkh@mail.turbofuzz.com>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: RFC: DTrace probes for debugging or testing in userland programs
Message-ID:  <CAJ-Vmoncp%2BqT97ipfn02S%2BAx%2BNkze8kX3E2=9Hf7dykZzz2X0w@mail.gmail.com>
In-Reply-To: <C2625566-4A75-42B3-B60F-3FF079AAAD8B@mail.turbofuzz.com>
References:  <20161220.043646.1181938468712455328.hrs@allbsd.org> <CAJ-Vmon3%2BjMyfgBcVORyMoXX3JEAFCWtK2VPo9wWLN2hsS%2BrNA@mail.gmail.com> <C2625566-4A75-42B3-B60F-3FF079AAAD8B@mail.turbofuzz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 December 2016 at 16:04, Jordan Hubbard <jkh@mail.turbofuzz.com> wrote=
:
>
> On Dec 19, 2016, at 12:27 PM, Adrian Chadd <adrian.chadd@gmail.com> wrote=
:
>
> So although I like the sentiment, I don't think using dtrace for
> program logging is the right answer.  I like what apple did to wrap
> the program logging stuff so people didn't just write their own
> libraries (hi!) and so there's a unified-ish way to interact with
> apple programs. I think we could do with that.
>
>
> Thanks!
>
> We did a number of other things with ASL (Apple System Logger) which I mi=
ss
> very much today and would hope to see in any FreeBSD equivalent:
>
> 1. We structured all log data into dictionaries, so every application and=
/or
> subsystem within that application can add its own =E2=80=9Ctags=E2=80=9D =
without squashing
> other key information.  This also unified the character encoding format, =
so
> some applications were no longer logging in ISO-Latin1, others in UTF-8 a=
nd
> yet others in SHIFT-JIS.
>
> 2.  There=E2=80=99s also a logging database, as one of the many possible =
=E2=80=9Coutput
> sinks=E2=80=9D, so searches / queries are fast (and there=E2=80=99s an AP=
I for querying and
> managing its contents).
>
> 3. We added client-side and server side logging filters, so you can =E2=
=80=9Ccrank
> an application up=E2=80=9D or shut its mouth without having to make any c=
ode
> changes.
>
> 4. It=E2=80=99s all thread-safe.

Hm. Where's the ASL source hiding? I'm kinda hoping it's light weight
enough to port over without porting a lot of other stuff, but I am
also afraid it's Apple.. :)



-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmoncp%2BqT97ipfn02S%2BAx%2BNkze8kX3E2=9Hf7dykZzz2X0w>