Re: [RFC] [PATCH 00/19] Non disruptive application core dumpinfrastructure using task_work_add()

From: Andi Kleen
Date: Fri Oct 04 2013 - 09:44:27 EST


On Fri, Oct 04, 2013 at 04:00:12PM +0530, Janani Venkataraman wrote:
> Hi all,
>
> The following series implements an infrastructure for capturing the core of an
> application without disrupting its process.

The problem is that gcore et.al. have to stop the process briefly
to attach and then use the pid mmap ptrace interfaces, right?

Couldn't they just use the new process_vm_readv() syscalls instead?
AFAIK those do not require ptrace.

Then this could be all done in user space.

Or are there some specific races with this approach?

-Andi

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/