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.

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 OK
Unit
No Unit 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.

gromero_linux.ibm.com requested changes to this revision.Jul 27 2018, 8:17 PM
This revision now requires changes to proceed.Jul 27 2018, 8:17 PM