1f08c3bdfSopenharmony_ci 2f08c3bdfSopenharmony_ciLinux Hotplug CPU Support (LHCS) Testsuite 3f08c3bdfSopenharmony_ci------------------------------------------ 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_ciThis package is a collection of test cases for validating CPU hotplug 6f08c3bdfSopenharmony_cicapabilities in Linux. 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ciTo use this test suite, simply install it someplace on the system to be 9f08c3bdfSopenharmony_citested and then invoke the test suite as root: 10f08c3bdfSopenharmony_ci 11f08c3bdfSopenharmony_ci # ./runtests.sh 12f08c3bdfSopenharmony_ci 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ciFor details about the test cases, see the doc/ directory. These tests 15f08c3bdfSopenharmony_ciexercise the system in ways that have been known to reveal bugs in the 16f08c3bdfSopenharmony_cipast. 17f08c3bdfSopenharmony_ci 18f08c3bdfSopenharmony_ciNo compilation or installation is required to use this test suite; it 19f08c3bdfSopenharmony_cican be run in place using the above script. 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ci 23f08c3bdfSopenharmony_ciAbout Hotplug CPU 24f08c3bdfSopenharmony_ci================= 25f08c3bdfSopenharmony_ciThe logic used to operate the hotplug features in Linux are implemented 26f08c3bdfSopenharmony_ciin the file includes/cpuhotplug_hotplug.sh. These include functions for 27f08c3bdfSopenharmony_cionlining and offlining CPUs, determining if a given CPU is valid and/or online, 28f08c3bdfSopenharmony_cigetting lists of CPUs that are available, online, and offline, and 29f08c3bdfSopenharmony_cimanaging IRQ's and affinities as they relate to CPUs. 30f08c3bdfSopenharmony_ci 31f08c3bdfSopenharmony_ci 32f08c3bdfSopenharmony_ciAbout the Test Suite 33f08c3bdfSopenharmony_ci==================== 34f08c3bdfSopenharmony_ciSee includes/cpuhotplug_testsuite.sh for some general purpose routines for 35f08c3bdfSopenharmony_ciimplementing a test suite. These include process management, timing, 36f08c3bdfSopenharmony_ciand interupt handling and cleanup. 37f08c3bdfSopenharmony_ci 38f08c3bdfSopenharmony_ci 39f08c3bdfSopenharmony_ciLicensing 40f08c3bdfSopenharmony_ci======= 41f08c3bdfSopenharmony_ciThis code is copyright (C) Bryce W. Harrington, bryce@osdl.org. 42f08c3bdfSopenharmony_ciIt may be used under the terms of the GNU General Public License (GPL). 43f08c3bdfSopenharmony_ciSee COPYING for details. 44