From: Eugen Hristev Annotate vital static information into inspection table: - nr_threads Information on these annotated variables is stored in a dedicated meminspect section. Signed-off-by: Eugen Hristev Signed-off-by: Mukesh Ojha --- kernel/fork.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/fork.c b/kernel/fork.c index 17d2c2a9af93..5f20b6250259 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -108,6 +108,8 @@ #include #include #include +#include + #include #include @@ -144,6 +146,7 @@ */ unsigned long total_forks; /* Handle normal Linux uptimes. */ int nr_threads; /* The idle threads do not count.. */ +MEMINSPECT_SIMPLE_ENTRY(nr_threads); static int max_threads; /* tunable limit on nr_threads */ -- 2.50.1