views:

54

answers:

2

Hello everyone.

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. :-)

+2  A: 

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

San Jacinto
Well, it's a homework assignment and I can't show an existing app to my professor. :-/
missingfaktor
Well, that app can help you do your homework
VJo
@VJo: Can you give some detailed information, please?
missingfaktor
Not really, but if that app does what you need, you could take a look at the code (if it is open)
VJo
+1  A: 

You could look at bootchart http://www.bootchart.org/ that seems to be something that already does exactly what you want.

Spudd86
This is a homework assignment. I can't show an existing app to my professor. :-/
missingfaktor
you could look at how it picks up the information couldn't you?
Spudd86