Loading kernel/exit.c +8 −2 Original line number Diff line number Diff line Loading @@ -650,6 +650,7 @@ static void check_stack_usage(void) static DEFINE_SPINLOCK(low_water_lock); static int lowest_to_date = THREAD_SIZE; unsigned long free; int islower = false; free = stack_not_used(current); Loading @@ -658,11 +659,16 @@ static void check_stack_usage(void) spin_lock(&low_water_lock); if (free < lowest_to_date) { pr_warn("%s (%d) used greatest stack depth: %lu bytes left\n", current->comm, task_pid_nr(current), free); lowest_to_date = free; islower = true; } spin_unlock(&low_water_lock); if (islower) { printk(KERN_WARNING "%s (%d) used greatest stack depth: " "%lu bytes left\n", current->comm, task_pid_nr(current), free); } } #else static inline void check_stack_usage(void) {} Loading Loading
kernel/exit.c +8 −2 Original line number Diff line number Diff line Loading @@ -650,6 +650,7 @@ static void check_stack_usage(void) static DEFINE_SPINLOCK(low_water_lock); static int lowest_to_date = THREAD_SIZE; unsigned long free; int islower = false; free = stack_not_used(current); Loading @@ -658,11 +659,16 @@ static void check_stack_usage(void) spin_lock(&low_water_lock); if (free < lowest_to_date) { pr_warn("%s (%d) used greatest stack depth: %lu bytes left\n", current->comm, task_pid_nr(current), free); lowest_to_date = free; islower = true; } spin_unlock(&low_water_lock); if (islower) { printk(KERN_WARNING "%s (%d) used greatest stack depth: " "%lu bytes left\n", current->comm, task_pid_nr(current), free); } } #else static inline void check_stack_usage(void) {} Loading