Yang Jihong
bb2e04d449
perf bench messaging: Kill child processes when exit abnormally in process mode
...
When exit abnormally in process mode, customize SIGINT and SIGTERM signal
handler to kill the forked child processes.
Before:
# perf bench sched messaging -l 1000000 -g 1 &
[1] 8519
# # Running 'sched/messaging' benchmark:
# pgrep sched-messaging | wc -l
41
# kill -15 8519
[1]+ Terminated perf bench sched messaging -l 1000000 -g 1
# pgrep sched-messaging | wc -l
40
After:
# perf bench sched messaging -l 1000000 -g 1 &
[1] 8472
# # Running 'sched/messaging' benchmark:
# pgrep sched-messaging | wc -l
41
# kill -15 8472
[1]+ Exit 1 perf bench sched messaging -l 1000000 -g 1
# pgrep sched-messaging | wc -l
0
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230923093037.961232-5-yangjihong1@huawei.com
[ namhyung: fix a whitespace ]
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2023-09-26 21:47:12 -07:00
..
2023-09-09 20:06:17 -07:00
2023-08-23 08:39:02 -03:00
2023-09-09 20:06:17 -07:00
2023-06-12 18:18:14 -03:00
2023-06-12 18:18:14 -03:00
2022-04-01 16:19:35 -03:00
2023-04-04 09:39:56 -03:00
2022-10-04 08:55:19 -03:00
2023-06-12 18:18:14 -03:00
2023-06-12 18:18:14 -03:00
2023-06-12 18:18:14 -03:00
2023-06-12 18:18:14 -03:00
2021-11-01 11:42:54 -03:00
2023-04-12 10:14:01 -03:00
2020-05-05 16:35:32 -03:00
2020-08-13 09:34:26 -03:00
2017-11-02 11:10:55 +01:00
2023-05-17 10:42:19 -03:00
2023-05-17 10:42:19 -03:00
2017-11-02 11:10:55 +01:00
2023-05-17 10:42:19 -03:00
2023-05-17 10:42:19 -03:00
2023-04-04 09:39:56 -03:00
2023-08-24 10:42:46 -03:00
2023-09-26 21:47:12 -07:00
2021-03-06 16:54:24 -03:00
2023-07-17 16:08:08 -07:00
2021-09-17 08:44:19 -03:00
2023-04-04 09:39:55 -03:00
2023-07-20 11:33:24 -03:00