Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1160837

Summary: systemtap.examples/io/iostat-scsi issue
Product: Red Hat Enterprise Linux 7 Reporter: Martin Cermak <mcermak>
Component: systemtapAssignee: Frank Ch. Eigler <fche>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: low Docs Contact:
Priority: low    
Version: 7.1CC: dsmith, lberk, mbenitez, mcermak, mjw
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:46:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
stap-report output none

Description Martin Cermak 2014-11-05 18:46:42 UTC
Created attachment 954133 [details]
stap-report output

The systemtap.examples/io/iostat-scsi probably needs either fix or at least test_support: update:


 7.0 S x86_64 # stap -g iostat-scsi.stp 1 -c "sleep 1"
semantic error: while resolving probe point: identifier 'kernel' at iostat-scsi.stp:37:50
        source: probe module("sd_mod").function("sd_prep_fn") !, kernel.function("sd_prep_fn") {
                                                                 ^

semantic error: no match (similar functions: scsi_prep_fn, hp_sw_prep_fn, alua_prep_fn, rdac_prep_fn, k_fn)

semantic error: while resolving probe point: identifier 'module' at :37:7
        source: probe module("sd_mod").function("sd_prep_fn") !, kernel.function("sd_prep_fn") {
                      ^

semantic error: no match (similar functions: sd_prot_op, sd_rescan, sd_dif_ip_fn, sd_open, sd_probe)

Pass 2: analysis failed.  [man error::pass2]
 7.0 S x86_64 # 


Similar error on other arches too.



 7.0 S x86_64 # grep ^test_support iostat-scsi.meta
test_support: stap -l 'module("st").function("st_do_scsi")!,kernel.function("st_do_scsi")'
 7.0 S x86_64 #

Comment 1 David Smith 2014-11-06 20:52:33 UTC
Fixed with upstream commit 6fb025a:

<https://sourceware.org/git/gitweb.cgi?p=systemtap.git;a=commit;h=6fb025aaaa355a8d93dc1ea720007a22665c7659>

====
Fixed BZ1160837 by updating the iostat-scsi.stp example.

* testsuite/systemtap.examples/io/iostat-scsi.stp: Updated for newer
  kernels like RHEL7 and rawhide. Probes the "sd_init_command" kernel
  function which replaced "sd_prep_fn" in newer kernels. Added whitespace
  for more clarity.
====

Tested under RHEL6 (x86_64, ppc64, s390x), RHEL7 (x86_64, ppc64, s390x), and rawhide (x86_64).

The problem was that the upstream kernel had renamed the 'sd_prep_fn()' to 'sd_init_command()'. Also worked around an issue with missing parameter debuginfo on an inlined function on ppc64.

Comment 3 David Smith 2015-06-22 20:45:17 UTC
This appears to be fixed in systemtap 2.8.

Comment 8 errata-xmlrpc 2015-11-19 11:46:42 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.

https://rhn.redhat.com/errata/RHEA-2015-2124.html

Comment 9 BugMasta 2016-02-26 01:50:30 UTC Comment hidden (spam)
Comment 10 Frank Ch. Eigler 2016-02-26 05:21:08 UTC
(In reply to BugMasta from comment #9)
> IS THERE ANY PARTICULAR REASON WHY SYSTEMTAP 2.8 WITH FIX FOR THIS BUG HAS
> NOT BEEN RELEASED FOR EL6???????

It will be in RHEL6.8.

Comment 11 mbenitez 2016-02-26 14:19:49 UTC
(In reply to BugMasta from comment #9)
> IS THERE ANY PARTICULAR REASON WHY SYSTEMTAP 2.8 WITH FIX FOR THIS BUG HAS
> NOT BEEN RELEASED FOR EL6???????
> 
> 
> I AM EFFING SICK OF THIS
> PEOPLE DON'T GIVE A GODDAMN.

Please be aware that every RHEL has a different release cycle. This bug was timely fixed for the release it was scheduled for [RHEL 7].

If you are a customer your sales or support account representative can help you open a customer case an escalate the issue for a faster turn around for high priority / critical issues.