Bug 669082 - [Errata testing] stap stopped working on ppc after rebase
Summary: [Errata testing] stap stopped working on ppc after rebase
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: systemtap
Version: 4.9
Hardware: powerpc
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Frank Ch. Eigler
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-12 16:12 UTC by Petr Muller
Modified: 2016-09-20 02:07 UTC (History)
2 users (show)

Fixed In Version: 1.3-5.EL
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 14:09:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0229 0 normal SHIPPED_LIVE systemtap enhancement update 2011-02-15 16:35:19 UTC

Description Petr Muller 2011-01-12 16:12:32 UTC
There is something wrong in the way how systemtap works on ppc:

# stap -v heart.stp -p4
Pass 1: parsed user script and 72 library script(s) using 31312virt/22176res/3140shr kb, in 810usr/30sys/850real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) using 31840virt/22900res/3372shr kb, in 20usr/0sys/17real ms.
Pass 3: translated to C into "/tmp/stappNzg5g/stap_cbdf9d3897bdc922b899a9071af04949_597.c" using 31840virt/23156res/3608shr kb, in 0usr/0sys/2real ms.
Makefile:502: /usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/powerpc/Makefile: No such file or directory
make: *** No rule to make target `/usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/powerpc/Makefile'.  Stop.
Pass 4: compiled C into "stap_cbdf9d3897bdc922b899a9071af04949_597.ko" in 40usr/40sys/86real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.

This seems like a difference in the kernel-devel paths:
# ls -d /usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/p*
/usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/parisc  /usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/ppc  /usr/src/kernels/2.6.9-89.33.1.EL-ppc64/arch/ppc64

(there is 'ppc' and 'ppc64' directory, but systemtap searches for powerpc)

Version-Release number of selected component (if applicable):
systemtap-1.3-3.el4.ppc64

How reproducible:
always

Steps to Reproduce:
1. stap -p4 -v -e 'probe timer.ms(500){exit()}'
2.
3.
  
Actual results:
pass 4 fails

Expected results:
no fail

Additional info:

Comment 2 Frank Ch. Eigler 2011-01-12 20:38:25 UTC
The ppc64/ppc -> powerpc architecture merge/rename happened in kernel v2.6.15,
so we need to bypass this on kernels as old as RHEL4's.

Comment 4 Frank Ch. Eigler 2011-01-20 21:15:18 UTC
upstream git commit 4c25c41

Comment 7 errata-xmlrpc 2011-02-16 14:09:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0229.html


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