aboutsummaryrefslogtreecommitdiff
path: root/init/bootchartd.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/bootchartd.c')
-rw-r--r--init/bootchartd.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c
index d7d6f1483..b5dd17439 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -11,40 +11,40 @@
11//config: bool "bootchartd (10 kb)" 11//config: bool "bootchartd (10 kb)"
12//config: default y 12//config: default y
13//config: help 13//config: help
14//config: bootchartd is commonly used to profile the boot process 14//config: bootchartd is commonly used to profile the boot process
15//config: for the purpose of speeding it up. In this case, it is started 15//config: for the purpose of speeding it up. In this case, it is started
16//config: by the kernel as the init process. This is configured by adding 16//config: by the kernel as the init process. This is configured by adding
17//config: the init=/sbin/bootchartd option to the kernel command line. 17//config: the init=/sbin/bootchartd option to the kernel command line.
18//config: 18//config:
19//config: It can also be used to monitor the resource usage of a specific 19//config: It can also be used to monitor the resource usage of a specific
20//config: application or the running system in general. In this case, 20//config: application or the running system in general. In this case,
21//config: bootchartd is started interactively by running bootchartd start 21//config: bootchartd is started interactively by running bootchartd start
22//config: and stopped using bootchartd stop. 22//config: and stopped using bootchartd stop.
23//config: 23//config:
24//config:config FEATURE_BOOTCHARTD_BLOATED_HEADER 24//config:config FEATURE_BOOTCHARTD_BLOATED_HEADER
25//config: bool "Compatible, bloated header" 25//config: bool "Compatible, bloated header"
26//config: default y 26//config: default y
27//config: depends on BOOTCHARTD 27//config: depends on BOOTCHARTD
28//config: help 28//config: help
29//config: Create extended header file compatible with "big" bootchartd. 29//config: Create extended header file compatible with "big" bootchartd.
30//config: "Big" bootchartd is a shell script and it dumps some 30//config: "Big" bootchartd is a shell script and it dumps some
31//config: "convenient" info int the header, such as: 31//config: "convenient" info int the header, such as:
32//config: title = Boot chart for `hostname` (`date`) 32//config: title = Boot chart for `hostname` (`date`)
33//config: system.uname = `uname -srvm` 33//config: system.uname = `uname -srvm`
34//config: system.release = `cat /etc/DISTRO-release` 34//config: system.release = `cat /etc/DISTRO-release`
35//config: system.cpu = `grep '^model name' /proc/cpuinfo | head -1` ($cpucount) 35//config: system.cpu = `grep '^model name' /proc/cpuinfo | head -1` ($cpucount)
36//config: system.kernel.options = `cat /proc/cmdline` 36//config: system.kernel.options = `cat /proc/cmdline`
37//config: This data is not mandatory for bootchart graph generation, 37//config: This data is not mandatory for bootchart graph generation,
38//config: and is considered bloat. Nevertheless, this option 38//config: and is considered bloat. Nevertheless, this option
39//config: makes bootchartd applet to dump a subset of it. 39//config: makes bootchartd applet to dump a subset of it.
40//config: 40//config:
41//config:config FEATURE_BOOTCHARTD_CONFIG_FILE 41//config:config FEATURE_BOOTCHARTD_CONFIG_FILE
42//config: bool "Support bootchartd.conf" 42//config: bool "Support bootchartd.conf"
43//config: default y 43//config: default y
44//config: depends on BOOTCHARTD 44//config: depends on BOOTCHARTD
45//config: help 45//config: help
46//config: Enable reading and parsing of $PWD/bootchartd.conf 46//config: Enable reading and parsing of $PWD/bootchartd.conf
47//config: and /etc/bootchartd.conf files. 47//config: and /etc/bootchartd.conf files.
48 48
49#include "libbb.h" 49#include "libbb.h"
50#include "common_bufsiz.h" 50#include "common_bufsiz.h"