public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/10084] New: systemtap.examples/network/dropwatch fails on kernels without kfree_skb tracepoint
@ 2009-04-19 12:48 mjw at redhat dot com
  2009-04-19 16:15 ` [Bug testsuite/10084] " fche at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mjw at redhat dot com @ 2009-04-19 12:48 UTC (permalink / raw)
  To: systemtap

For example on 2.6.27.21-170.2.56.fc10.i686:

attempting command  stap -p4 dropwatch.stp
OUT semantic error: no match while resolving probe point kernel.trace("kfree_skb
")
Pass 2: analysis failed.  Try again with another '--vp 01' option.
child process exited abnormally
RC 1
FAIL: systemtap.examples/network/dropwatch build
attempting command  stap dropwatch.stp -c "sleep 1"
OUT semantic error: no match while resolving probe point kernel.trace("kfree_skb
")
Pass 2: analysis failed.  Try again with another '--vp 01' option.
child process exited abnormally
RC 1
FAIL: systemtap.examples/network/dropwatch run

-- 
           Summary: systemtap.examples/network/dropwatch fails on kernels
                    without kfree_skb tracepoint
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com
                CC: wcohen at redhat dot com


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 ` 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

end of thread, other threads:[~2009-09-09 10:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-09-09  4:58 ` wenji dot huang at oracle dot com
2009-09-09 10:29 ` mjw at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).