Re: [PATCH v6 1/5] perf config: Move perf_config__set_variable() to util/config.c
From: Arnaldo Carvalho de Melo
Date: Thu Oct 01 2026 - 05:35:27 EST
On Thu, Oct 01, 2026 at 12:18:55AM -0700, Namhyung Kim wrote:
> On Wed, Sep 30, 2026 at 11:37:12PM +0200, Arnaldo Carvalho de Melo wrote:
> > perf_etc_perfconfig() caches what system_path() returns, and that
> > allocates, so on failure every caller dereferenced NULL, the
> > pre-existing ones in perf_config_from_file() and in the daemon
> > included. Pre-existing, not introduced here, but this rewrites the
> > accessor anyway, so make it total: the unresolved path is the same
> > string for the usual absolute ETC_PERFCONFIG.
>
> I think this patch does many things. Can we split them?
Sure, will split it into three patches.
- Arnaldo