Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96010
b: refs/heads/master
c: 7cfcd98
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wessel committed May 5, 2008
1 parent 4a32423 commit 47f3fc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 001fddf5fdcfe2c08ac9c4e5ca80c5e5698363bb
refs/heads/master: 7cfcd985d36031459cc64e3843ea36a4d801097d
15 changes: 13 additions & 2 deletions trunk/drivers/misc/kgdbts.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* to test the HW NMI watchdog
* F## = Break at do_fork for ## iterations
* S## = Break at sys_open for ## iterations
* I## = Run the single step test ## iterations
*
* NOTE: that the do_fork and sys_open tests are mutually exclusive.
*
Expand Down Expand Up @@ -875,7 +876,9 @@ static void kgdbts_run_tests(void)
char *ptr;
int fork_test = 0;
int do_sys_open_test = 0;
int sstep_test = 1000;
int nmi_sleep = 0;
int i;

ptr = strstr(config, "F");
if (ptr)
Expand All @@ -886,6 +889,9 @@ static void kgdbts_run_tests(void)
ptr = strstr(config, "N");
if (ptr)
nmi_sleep = simple_strtol(ptr+1, NULL, 10);
ptr = strstr(config, "I");
if (ptr)
sstep_test = simple_strtol(ptr+1, NULL, 10);

/* required internal KGDB tests */
v1printk("kgdbts:RUN plant and detach test\n");
Expand All @@ -894,8 +900,13 @@ static void kgdbts_run_tests(void)
run_breakpoint_test(0);
v1printk("kgdbts:RUN bad memory access test\n");
run_bad_read_test();
v1printk("kgdbts:RUN singlestep breakpoint test\n");
run_singlestep_break_test();
v1printk("kgdbts:RUN singlestep test %i iterations\n", sstep_test);
for (i = 0; i < sstep_test; i++) {
run_singlestep_break_test();
if (i % 100 == 0)
v1printk("kgdbts:RUN singlestep [%i/%i]\n",
i, sstep_test);
}

/* ===Optional tests=== */

Expand Down

0 comments on commit 47f3fc0

Please sign in to comment.