简体   繁体   中英

Recording and charting boot process information in Linux

I need to write a command line tool that records the boot process information in Linux, and then renders it in a chart format (a textual chart would do). How do I programmatically obtain the this boot process information? Languages that I am allowed to use are C and C++.

Thanks in advance. :-)

Doesn't [link text][1] pretty much already do this? Or do you need to write an initlog replacement?

I don't know what kind of "chart" you would make from such data, but have a look at gnuplot to help you with that part.

edit: I had the wrong tool mentioned originally.

[1]: http://linux.about.com/library/cmd/blcmdl1_initlog.htm initlog

您可以看一下bootchart http://www.bootchart.org/ ,它似乎已经完全可以满足您的要求。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM