// SPDX-License-Identifier: GPL-2.0-only /* * POWER Data Stream Control Register (DSCR) sysfs interface test * * This test updates to system wide DSCR default through the sysfs interface * and then verifies that all the CPU specific DSCR defaults are updated as * well verified from their sysfs interfaces. * * Copyright 2015, Anshuman Khandual, IBM Corporation.
*/ #include"dscr.h"
staticint check_cpu_dscr_default(char *file, unsignedlong val)
{ unsignedlong cpu_dscr; int err;
err = read_ulong(file, &cpu_dscr, 16); if (err) return err;
if (cpu_dscr != val) {
printf("DSCR match failed: %ld (system) %ld (cpu)\n",
val, cpu_dscr); return 1;
} return 0;
}
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.