th_manage - manage the fault injection test harness
th_manage name instance command
th_manage path command
th_manage applies the action specified by command to the instance specified by instance of the driver specified by name (or the driver instance specified by path). The driver instance must be running fault injection specifications (errdefs) defined by th_define(1M).
th_manage supports several commands that operate on the driver instance specified by name and instance (or path). The commands are:
broadcast
clear_acc_chk
clear_errdefs
clear_errors
get_handles
start
stop
Example 1 Useful Commands
To begin the tests, enter:
# th_manage foo 0 start
To check the status of the errdefs, enter:
# th_manage foo 0 broadcast
This causes each th_define process to print out its current status.
If the driver has reported a fatal error, you can take the driver offline using libdevice, clear the error condition by entering:
# th_manage foo 0 clear_acc_chk
or
# th_manage foo 0 clear_errors
and bring the driver online again using libdevice.
To terminate testing, enter:
# th_manage foo 0 clear_errdefs
th_define(1M)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |