Re: [RFC][PATCH] tracing/module: Move tracepoint out of module.h

From: Steven Rostedt
Date: Tue Jan 31 2012 - 07:50:30 EST


On Tue, 2012-01-31 at 13:20 +0100, Ingo Molnar wrote:

> > Saves only 400 bytes of text here, but I don't do preempt or
> > tracepoints.
>
> Most distro kernels do tracepoints so I guess that's where the
> size delta comes from :-) In any case:

Yes, having tracepoints inlined causes a lot of bloat. But I still did
get a 1799 bytes savings between moving the tracepoint out of line but
keeping the if, and totally moving the entire functions out of line. Not
sure what the discrepancy was there.

My last set of numbers came from the default 3.0.0 Debian config, which
probably adds more things that call these functions into the kernel
proper?

But anway, I think this bike shed is complete ;-)

>
> Acked-by: Ingo Molnar <mingo@xxxxxxx>

Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve


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