summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYang Jihong <yangjihong1@huawei.com>2023-09-23 12:30:36 +0300
committerNamhyung Kim <namhyung@kernel.org>2023-09-27 07:47:12 +0300
commit07f3e6cf8581bcfe9f1bd4540768bc202983349f (patch)
tree827da071e11fa7aa27b8df3b72a44376b8fc29e3 /tools/perf/scripts/python/task-analyzer.py
parent5d2050453d489595ffa9491e05964e85c1927f35 (diff)
downloadlinux-07f3e6cf8581bcfe9f1bd4540768bc202983349f.tar.xz
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 <yangjihong1@huawei.com> Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20230923093037.961232-4-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