aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorYang Jihong <[email protected]>2023-09-23 09:30:35 +0000
committerNamhyung Kim <[email protected]>2023-09-26 21:47:12 -0700
commit5d2050453d489595ffa9491e05964e85c1927f35 (patch)
tree4fe881f3ca51936586567b825c7636619681dcf8 /tools/perf/scripts/python/bin
parent8870261a70942ba7feee85c0f9a24c68c307af68 (diff)
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 <[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/bin')
0 files changed, 0 insertions, 0 deletions