This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/10421] task.stp pid2task tapset function fails on 2.6.31-0.67.rc2
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 21 Jul 2009 04:40:59 -0000
- Subject: [Bug tapsets/10421] task.stp pid2task tapset function fails on 2.6.31-0.67.rc2
- References: <20090720202932.10421.dsmith@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2009-07-21 04:40 -------
(In reply to comment #3)
> find_get_pid() gets a ref to the pid. You'll need to put_pid() too. Else, you'll
> continue to hold the ref and that's incorrect.
Sorry, don't notice it. So the sequence should be like the follwing?
...
struct pid *p_pid = find_get_pid(t_pid);
t = pid_task(p_pid, PIDTYPE_PID);
put_pid(p_pid);
...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10421
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.