[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1d9d2f4e-ed7e-e770-066d-ef53ec31b42d@linux.intel.com>
Date: Wed, 11 Aug 2021 06:27:37 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Jin Yao <yao.jin@...ux.intel.com>, acme@...nel.org,
jolsa@...nel.org, peterz@...radead.org, mingo@...hat.com,
alexander.shishkin@...ux.intel.com
Cc: Linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
kan.liang@...el.com, yao.jin@...el.com, rickyman7@...il.com,
Kan Liang <kan.liang@...ux.intel.com>
Subject: Re: [PATCH v4 1/2] perf pmu: Add PMU alias support
> +
> + 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@...ux.intel.com>
-Andi
Powered by blists - more mailing lists