Re: [PATCH v2 11/13] perf tools: improve IBS error handling

From: Kim Phillips
Date: Thu Nov 18 2021 - 16:03:13 EST




On 11/17/21 3:15 AM, Stephane Eranian wrote:
Kim,

On Tue, Nov 16, 2021 at 8:46 AM Kim Phillips <kim.phillips@xxxxxxx> wrote:

On 11/11/21 2:44 AM, Stephane Eranian wrote:
From: Kim Phillips <kim.phillips@xxxxxxx>

This patch improves the error message returned on failed perf_event_open() on
AMD when using IBS.

Signed-off-by: Kim Phillips <kim.phillips@xxxxxxx>
---

Hi, AFAICT this v2 == v1, i.e., this patch doesn't address the comments
raised in v1:

https://lore.kernel.org/lkml/aa40b532-0e95-76c0-6c9c-a91d45bf3468@xxxxxxx/

Arnaldo, orthogonal to this series, it'd be great if you could apply
these two patches:

https://lore.kernel.org/lkml/20211004214114.188477-1-kim.phillips@xxxxxxx/T/#mc4c9c582e3816ab31af6d0187e6803de1a98ac84

I don't understand why this patch is related to the IBS error
handling. Patch 11/13 does not modify the evsel__env() function.

Without it, after applying patch 2/2 of that series and executing
the commands in 2/2's description will cause perf to sigsegv.

I have included your change in the new version of the patch.
Thanks.

You mean this one?:

Then, Stephane, you could drop this patch and in your next
version, patch 12/13 of this series would be replaced with
what's at the end of this email:

https://lore.kernel.org/lkml/20211004214114.188477-1-kim.phillips@xxxxxxx/T/#m885ead1f280445357c91cce53c01217913bd017b

If so, great, but patch 1/2 in the two-series set mentioned above
will need to be carried along with this series, unless acme
applies those two directly.

Thanks,

Kim