Re: Measuring startup-time from userspace

From: Ben Gamari
Date: Sun Jan 02 2011 - 20:29:55 EST


On Sun, 02 Jan 2011 14:40:48 -0800, Taras Glek <tglek@xxxxxxxxxxx> wrote:
> The question is, there way for a process to measure time-since-startup
> without horrible hacks like spawning a new processes?
>
Would you consider an LD_PRELOAD library to fall into the "hack"
category? I'm not sure when .init section is executed, but it might be
substantially earlier than when _start() is called.

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