[lkml]   [2022]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] perf arm-spe: Parse more SPE fields and store source
On Tue, Feb 22, 2022 at 07:29:43PM +0000, Ali Saidi wrote:


> >So I am just wandering if we can set the field
> >sample::data_src::mem_lock for atomic operations, like:
> >
> > data_src.mem_op = PERF_MEM_OP_LOAD;
> > data_src.mem_lock = PERF_MEM_LOCK_ATOMIC;
> >
> >The field "mem_lock" is only two bits, we can consider to extend the
> >structure with an extra filed "mem_lock_ext" if it cannot meet our
> >requirement.
> These are for the LOCK instruction on x86. I don't know that we want to
> overload the meaning here. Minimally there is value in differentiating
> exclusives vs atomics.

Good point. Can we consider to add new filed data_src.atomic with
below types?

PERF_MEM_ATOMIC_INST -> Atomic operations
PERF_MEM_ATOMIC_EXCL -> Load-Exclusive/Store-Exclusive


 \ /
  Last update: 2022-02-27 14:55    [W:0.117 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site