Mingli Yu
d9702b1bcc
bootchart2: remove wait_boot logic
When boot with "init=/sbin/bootchartd" as below:
# runqemu qemux86 bootparams="init=/sbin/bootchartd"
There are two bootchartd process after boot [1].
# ps -ef | grep bootchart
root 101 1 0 03:27 ? 00:00:00 /bin/sh /sbin/bootchartd
root 103 101 8 03:27 ? 00:00:02 /lib64/bootchart/bootchart-collector 50
root 106 1 0 03:27 ? 00:00:00 /bin/sh /sbin/bootchartd
root 792 106 0 03:27 ? 00:00:00 /lib64/bootchart/bootchart-collector --usleep 1000000
root 794 725 0 03:27 ttyS0 00:00:00 grep bootchart
# /sbin/bootchartd stop
[bootchart] bootchart-collector started as pid 596 with 2 args:
[bootchart] '--dump'
[bootchart] '/tmp/bootchart.3lXpVDAq3v'
[bootchart] Extracting profile data from pid 204
[bootchart] map 0xbed9a000 -> 0xbedbb000 size: 132k from 'bed9a000' 'bedbb000'
[bootchart] read 135168 bytes of 135168
[bootchart] reading 150 chunks (of 150) ...
[bootchart] wrote 18760 kbB
[bootchart] bootchart-collector pid: 596 unmounted proc / clean exit
But there still one process exist after the above stop command finish.
# ps -ef | grep bootchartd
root 202 1 0 09:09 ? 00:00:00 /bin/sh /sbin/bootchartd
root 629 516 0 09:10 ? 00:00:00 grep bootchartd
Remove the wait_boot which used to wait the boot process to finish to
make sure only one bootchartd process and meanwhile we don't need the
wait_boot logic because we either use "/sbin/bootchartd stop" to stop
the bootchartd manually or install package bootchartd-stop-initscript
altogether with bootchart2 to stop bootchartd automatically after boot.
After patch:
# ps -ef | grep bootchart
root 101 1 0 03:36 ? 00:00:00 /bin/sh /sbin/bootchartd
root 103 101 6 03:36 ? 00:00:04 /lib64/bootchart/bootchart-collector 50
root 596 592 0 03:37 ttyS0 00:00:00 grep bootchart
[1] https://github.com/xrmx/bootchart/issues/94
(From OE-Core rev: cc34e3bdedc045baf97ebc2258295d9433cb332e)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-14 22:46:38 +00:00
..
2021-11-25 21:55:10 +00:00
2021-11-21 11:05:02 +00:00
2021-08-02 15:44:10 +01:00
2021-11-21 11:05:01 +00:00
2021-12-12 18:10:22 +00:00
2021-10-23 17:42:25 +01:00
2021-12-14 22:46:38 +00:00
2021-11-10 19:27:28 +00:00
2021-12-08 20:22:11 +00:00
2021-12-09 10:33:25 +00:00
2021-02-26 15:21:21 +00:00
2021-08-02 15:44:10 +01:00
2021-12-12 11:27:23 +00:00
2021-11-03 10:12:42 +00:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-11-25 21:55:10 +00:00
2021-11-03 10:12:42 +00:00
2021-02-26 15:21:21 +00:00
2021-11-10 19:27:29 +00:00
2021-11-03 11:12:26 +00:00
2021-08-02 15:44:10 +01:00
2021-11-25 21:55:10 +00:00
2021-08-02 15:44:10 +01:00
2021-10-30 18:56:47 +01:00
2021-11-25 21:55:10 +00:00
2021-12-08 20:22:11 +00:00
2021-11-21 11:05:02 +00:00
2021-11-25 21:55:10 +00:00
2021-11-03 10:12:42 +00:00
2021-09-07 21:54:11 +01:00
2021-12-09 10:33:25 +00:00
2021-12-08 20:22:11 +00:00
2021-12-08 20:22:11 +00:00
2021-11-03 10:12:42 +00:00
2021-11-11 17:09:16 +00:00
2021-12-08 20:22:11 +00:00
2021-10-11 18:41:38 +01:00
2021-08-02 15:44:11 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-08-02 15:44:10 +01:00
2021-10-28 14:16:31 +01:00
2021-11-29 23:07:13 +00:00
2021-11-29 23:07:13 +00:00
2021-10-23 17:42:25 +01:00
2021-09-21 23:44:08 +01:00
2021-11-03 10:12:42 +00:00
2021-12-12 18:10:22 +00:00
2021-11-03 10:12:42 +00:00
2021-08-23 08:25:52 +01:00
2021-11-16 22:20:33 +00:00
2021-08-02 15:44:10 +01:00
2020-03-08 08:21:11 +00:00
2021-08-02 15:44:10 +01:00
2021-12-12 11:27:23 +00:00
2021-12-09 10:33:25 +00:00
2021-10-30 18:56:47 +01:00
2021-12-01 16:23:45 +00:00
2021-08-02 15:44:10 +01:00
2021-11-03 10:12:42 +00:00
2021-12-08 20:22:11 +00:00
2021-12-08 20:22:11 +00:00
2021-08-02 15:44:10 +01:00
2021-11-21 11:05:02 +00:00
2021-12-12 18:10:22 +00:00
2021-12-06 11:09:52 +00:00
2021-12-06 11:09:52 +00:00
2021-11-10 19:27:29 +00:00
2021-12-12 18:10:22 +00:00
2021-08-17 09:53:04 +01:00
2021-10-30 22:31:52 +01:00
2021-12-14 22:46:38 +00:00
2021-12-12 18:10:22 +00:00
2021-08-02 15:44:10 +01:00
2021-12-08 20:22:11 +00:00
2021-11-03 10:12:42 +00:00
2021-08-02 15:44:10 +01:00
2021-12-09 10:33:25 +00:00
2021-09-07 21:54:11 +01:00
2021-12-08 20:22:11 +00:00
2021-11-10 19:27:28 +00:00
2021-12-08 20:22:11 +00:00
2021-12-12 18:10:22 +00:00
2021-11-21 11:05:02 +00:00
2021-10-04 15:03:54 +01:00
2021-11-11 17:09:16 +00:00
2021-12-08 20:22:10 +00:00
2021-09-04 08:44:10 +01:00
2021-11-21 11:05:02 +00:00
2021-02-26 15:21:21 +00:00
2021-12-08 20:22:11 +00:00
2021-12-06 11:09:52 +00:00
2021-08-02 15:44:10 +01:00