Re: [PATCH] IA64 audit support

From: Roman Zippel
Date: Mon Jul 05 2004 - 06:11:31 EST


Hi,

On Thu, 1 Jul 2004, Andrew Morton wrote:

> > This is probably one of the biggest misconception about LTT amongst kernel
> > developers. So let me present this once more: LTT is _NOT_ for kernel
> > developers, it has never been developed with this crowd in mind. LTT is and
> > has _ALWAYS_ been intended for the end user.
>
> Note I said "developer", not "kernel developer". If the audience for a
> feature is kernel developers, userspace developers and perhaps the most
> sophisticated sysadmins then that's a small audience. It's certainly an
> _important_ audience, but the feature is not as important as those
> codepaths which Uncle Tillie needs to run his applications.

And if one this applications misbehaves, he might want to know what is
actually going wrong. A tracing mechanism could tell him e.g. why xmms
sometimes stops and with the right visualization tools even an user with
basic technical knowledge could give some more precise feedback. You
wouldn't just get reports with "if I do X, the system feels weird".

I'd really like to see some tracing infrastructure in the kernel, as it's
also a very useful tool during kernel development, when trying to find
some weird problems or finding perfomance bottlenecks, where printk or
kgdb isn't much help.

> > The issues about the spread of trace points across the source code are
> > exactly the same, you still need to mark the code-paths (and maintain
> > these markings for each version) regardless of the mechanism being used.
>
> Nope, kprobes allows a kernel module to patch hooks into the running
> binary. That's all it does, really. See
> http://www-124.ibm.com/linux/projects/kprobes/

kprobes are a nice option, but it would be a nightmare (especially
regarding portability) if any project had to rely on them.
kprobes are already very complex conceptually, it may be a requirement to
debug a binary kernel, but otherwise some simple hooks are preferable.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/