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 1252436

Summary: using timer probes gets a compilation error
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: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: lberk, mbenitez, mcermak, mjw
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemtap-2.8-8.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:47:31 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:
Bug Depends On:    
Bug Blocks: 1246123    

Description Martin Cermak 2015-08-11 12:13:28 UTC
Using systemtap-2.8-7.el7.aarch64 running on top kernel kernel-4.2.0-0.rc3.16.el7.aarch64, I see:

=======
S aarch64 # stap -v -e 'probe timer.s(1){exit()}'
Pass 1: parsed user script and 107 library script(s) using 159168virt/43712res/6080shr/34112data kb, in 320usr/20sys/336real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 159744virt/43712res/6080shr/34688data kb, in 0usr/0sys/8real ms.
Pass 3: translated to C into "/tmp/stapeN1Im7/stap_3e021ce615d9cb7006177abf2e62a68e_969_src.c" using 159744virt/46016res/7168shr/34688data kb, in 0usr/0sys/0real ms.
In file included from /usr/share/systemtap/runtime/timer.c:17:0,
                 from /tmp/stapeN1Im7/stap_3e021ce615d9cb7006177abf2e62a68e_969_src.c:175:
/usr/share/systemtap/runtime/linux/timer.c: In function ‘_stp_hrtimer_init’:
/usr/share/systemtap/runtime/linux/timer.c:19:2: error: implicit declaration of function ‘hrtimer_get_res’ [-Werror=implicit-function-declaration]
  hrtimer_get_res (CLOCK_MONOTONIC, &res);
  ^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapeN1Im7/stap_3e021ce615d9cb7006177abf2e62a68e_969_src.o] Error 1
make: *** [_module_/tmp/stapeN1Im7] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_3e021ce615d9cb7006177abf2e62a68e_969.ko" in 5780usr/240sys/7153real ms.
Pass 4: compilation failed.  [man error::pass4]
S aarch64 # vim /usr/share/systemtap/runtime/linux/timer.c
S aarch64 # uname -r
4.2.0-0.rc3.16.el7.aarch64
S aarch64 # 
=======

This appears to be fixed upstream in PR18634, commit 86f726b7785a035a2d6bc9ec2642c46621587d23. Please, backport.

Comment 1 Martin Cermak 2015-08-11 14:27:15 UTC
Looks fine with systemtap-2.8-8.el7. Thanks!

Comment 4 errata-xmlrpc 2015-11-19 11:47:31 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