Re: [PATCH 5/8] trace_uprobe: Support SDT markers having reference count (semaphore)

From
Ravi Bangoria <hidden>
Date
2018-03-16 09:01:34
Also in
linux-doc, lkml
Reply to
Steven Rostedt, 2018-03-15

On 03/15/2018 10:18 PM, Steven Rostedt wrote:
On Tue, 13 Mar 2018 18:26:00 +0530
Ravi Bangoria [off-list ref] wrote:
quoted
+static void sdt_increment_ref_ctr(struct trace_uprobe *tu)
+{
+	struct uprobe_map_info *info;
+	struct vm_area_struct *vma;
+	unsigned long vaddr;
+
+	uprobe_start_dup_mmap();
Please add a comment here that this function ups the mm ref count for
each info returned. Otherwise it's hard to know what that mmput() below
matches.
Sure. Will add it.

Thanks for the review,
Ravi
Thread (54 messages) 54 messages, 5 authors, last reply 2018-03-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help