Re: [PATCH] perf tests: Fix Tool PMU test segfault
From: Namhyung Kim
Date: Thu Feb 13 2025 - 12:21:40 EST
On Wed, 12 Feb 2025 16:38:56 +0000, James Clark wrote:
> tool_pmu__event_to_str() now handles skipped events by returning NULL,
> so it's wrong to re-check for a skip on the resulting string. Calling
> tool_pmu__skip_event() with a NULL string results in a segfault so
> remove the unnecessary skip to fix it:
>
> $ perf test -vv "parsing with PMU name"
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung