// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2015, Michael Neuling, IBM Corp. * Original: Michael Neuling 19/7/2013 * Edited: Rashmica Gupta 01/12/2015 * * Do some transactions, see if the tar is corrupted. * If the transaction is aborted, the TAR should be rolled back to the * checkpointed value before the transaction began. The value written to * TAR in suspended mode should only remain in TAR if the transaction * completes.
*/
/* If result is anything else other than 7 or 9, the tar
* value must have been corrupted. */ if ((result != 7) && (result != 9)) return 1;
} return 0;
}
int main(int argc, char *argv[])
{ /* A low number of iterations (eg 100) can cause a false pass */ if (argc > 1) { if (strcmp(argv[1], "-h") == 0) {
printf("Syntax:\n\t%s []\n",
argv[0]); return 1;
} else {
num_loops = atoi(argv[1]);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.