Skip to content

Commit

Permalink
lkl: Allow hijack init to pause for debugging purpose
Browse files Browse the repository at this point in the history
Signed-off-by: H.K. Jerry Chu <[email protected]>
  • Loading branch information
Hsiao-keng Jerry Chu committed Sep 13, 2016
1 parent 07ce00f commit 85d8d5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/lkl/lib/hijack/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ hijack_init(void)
if (offload1)
offload = strtol(offload1, NULL, 0);

if (lkl_debug & 0x200) {
char c;

printf("press 'enter' to continue\n");
if (scanf("%c", &c) <= 0) {
fprintf(stderr, "scanf() fails\n");
return;
}
}
if (single_cpu) {
single_cpu_mode = atoi(single_cpu);
switch (single_cpu_mode) {
Expand Down

0 comments on commit 85d8d5c

Please sign in to comment.