diff options
| author | Yang Jihong <[email protected]> | 2023-09-23 09:30:36 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2023-09-26 21:47:12 -0700 |
| commit | 07f3e6cf8581bcfe9f1bd4540768bc202983349f (patch) | |
| tree | 827da071e11fa7aa27b8df3b72a44376b8fc29e3 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 5d2050453d489595ffa9491e05964e85c1927f35 (diff) | |
perf bench messaging: Store chlid process pid when creating worker for process mode
To save pid of child processes when creating worker:
1. The messaging worker is changed to `union` type to store thread id and
process pid.
2. Save child process pid in create_process_worker().
3. Rename `pth_tab` as `work_tab`.
Test result:
# perf bench sched messaging
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 10 groups == 400 processes run
Total time: 6.744 [sec]
# perf bench sched messaging -t
# Running 'sched/messaging' benchmark:
# 20 sender and receiver threads per group
# 10 groups == 400 threads run
Total time: 5.788 [sec]
Signed-off-by: Yang Jihong <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions