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)
Sun, Apr 14, 2:41 AM
Unknown Object (File)
Thu, Apr 11, 1:26 PM
Unknown Object (File)
Dec 20 2023, 1:52 AM
Unknown Object (File)
Dec 12 2023, 5:57 AM
Unknown Object (File)
Nov 19 2023, 9:23 AM
Unknown Object (File)
Nov 19 2023, 8:16 AM
Unknown Object (File)
Sep 6 2023, 5:18 AM
Unknown Object (File)
Jun 24 2023, 7:17 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