Mingli Yu
3e9902aa6c
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: 058d6f5e6186c136c834fdb1303e28c6b9402ccd)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cc34e3bdedc045baf97ebc2258295d9433cb332e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-30 16:59:16 +00:00
..
2021-03-10 00:22:51 +00:00
2020-09-17 12:51:24 +01:00
2020-02-02 16:57:21 +00:00
2018-07-30 12:44:34 +01:00
2021-10-23 23:14:16 +01:00
2020-11-24 13:17:59 +00:00
2021-12-30 16:59:16 +00:00
2021-11-11 10:54:32 +00:00
2021-11-11 10:54:32 +00:00
2020-02-03 13:03:31 +00:00
2021-03-10 00:22:51 +00:00
2020-11-12 13:07:52 +00:00
2021-12-08 20:28:01 +00:00
2021-11-11 10:54:32 +00:00
2021-05-20 12:36:42 +01:00
2021-03-10 00:22:51 +00:00
2021-03-10 00:22:51 +00:00
2021-01-13 08:57:57 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-12-08 20:28:01 +00:00
2019-07-11 09:32:50 +01:00
2020-12-18 14:20:19 +00:00
2021-03-10 00:22:51 +00:00
2021-07-15 15:27:49 +01:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2019-09-27 13:02:16 +01:00
2021-03-10 00:22:51 +00:00
2021-11-11 10:54:32 +00:00
2021-09-14 17:27:42 +01:00
2021-12-14 22:49:22 +00:00
2021-03-10 00:22:51 +00:00
2021-12-02 16:53:07 +00:00
2021-11-11 10:54:32 +00:00
2021-11-11 10:54:32 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-03-10 00:22:51 +00:00
2019-11-14 13:20:59 +00:00
2021-03-10 00:22:51 +00:00
2021-03-10 00:22:51 +00:00
2021-05-20 12:36:41 +01:00
2020-09-10 19:07:40 +01:00
2021-11-11 10:54:32 +00:00
2021-12-08 20:28:01 +00:00
2020-02-28 23:11:28 +00:00
2021-03-10 00:22:51 +00:00
2021-11-11 10:54:32 +00:00
2021-10-23 23:14:17 +01:00
2021-11-11 10:54:32 +00:00
2021-10-23 23:14:17 +01:00
2020-03-08 08:21:11 +00:00
2021-03-10 00:22:51 +00:00
2020-05-22 16:23:23 +01:00
2021-09-01 16:27:09 +01:00
2021-03-10 00:22:51 +00:00
2021-11-11 10:54:32 +00:00
2019-11-21 23:08:19 +00:00
2021-03-10 00:22:51 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2020-03-29 12:05:31 +01:00
2021-03-10 00:22:51 +00:00
2016-06-16 11:11:40 +01:00
2021-01-09 09:17:17 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2020-02-13 12:19:14 +00:00
2021-06-03 16:30:56 +01:00
2020-01-19 13:24:38 +00:00
2021-11-15 11:53:55 +00:00
2021-12-02 16:53:07 +00:00
2021-03-10 00:22:51 +00:00
2021-09-30 00:02:22 +01:00
2021-03-04 17:39:08 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-08-18 18:00:19 +01:00
2021-04-06 22:45:36 +01:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-05-20 12:36:41 +01:00
2021-03-18 21:20:24 +00:00
2021-03-18 21:20:24 +00:00
2021-11-11 10:54:32 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-11-11 10:54:32 +00:00
2021-03-10 00:22:51 +00:00
2021-03-10 00:22:51 +00:00
2021-06-19 16:59:29 +01:00
2021-03-10 00:22:51 +00:00