Page MenuHomeFreeBSD

tools/htm_torture: Tool to stress HTM sub system .
Needs RevisionPublic

Authored by breno.leitao_gmail.com on Jul 27 2018, 6:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 20, 5:14 PM
Unknown Object (File)
Fri, Jun 20, 3:02 PM
Unknown Object (File)
Fri, Jun 20, 6:54 AM
Unknown Object (File)
Thu, Jun 19, 9:53 PM
Unknown Object (File)
Fri, Jun 13, 3:49 AM
Unknown Object (File)
Thu, Jun 12, 10:08 AM
Unknown Object (File)
Sat, May 24, 9:51 PM
Unknown Object (File)
May 16 2025, 7:29 AM
Subscribers
None

Details

Summary

This is a powerpc64 specific tool that will exercise the Hardware Transactional
Memory (HTM) subsystem. It will execute several HTM workloads at the same time
with several threads, and garantee that:

  1. The system does not crash
  2. The registers are saved and restored properly

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18379
Build 18094: arc lint + arc unit

Event Timeline

tools/tools/htm_torture/signal.c
40

I think this a leftover and can be removed as the previous line already increment the NIP by the correct amount (4 bytes).

tools/tools/htm_torture/signal.c
27

Is that a leftover?

tools/tools/htm_torture/torture.c
96

For the current state, the correct statement here would be "[...] but the VMX + VRSAVE registers [...]". Likewise on the next line.

109

Looks like a mission to switch(), but I don't have strong feelings about it.

148

Run forever should point out also "exercising all workloads".

165

No an English native speaker but I think I would be something like:

"Starting workloads on which all transactions will fail"

Likewise in the next message below.

tools/tools/htm_torture/worker.c
538

Quite arbitrary exit values here. Although I think the must be kept unique and != 1 I think 13 and 14 are not that amazing.

This revision now requires changes to proceed.Jul 27 2018, 8:17 PM