* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
@ 2009-04-19 16:15 ` fche at redhat dot com
2009-07-03 7:54 ` wenji dot huang at oracle dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2009-04-19 16:15 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2009-04-19 16:14 -------
By studying the placement of the tracepoint, one can probably
identify a nearly-equivalent kprobe as a fallback, which could
be listed in the .stp file thusly:
probe kernel.trace("kfree_skb")!,
kernel.function("dev_kfree_skb" /* ? */) { ... }
If parameters are needed, one'd have to split this up into
tapset/alias constructs, like this:
probe kfree_skb_1 = kernel.trace("kfree_skb") { it=$arg1 ... }
probe kfree_skb_2 = kernel.function("dev_kfree_skb") { it=$foo ... }
probe kfree_skb_1 ! , kfree_skb_2 { println (it) }
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
2009-04-19 16:15 ` [Bug testsuite/10084] " fche at redhat dot com
@ 2009-07-03 7:54 ` wenji dot huang at oracle dot com
2009-07-03 13:01 ` fche at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: wenji dot huang at oracle dot com @ 2009-07-03 7:54 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wenji dot huang at oracle dot com 2009-07-03 07:54 -------
See the definition of trace point in kfree_skb(struct sk_buff *skb)
...
else if (likely(!atomic_dec_and_test(&skb->users)))
return;
trace_kfree_skb(skb, __builtin_return_address(0));
__kfree_skb(skb);
}
Maybe we can select __kfree_skb as the probe point. But Not easy to find the
replacement for the parameter __builtin_return_address(0).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
2009-04-19 16:15 ` [Bug testsuite/10084] " fche at redhat dot com
2009-07-03 7:54 ` wenji dot huang at oracle dot com
@ 2009-07-03 13:01 ` fche at redhat dot com
2009-07-09 7:25 ` wenji dot huang at oracle dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2009-07-03 13:01 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2009-07-03 13:00 -------
> [...] But Not easy to find the
> replacement for the parameter __builtin_return_address(0).
That number should be available from the backtrace, as in caller*().
... except that doesn't work except from kretprobes. That should
be fixed.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
` (2 preceding siblings ...)
2009-07-03 13:01 ` fche at redhat dot com
@ 2009-07-09 7:25 ` wenji dot huang at oracle dot com
2009-09-09 4:58 ` wenji dot huang at oracle dot com
2009-09-09 10:29 ` mjw at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: wenji dot huang at oracle dot com @ 2009-07-09 7:25 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wenji dot huang at oracle dot com 2009-07-09 07:25 -------
Created an attachment (id=4046)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4046&action=view)
draft code
The return_addr of patch is almost equivalent to __builtin_return_address(0),
except for calling from some modules. For example in i386 machine,
typical outputs will have
...
19 packets dropped at location 0xc06a9197
1 packets dropped at location 0xd112a392
...
For 0xc06a9197, return_addr() will return the same number. But
it can't resolve 0xd112a392, will return 0. Also the implementation
of return_addr() doesn't depend on architecture, is to extract number
from backtrace() string.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
` (3 preceding siblings ...)
2009-07-09 7:25 ` wenji dot huang at oracle dot com
@ 2009-09-09 4:58 ` wenji dot huang at oracle dot com
2009-09-09 10:29 ` mjw at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: wenji dot huang at oracle dot com @ 2009-09-09 4:58 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wenji dot huang at oracle dot com 2009-09-09 04:57 -------
See commit 2de206d6b209e5e3b518f38c9991e4434940f72e for PR #10604
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug testsuite/10084] systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
2009-04-19 12:48 [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint mjw at redhat dot com
` (4 preceding siblings ...)
2009-09-09 4:58 ` wenji dot huang at oracle dot com
@ 2009-09-09 10:29 ` mjw at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: mjw at redhat dot com @ 2009-09-09 10:29 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-09 10:28 -------
Thanks, I think marking it UNTESTED when there isn't a kfree_skb tracepoint is fine.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10084
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 7+ messages in thread