diff options
| author | Yang Jihong <yangjihong1@huawei.com> | 2023-09-23 09:30:35 +0000 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2023-09-26 21:47:12 -0700 |
| commit | 5d2050453d489595ffa9491e05964e85c1927f35 (patch) | |
| tree | 4fe881f3ca51936586567b825c7636619681dcf8 /tools/perf/scripts/python/task-analyzer.py | |
| parent | perf bench messaging: Fix coding style issues for sched-messaging (diff) | |
| download | linux-5d2050453d489595ffa9491e05964e85c1927f35.tar.gz linux-5d2050453d489595ffa9491e05964e85c1927f35.zip | |
perf bench messaging: Factor out create_worker()
Refactor the create_worker() helper:
1. Modify the return value and use pthread pointer as a parameter to
facilitate value assignment in create_worker().
2. The thread worker creation and process worker creation are abstracted
into independent helpers.
No functional change.
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.332 [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.545 [sec]
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230923093037.961232-3-yangjihong1@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
