[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f6b5e7eqjxyt2fcpeub2iusxdpnfkmvaiudgthwmowmgdmc6gt@uaxdzdwj3fg7>
Date: Fri, 27 Oct 2023 13:47:58 +0200
From: Maciej Wieczór-Retman
<maciej.wieczor-retman@...el.com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
CC: <linux-kselftest@...r.kernel.org>,
Reinette Chatre <reinette.chatre@...el.com>,
Shuah Khan <shuah@...nel.org>,
Shaopeng Tan <tan.shaopeng@...fujitsu.com>,
Fenghua Yu <fenghua.yu@...el.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 13/24] selftests/resctrl: Convert perf related globals to
locals
On 2023-10-24 at 12:26:23 +0300, Ilpo Järvinen wrote:
>Perf related variables pea_llc_miss, pe_read, and pe_fd are globals in
>cache.c.
>
>Convert them to locals for better scoping and make pea_llc_miss simpler
>by renaming it to pea. Make close(pe_fd) handling easier to understand
>by doing it inside cat_val().
>
>Make also sizeof()s use safer way determine the right struct.
"use safer way determine" -> "use safer way to determine"?
>
>Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
--
Kind regards
Maciej Wieczór-Retman
Powered by blists - more mailing lists