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
F157733403: D16474.diff
Sun, May 24, 3:23 PM
Unknown Object (File)
Fri, May 22, 1:28 PM
Unknown Object (File)
Wed, May 20, 12:20 PM
Unknown Object (File)
Mon, May 18, 1:24 AM
Unknown Object (File)
Sun, May 17, 6:12 PM
Unknown Object (File)
Sun, May 17, 6:05 PM
Unknown Object (File)
Thu, May 14, 1:00 PM
Unknown Object (File)
Tue, May 12, 1:31 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