Lines Matching refs:Pattern
172 #define PATTERN_ASCII 1 /* repeating alphabet letter pattern */
186 #define PATTERN_ALT 4 /* alternating bit pattern (i.e. 0x5555555...) */
187 #define PATTERN_CHKER 5 /* checkerboard pattern (i.e. 0xff00ff00ff00...) */
188 #define PATTERN_CNTING 6 /* counting pattern (i.e. 0 - 07, 0 - 07, ...) */
218 int Pattern = PATTERN_OFFSET; /* This pattern is 64 bit word based */
220 int Pattern = PATTERN_ASCII;
263 * generate pattern
265 * write with wrong pattern
268 * The second process truncated the file after the pattern was
269 * determined, thus the pattern is wrong for the file location.
273 * between the fstat and the write. Thus, writing the wrong pattern.
689 case 'q': /* file content or pattern */
692 Pattern = PATTERN_ALT;
695 Pattern = PATTERN_ASCII;
698 Pattern = PATTERN_PID;
701 Pattern = PATTERN_OFFSET;
704 Pattern = PATTERN_CHKER;
707 Pattern = PATTERN_CNTING;
710 Pattern = PATTERN_RANDOM;
714 Pattern = PATTERN_ZEROS;
717 Pattern = PATTERN_ONES;
956 if (Pattern == PATTERN_RANDOM) {
960 ("%s%s: %d Using random pattern - no data checking will be performed!\n",
1011 else if (Pattern == PATTERN_OFFSET)
1013 ("%s: %d DEBUG3 %d<byteoffset>%d per word pattern multi-writers.\n",
1015 else if (Pattern == PATTERN_PID)
1017 ("%s: %d DEBUG3 <pid><byteoffset><pid> per word pattern - 1 writer\n",
1019 else if (Pattern == PATTERN_ASCII)
1021 ("%s: %d DEBUG3 ascii pattern (vi'able)- allows multiple writers\n",
1023 else if (Pattern == PATTERN_ALT)
1025 ("%s: %d DEBUG3 alt bit pattern - allows multiple writers\n",
1027 else if (Pattern == PATTERN_CHKER)
1029 ("%s: %d DEBUG3 checkerboard pattern - allows multiple writers\n",
1031 else if (Pattern == PATTERN_CNTING)
1033 ("%s: %d DEBUG3 counting pattern - allows multiple writers\n",
1035 else if (Pattern == PATTERN_RANDOM)
1037 ("%s: %d DEBUG3 random integer pattern - no write/file checking\n",
1039 else if (Pattern == PATTERN_ONES)
1041 ("%s: %d DEBUG3 all ones pattern - allows multiple writers\n",
1043 else if (Pattern == PATTERN_ZEROS)
1045 ("%s: %d DEBUG3 all zeros pattern - allows multiple writers\n",
1049 printf("%s: %d DEBUG3 unknown pattern\n",
1849 -q pattern pattern can be a - ascii, p - pid with boff, o boff (def)\n\
2153 if (Pattern == PATTERN_OFFSET)
2155 else if (Pattern == PATTERN_PID)
2157 else if (Pattern == PATTERN_ASCII)
2159 else if (Pattern == PATTERN_RANDOM)
2161 else if (Pattern == PATTERN_ALT)
2163 else if (Pattern == PATTERN_CHKER)
2165 else if (Pattern == PATTERN_CNTING)
2167 else if (Pattern == PATTERN_ZEROS)
2169 else if (Pattern == PATTERN_ONES)
2270 * The pattern written to the file will be considered corrupted.
2281 "offset:%ld (expect pattern mismatch)\n",
2631 } else if (Pattern == PATTERN_OFFSET)
2634 else if (Pattern == PATTERN_PID)
2636 else if (Pattern == PATTERN_ASCII)
2638 else if (Pattern == PATTERN_RANDOM) ; /* no check for random */
2639 else if (Pattern == PATTERN_ALT)
2641 else if (Pattern == PATTERN_CHKER)
2643 else if (Pattern == PATTERN_CNTING)
2645 else if (Pattern == PATTERN_ZEROS)
2647 else if (Pattern == PATTERN_ONES)
2784 if (Pattern == PATTERN_OFFSET)
2788 else if (Pattern == PATTERN_PID)
2792 else if (Pattern == PATTERN_ASCII)
2796 else if (Pattern == PATTERN_RANDOM) ; /* no checks for random */
2797 else if (Pattern == PATTERN_ALT)
2801 else if (Pattern == PATTERN_CHKER)
2805 else if (Pattern == PATTERN_CNTING)
2809 else if (Pattern == PATTERN_ZEROS)
2813 else if (Pattern == PATTERN_ONES)
2873 if (Pattern == PATTERN_OFFSET)
2877 else if (Pattern == PATTERN_PID)
2879 else if (Pattern == PATTERN_ASCII)
2882 else if (Pattern == PATTERN_RANDOM) ; /* no check for random */
2883 else if (Pattern == PATTERN_ALT)
2885 else if (Pattern == PATTERN_CHKER)
2887 else if (Pattern == PATTERN_CNTING)
2889 else if (Pattern == PATTERN_ZEROS)
2891 else if (Pattern == PATTERN_ONES)