Thread (34 messages) flat view 34 messages, 4 authors, 2021-01-19

Re: [PATCH v1 3/7] perf cs-etm: Calculate per CPU metadata array size

From: Leo Yan <hidden>
Date: 2021-01-16 00:52:07
Also in: lkml

Hi Mathieu,

On Fri, Jan 15, 2021 at 03:46:58PM -0700, Mathieu Poirier wrote:
On Mon, Jan 11, 2021 at 12:09:12PM +0000, Mike Leach wrote:
quoted
Hi Leo,

I think there is an issue here in that your modification assumes that
all cpus in the system are of the same ETM type. The original routine
allowed for differing ETM types, thus differing cpu ETM field lengths
between ETMv4 / ETMv3, the field size was used after the relevant
magic number for the cpu ETM was read.

You have replaced two different sizes - with a single calculated size.
I usually go through an entire patchset before looking at the comments people
have made.  In this case Mike and I are coming to the exact same conclusion.
Agreed, now this work depends on Mike's patch for extending metadata
version; otherwise if without Mike's patch, it will cause compability
issue.
I will look at Mike's patch on Monday.
Cool!

Thanks for review,
Leo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help