Re: [RFC PATCH tip 0/5] tracing filters with BPF

From: Andi Kleen
Date: Thu Dec 05 2013 - 19:15:19 EST


> 1M skb alloc/free 185660 (usecs)
>
> the difference is bigger now: 484-145 vs 185-145

Thanks for the data.

This is a obvious improvement, but imho not big enough to be extremely
compelling (< cost 1-2 cache misses, no orders of magnitude improvements
that would justify a lot of code)

One larger problem I have with your patchkit is where exactly it fits
with the user base.

In my experience there are roughly two groups of trace users:
kernel hackers and users. The kernel hackers want something
convenient and fast, but for anything complicated or performance
critical they can always hack the kernel to include custom
instrumentation.

Your code requires a compiler, so from my perspective it
wouldn't be a lot easier or faster to use than just changing
the code directly and recompile.

The users want something simple too that shields them from
having to learn all the internals. They don't want to recompile.
As far as I can tell your code is a bit too low level for that,
and the requirement for the compiler may also scare them.

Where exactly does it fit?

-Andi

--
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/