Bug 6946 - stap unable to resolve probe points for 32 bit user space apps on PPC64 arch.
Summary: stap unable to resolve probe points for 32 bit user space apps on PPC64 arch.
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 14:06 UTC by Srikar Dronamraju
Modified: 2008-10-24 17:02 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
proposed fix (287 bytes, patch)
2008-10-17 20:48 UTC, Jim Keniston
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srikar Dronamraju 2008-10-06 14:06:54 UTC
While trying to run testsuite/systemtap.base/bz6850.stp on powerpc machine, stap
errors out.
Here are the details.

#file bz6850
./bz6850: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1          
                                                         
(SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for        
                                                         
GNU/Linux 2.6.9, not stripped   
# stap -v -v -v bz6850.stp                                                     
                                                         
SystemTap translator/driver (version 0.7.1/0.137 git branch                    
                                                         
origin_master, commit 5311c037 + changes)                                      
                                                         
Copyright (C) 2005-2008 Red Hat, Inc. and others                               
                                                         
This is free software; see the source for copying conditions.                  
                                                         
Session arch: ppc64 release: 2.6.23                                            
                                                         
Created temporary directory "/tmp/stapceaG4O"                                  
                                                         
Searched '/usr/local/share/systemtap/tapset/ppc64/*.stp', found 2              
                                                         
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43                   
                                                         
Pass 1: parsed user script and 45 library script(s) in                         
                                                         
430usr/10sys/501real ms.                                                       
                                                         
parsed '*' -> func '*'                                                         
                                                         
semantic error: ELF machine ppc (code 20) mismatch with target ppc64 in        
                                                         
'/home/srikar/work/git.systemtap/testsuite/systemtap.base/bz6850'              
                                                         
semantic error: no match while resolving probe point                           
                                                         
process("./bz6850").function("*").call                                         
                                                         
parsed '*' -> func '*'                                                         
                                                         
semantic error: no match while resolving probe point                           
                                                         
process("./bz6850").function("*").return                                       
                                                         
semantic error: no probes found                                                
                                                         
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0              
                                                         
global(s) in 0usr/0sys/8real ms.                                               
                                                         
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.          
                                                         
Running rm -rf /tmp/stapceaG4O  

However a 64 bit bz6850 does seem to face the same problem.
Comment 1 Jim Keniston 2008-10-17 20:48:30 UTC
Created attachment 3003 [details]
proposed fix

Srikar, could you please see if this fixes the problem?

> However a 64 bit bz6850 does seem to face the same problem.
Is this a typo?  s/does/doesn't/, per Srikar's 10/8/08 comment on bug 6850?
Comment 2 Srikar Dronamraju 2008-10-22 17:40:46 UTC
> 
> Srikar, could you please see if this fixes the problem?

Verified that this patch fixes the problem of tracing 32 bit user applications. 

> 
> > However a 64 bit bz6850 does seem to face the same problem.
> Is this a typo?  s/does/doesn't/, per Srikar's 10/8/08 comment on bug 6850?
Yes that was a typo from my end.

Comment 3 Jim Keniston 2008-10-24 17:02:23 UTC
Indicated fix checked in: commit 7635926