Skip to content
Commit e880a70f authored by Yeo Reum Yun's avatar Yeo Reum Yun Committed by Namhyung Kim
Browse files

perf stat: Close cork_fd when create_perf_stat_counter() failed



When create_perf_stat_counter() failed, it doesn't close workload.cork_fd
open in evlist__prepare_workload(). This could make too many open file
error while __run_perf_stat() repeats.

Introduce evlist__cancel_workload to close workload.cork_fd and
wait workload.child_pid until exit to clear child process
when create_perf_stat_counter() is failed.

Signed-off-by: Yeo Reum Yun's avatarLevi Yun <yeoreum.yun@arm.com>
Reviewed-by: james-c-linaro's avatarJames Clark <james.clark@linaro.org>
Reviewed-by: default avatarAndi Kleen <ak@linux.intel.com>
Cc: nd@arm.com
Cc: howardchu95@gmail.com
Link: https://lore.kernel.org/r/20240925132022.2650180-2-yeoreum.yun@arm.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent f115506d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment