Bug 706185 - softirq.* probes do not work on el5 kernels
Summary: softirq.* probes do not work on el5 kernels
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: systemtap
Version: 5.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Frank Ch. Eigler
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 17:41 UTC by Bryn M. Reeves
Modified: 2012-02-21 05:44 UTC (History)
4 users (show)

Fixed In Version: systemtap-1.6-3.el5
Doc Type: Bug Fix
Doc Text:
The trace points for softirq probe points in the RHEL 5 kernels used older versions of the tracepoint names. The irq.stp tapset used the newer kernel tracepoint names. As a result, the softirq.* probepoints would not found on RHEL 5 kernels. The irq.stp tapset has been updated to allow systemtap to find the older softirq probe points in the RHEL5 kernels.
Clone Of:
Environment:
Last Closed: 2012-02-21 05:44:45 UTC
Target Upstream Version:


Attachments (Terms of Use)
upstream patch re-diffed for 1.3 (911 bytes, patch)
2011-05-19 17:41 UTC, Bryn M. Reeves
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0200 0 normal SHIPPED_LIVE systemtap bug fix update 2012-02-20 14:53:54 UTC

Description Bryn M. Reeves 2011-05-19 17:41:30 UTC
Created attachment 499907 [details]
upstream patch re-diffed for 1.3

Description of problem:
The trace point used by the softirq.entry and softirq.exit probes in the irq.stp tapset were renamed upstream but the RHEL5 kernel still uses the old names causing a resolution failure for scripts using these probes:

# stap -v softirq.stp 
Pass 1: parsed user script and 72 library script(s) using 87148virt/21484res/2612shr kb, in 100usr/10sys/119real ms.
semantic error: no match while resolving probe point softirq.entry
Pass 2: analyzed script: 2 probe(s), 7 function(s), 1 embed(s), 2 global(s) using 150976virt/25916res/4088shr kb, in 20usr/60sys/83real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.


Version-Release number of selected component (if applicable):
systemtap-1.3-4.el5


How reproducible:
100%

Steps to Reproduce:
1. stap -e 'probe softirq.entry { print("foo\n") } probe softirq.exit {
print("bar\n")} probe timer.ms(1000) { exit() }'
  
Actual results:
# stap -e 'probe softirq.entry { print("foo\n") } probe softirq.exit {
print("bar\n")} probe timer.ms(1000) { exit() }'
semantic error: no match while resolving probe point softirq.entry
semantic error: no match while resolving probe point softirq.exit
Pass 2: analysis failed.  Try again with another '--vp 01' option.
[root@rhel5vm-0 tapset]# echo $?
1

Expected results:
# stap -e 'probe softirq.entry { print("foo\n") } probe softirq.exit {
print("bar\n")} probe timer.ms(1000) { exit() }'
foo
bar
foo
bar
foo
bar
foo
bar
foo
foo
bar
bar
[...]
# echo $?
0

Additional info:
http://sourceware.org/ml/systemtap/2011-q2/msg00199.html

Comment 1 Frank Ch. Eigler 2011-05-19 18:08:40 UTC
Committed upstream.

Comment 5 William Cohen 2012-01-18 17:21:18 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The trace points for softirq probe points in the RHEL 5 kernels used
older versions of the tracepoint names. The irq.stp tapset used the
newer kernel tracepoint names. As a result, the softirq.* probepoints
would not found on RHEL 5 kernels. The irq.stp tapset has been updated
to allow systemtap to find the older softirq probe points in the RHEL5
kernels.

Comment 6 errata-xmlrpc 2012-02-21 05:44:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0200.html


Note You need to log in before you can comment on or make changes to this bug.