[PATCH v5.1 10/13] tracing/uprobes: Fetch args before reserving a ring buffer

2013-09-04 Thread Namhyung Kim
From: Namhyung Kim Fetching from user space should be done in a non-atomic context. So use a per-cpu buffer and copy its content to the ring buffer atomically. Note that we can migrate during accessing user memory thus use a per-cpu mutex to protect concurrent accesses. This is needed since

[PATCH v5.1 10/13] tracing/uprobes: Fetch args before reserving a ring buffer

2013-09-04 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Fetching from user space should be done in a non-atomic context. So use a per-cpu buffer and copy its content to the ring buffer atomically. Note that we can migrate during accessing user memory thus use a per-cpu mutex to protect concurrent accesses.