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, Oct 10, 2:38 AM
Unknown Object (File)
Thu, Oct 9, 12:30 PM
Unknown Object (File)
Mon, Sep 29, 7:56 PM
Unknown Object (File)
Mon, Sep 29, 7:12 PM
Unknown Object (File)
Sun, Sep 28, 4:10 PM
Unknown Object (File)
Sun, Sep 28, 3:54 PM
Unknown Object (File)
Wed, Sep 24, 12:50 PM
Unknown Object (File)
Sep 12 2025, 7:47 PM
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