path: root/tools/perf/builtin-top.c
diff options
authorKan Liang <>2015-06-17 09:51:10 -0400
committerArnaldo Carvalho de Melo <>2015-06-19 18:20:15 -0300
commit930e6fcd2bcce9bcd9d4aa7e755678d33f3fe6f4 (patch)
tree5f85d268437a01f2a2982be31c82cb00a81efd85 /tools/perf/builtin-top.c
parentc05676c06232e6459a6106ddf0d4e154ce6cd859 (diff)
perf tools: Add time out to force stop proc map processing
System wide sampling like 'perf top' or 'perf record -a' read all threads /proc/xxx/maps before sampling. If there are any threads which generating a keeping growing huge maps, perf will do infinite loop during synthesizing. Nothing will be sampled. This patch fixes this issue by adding per-thread timeout to force stop this kind of endless proc map processing. PERF_RECORD_MISC_PROC_MAP_PARSE_TIME_OUT is introduced to indicate that the mmap record are truncated by time out. User will get warning notification when truncated mmap records are detected. Reported-by: Ying Huang <> Signed-off-by: Kan Liang <> Cc: Andi Kleen <> Cc: David Ahern <> Cc: Ying Huang <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/builtin-top.c')
0 files changed, 0 insertions, 0 deletions