chiark / gitweb /
bootchart: put the bootchart into the journal.
authorAuke Kok <auke-jan.h.kok@intel.com>
Mon, 15 Apr 2013 23:23:42 +0000 (16:23 -0700)
committerAuke Kok <auke-jan.h.kok@intel.com>
Mon, 15 Apr 2013 23:28:41 +0000 (16:28 -0700)
commitc4d58b0b6d238b955ece39a9dd9d3ca84b3408f3
tree6cdaa29de380c94bb38c3778a5b3c49a26da1f17
parent8ad802ec3539142e2b1bf06ae8257b302630c184
bootchart: put the bootchart into the journal.

This bit of code is mostly stolen from coredump.c. We construct
a simple journal message and append the bootchart file in the
journal automatically.

You can extract the latest bootchart from the current boot with
something like:

$ journalctl -b MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518 --field=BOOTCHART

which prints it to stdout.

None of the other logic is touched. The journal entry is created
even if bootchart was run manually, which is probably wrong.
Makefile.am
src/bootchart/bootchart.c