Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c09728 commit 20698f3Copy full SHA for 20698f3
ch7/show_kernel_seg/kernel_seg.c
@@ -97,16 +97,18 @@ static void show_userspace_info(void)
97
#else // 32-bit
98
"Above: TASK_SIZE = %lu size of userland [ %ld MB]\n"
99
#endif
100
- " # userspace memory regions (VMAs) = %d\n"
101
- " Above statistics are wrt 'current' thread (see below):\n",
+ " # userspace memory regions (VMAs) = %d\n",
102
#if (BITS_PER_LONG == 64)
103
TASK_SIZE, (TASK_SIZE >> 30),
104
105
TASK_SIZE, (TASK_SIZE >> 20),
106
107
current->mm->map_count);
108
+#ifdef DEBUG
109
+ pr_info(" Above statistics are wrt 'current' thread (see below):\n");
110
PRINT_CTX(); /* show which process is the one in context */
111
+#endif
112
}
113
114
/*
0 commit comments