Lines Matching defs:counters
1 // Test whether mmap'ing profile counters onto an open file is feasible. As
9 // Align counters and data to the maximum expected page size (16K).
25 __attribute__((section("__DATA,__pcnts"))) int counters[] = {0xbad};
41 // Grow the file to hold data and counters.
47 // Write the data first (at offset 0x1000, after the counters).
53 // Map the counters into the file, before the data.
65 // Update counters 1..9. These updates should be visible in the file.
81 // Verify that the file length is: sizeof(counters) + sizeof(data).
89 // Verify the values of counters 1..9 (i.e. that the mmap() worked).
99 // Verify that the rest of the counters (after counter 9) are 0.
110 // Verify that the data written after the counters is equal to the "data[]"