Re: [PATCH v4 1/2] perf pmu: Add PMU alias support

From: Andi Kleen
Date: Wed Aug 11 2021 - 09:27:53 EST



+
+ dir = opendir(path);
+ if (!dir)
+ return -1;


Could we cache/check the opendir result through file_available too?


The rest looks good


Reviewed-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

-Andi