| 19 | static int g_fail = 0; |
| 20 | |
| 21 | static void expect(bool ok, const std::string& what) { |
| 22 | if (!ok) { |
| 23 | ++g_fail; |
| 24 | std::fprintf(stderr, "FAIL: %s\n", what.c_str()); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // A two-socket machine, one node per socket, 2-way SMT: node k has cores [0, cores_k), CPU numbers as Linux gives them |
| 29 | // (node 0's first threads, node 1's first threads, then node 0's siblings, node 1's siblings). |
no outgoing calls
no test coverage detected