0

Recently, Intel release haswell machines which support hardware transactional memory called transactional synchronization extension(TSX).

As Intel manual said, Speculative memory operations, write-set and read-set, are buffered in L1 cache and L2 cache each. (not exactly)

Then, Can I track transactional memory operations and get information like address, and values of read/write-set?

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
Loigc
  • 29
  • 1

2 Answers2

1

You cannot. There is no (public) interface to the HTM hardware buffers.

Matthew G.
  • 1,298
  • 10
  • 24
  • 1
    Skylake has perf counters for events like `hle_retired.aborted` and `rtm_retired.aborted`. Those are "precise" events, so possibly you could see which instruction is causing aborts. – Peter Cordes Oct 10 '17 at 21:34
0

Read-Set and Write-Set are in CPU Cache, there is no address to access, You can't track, but you can clean the cache by code. For Example, you can give assignments to the array.

egraldlo
  • 183
  • 2
  • 11