From 06986dfe5016a87de070e2ef4d9d0bd6095bc9dd Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 25 Apr 2012 22:28:00 +0400 Subject: [PATCH] proc: Fix parsing of stack string Kernel 3.4-rc4 has two formats for stack "[stack]" and "[stack:%d]" (for threads) so adopt our parsing routine for both. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- proc_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc_parse.c b/proc_parse.c index 2ba72d643..cd1e7d63e 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -97,7 +97,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files) goto err; } - if (strstr(big_buffer, "[stack]")) { + if (strstr(big_buffer, "[stack")) { vma_area->vma.status |= VMA_AREA_REGULAR | VMA_AREA_STACK; vma_area->vma.flags |= MAP_GROWSDOWN; } else if (strstr(big_buffer, "[vsyscall]")) {