Re: [PATCH v2] perf expr: Force encapsulation on expr_id_data
From: kajoljain
Date: Thu Aug 27 2020 - 03:01:30 EST
On 8/26/20 9:27 PM, Jiri Olsa wrote:
> On Wed, Aug 26, 2020 at 08:30:55AM -0700, Ian Rogers wrote:
>> This patch resolves some undefined behavior where variables in
>> expr_id_data were accessed (for debugging) without being defined. To
>> better enforce the tagged union behavior, the struct is moved into
>> expr.c and accessors provided. Tag values (kinds) are explicitly
>> identified.
Reviewed-By: Kajol Jain<kjain@xxxxxxxxxxxxx>
Thanks,
Kajol Jain
>>
>> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
>
> great, thanks for doing this
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
>
> jirka
>