chiark / gitweb /
systemd: record the timestamps as early as possible
authorHarald Hoyer <harald@redhat.com>
Wed, 24 Apr 2013 15:15:47 +0000 (17:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 25 Apr 2013 07:13:05 +0000 (09:13 +0200)
commitc3a170f3d3358135a39ac6eafe66f18aef0bd67d
tree75d9f5903de83379d6f76e675764dfd7e37ba673
parentd6dd604b551987b411ec8930c23bd5c9c93ef864
systemd: record the timestamps as early as possible

The time for systemd initialization and selinux policy loading
is accounted to the initrd or the kernel, which is wrong.

Instead of:

Startup finished in 5.559s (firmware) + 36ms (loader) + 665ms (kernel) +
975ms (initrd) + 1.410s (userspace) = 8.647s

the more correct output is:

Startup finished in 5.559s (firmware) + 36ms (loader) + 665ms (kernel) +
475ms (initrd) + 1.910s (userspace) = 8.647s
src/core/main.c
src/core/manager.c