Re: [PATCH v2 6/9] perf tools: add destructors for parse event terms

From: Jiri Olsa
Date: Wed Oct 23 2019 - 05:01:50 EST


On Tue, Oct 22, 2019 at 05:53:34PM -0700, Ian Rogers wrote:
> If parsing fails then destructors are ran to clean the up the stack.
> Rename the head union member to make the term and evlist use cases more
> distinct, this simplifies matching the correct destructor.

I'm getting compilation fail:

CC util/parse-events-bison.o
util/parse-events.y: In function âyydestructâ:
util/parse-events.y:125:45: error: âstruct tracepoint_nameâ has no member named âsysâ; did you mean âsys1â?
125 | %destructor { free ($$.sys); free ($$.event); } <tracepoint_name>

jirka