diff options
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r-- | runtime/task_finder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c index db7a8f38..25fad1a4 100644 --- a/runtime/task_finder.c +++ b/runtime/task_finder.c @@ -825,7 +825,10 @@ __stp_utrace_task_finder_target_quiesce(enum utrace_resume_action action, } } - if (tgt->vm_callback != NULL) { + /* If this is just a thread other than the thread group leader, + don't bother inform vm_callback clients about its memory map, + since they will simply duplicate each other. */ + if (tgt->vm_callback != NULL && (tsk->tgid == tsk->pid)) { struct mm_struct *mm; char *mmpath_buf; char *mmpath; |