Lines Matching defs:record

223 	    "\t\tClear the particular record (if given a numeric ID), or\n"
317 print_data_handler(int id, const char *pool, zinject_record_t *record,
322 if (record->zi_guid != 0 || record->zi_func[0] != '\0')
335 (u_longlong_t)record->zi_objset, (u_longlong_t)record->zi_object,
336 type_to_name(record->zi_type), record->zi_level);
338 if (record->zi_start == 0 &&
339 record->zi_end == -1ULL)
342 (void) printf("[%llu, %llu]\n", (u_longlong_t)record->zi_start,
343 (u_longlong_t)record->zi_end);
349 print_device_handler(int id, const char *pool, zinject_record_t *record,
354 if (record->zi_guid == 0 || record->zi_func[0] != '\0')
365 (u_longlong_t)record->zi_guid);
371 print_panic_handler(int id, const char *pool, zinject_record_t *record,
376 if (record->zi_func[0] == '\0')
386 (void) printf("%3d %-15s %s\n", id, pool, record->zi_func);
421 cancel_one_handler(int id, const char *pool, zinject_record_t *record,
476 register_handler(const char *pool, int flags, zinject_record_t *record,
482 zc.zc_inject_record = *record;
500 if (record->zi_guid) {
502 (u_longlong_t)record->zi_guid);
503 } else if (record->zi_func[0] != '\0') {
505 record->zi_func);
506 } else if (record->zi_duration > 0) {
508 (u_longlong_t)record->zi_duration);
509 } else if (record->zi_duration < 0) {
511 (u_longlong_t)-record->zi_duration);
514 (u_longlong_t)record->zi_objset);
516 (u_longlong_t)record->zi_object);
518 (u_longlong_t)record->zi_type);
519 (void) printf(" level: %d\n", record->zi_level);
520 if (record->zi_start == 0 &&
521 record->zi_end == -1ULL)
525 (u_longlong_t)record->zi_start,
526 (u_longlong_t)record->zi_end);
534 perform_action(const char *pool, zinject_record_t *record, int cmd)
540 zc.zc_guid = record->zi_guid;
566 zinject_record_t record = { 0 };
649 record.zi_freq = atoi(optarg);
650 if (record.zi_freq < 1 || record.zi_freq > 100) {
657 record.zi_failfast = B_TRUE;
661 record.zi_duration = (int)strtol(optarg, &end, 10);
662 if (record.zi_duration <= 0 || *end != '\0') {
669 record.zi_duration *= -1;
678 record.zi_duration = 30;
693 (void) strlcpy(record.zi_func, optarg,
694 sizeof (record.zi_func));
704 record.zi_duration = (int)strtol(optarg, &end, 10);
705 if (record.zi_duration <= 0 || *end != '\0') {
773 level != 0 || record.zi_func[0] != '\0' ||
774 record.zi_duration != 0) {
806 level != 0 || record.zi_func[0] != '\0' ||
807 record.zi_duration != 0) {
830 record.zi_iotype = io_type;
831 if (translate_device(pool, device, label, &record) != 0)
837 return (perform_action(pool, &record, action));
841 record.zi_func[0] != '\0' || record.zi_duration != 0) {
864 if (translate_raw(raw, &record) != 0)
868 } else if (record.zi_func[0] != '\0') {
870 level != 0 || device != NULL || record.zi_duration != 0) {
886 record.zi_type = atoi(argv[1]);
888 } else if (record.zi_duration != 0) {
942 if (translate_record(type, argv[0], range, level, &record, pool,
962 record.zi_error = error;
964 ret = register_handler(pool, flags, &record, quiet);