Lines Matching refs:ts

179 static struct test_state ts;  variable
369 ts.idx -= 2; in check_single_step()
374 ts.idx -= 4; in check_single_step()
403 ts.idx++; in skip_back_repeat_test()
408 ts.idx -= go_back; in skip_back_repeat_test()
410 fill_get_buf(ts.tst[ts.idx].get); in skip_back_repeat_test()
434 ts.idx--; in put_cont_catch()
444 ts.idx = -1; in emul_reset()
532 ts.idx--; in emul_sstep_put()
718 v2printk("get%i: %s\n", ts.idx, get_buf); in fill_get_buf()
725 if (ts.tst[ts.idx].put_handler) in validate_simple_test()
726 return ts.tst[ts.idx].put_handler(put_str, in validate_simple_test()
727 ts.tst[ts.idx].put); in validate_simple_test()
729 chk_str = ts.tst[ts.idx].put; in validate_simple_test()
766 if (ts.tst[ts.idx].get_handler) in run_simple_test()
767 ts.tst[ts.idx].get_handler(ts.tst[ts.idx].get); in run_simple_test()
769 fill_get_buf(ts.tst[ts.idx].get); in run_simple_test()
774 ts.name, ts.idx); in run_simple_test()
786 if (ts.tst[ts.idx].get[0] == '\0' && ts.tst[ts.idx].put[0] == '\0' && in run_simple_test()
787 !ts.tst[ts.idx].get_handler) { in run_simple_test()
789 " '%s' line %i\n", ts.name, ts.idx); in run_simple_test()
795 " '%s' line %i\n", ts.name, ts.idx); in run_simple_test()
810 " '%s' line %i\n", ts.name, ts.idx); in run_simple_test()
815 v2printk("put%i: %s\n", ts.idx, put_buf); in run_simple_test()
817 if (ts.validate_put && ts.validate_put(put_buf)) { in run_simple_test()
820 ts.name, ts.idx, ts.tst[ts.idx].put, put_buf); in run_simple_test()
822 ts.idx++; in run_simple_test()
832 memset(&ts, 0, sizeof(ts)); in init_simple_test()
833 ts.run_test = run_simple_test; in init_simple_test()
834 ts.validate_put = validate_simple_test; in init_simple_test()
845 ts.tst = plant_and_detach_test; in run_plant_and_detach_test()
846 ts.name = "plant_and_detach_test"; in run_plant_and_detach_test()
867 ts.tst = hw_breakpoint_test; in run_breakpoint_test()
868 ts.name = "hw_breakpoint_test"; in run_breakpoint_test()
870 ts.tst = sw_breakpoint_test; in run_breakpoint_test()
871 ts.name = "sw_breakpoint_test"; in run_breakpoint_test()
882 eprintk("kgdbts: ERROR %s test failed\n", ts.name); in run_breakpoint_test()
892 ts.tst = hw_write_break_test; in run_hw_break_test()
893 ts.name = "hw_write_break_test"; in run_hw_break_test()
895 ts.tst = hw_access_break_test; in run_hw_break_test()
896 ts.name = "hw_access_break_test"; in run_hw_break_test()
904 ts.name); in run_hw_break_test()
914 eprintk("kgdbts: ERROR %s test failed\n", ts.name); in run_hw_break_test()
923 ts.tst = nmi_sleep_test; in run_nmi_sleep_test()
924 ts.name = "nmi_sleep_test"; in run_nmi_sleep_test()
937 eprintk("kgdbts: ERROR %s test failed\n", ts.name); in run_nmi_sleep_test()
943 ts.tst = bad_read_test; in run_bad_read_test()
944 ts.name = "bad_read_test"; in run_bad_read_test()
952 ts.tst = do_kernel_clone_test; in run_kernel_clone_test()
953 ts.name = "do_kernel_clone_test"; in run_kernel_clone_test()
961 ts.tst = sys_open_test; in run_sys_open_test()
962 ts.name = "sys_open_test"; in run_sys_open_test()
970 ts.tst = singlestep_break_test; in run_singlestep_break_test()
971 ts.name = "singlestep_breakpoint_test"; in run_singlestep_break_test()
1122 if (ts.run_test) in kgdbts_get_char()
1123 val = ts.run_test(1, 0); in kgdbts_get_char()
1130 if (ts.run_test) in kgdbts_put_char()
1131 ts.run_test(0, chr); in kgdbts_put_char()