Bug 11080 - error from stack-ppc.c while building ppc module
Summary: error from stack-ppc.c while building ppc module
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 21:26 UTC by Stan Cox
Modified: 2010-01-11 19:13 UTC (History)
0 users

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


Attachments
test script (108 bytes, application/x-sh)
2009-12-10 21:31 UTC, Stan Cox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Cox 2009-12-10 21:26:31 UTC
Running the attachment below on ppc64 rel 5.4 yields:
systemtap/runtime/stack-ppc.c:24: error: ‘STACK_FRAME_LR_SAVE’ undeclared (first
use in this function)
systemtap/runtime/stack-ppc.c:24: error: (Each undeclared identifier is reported
only once
systemtap/runtime/stack-ppc.c:24: error: for each function it appears in.)
systemtap/runtime/stack-ppc.c:41: error: ‘STACK_FRAME_MARKER’ undeclared (first
use in this function)
systemtap/runtime/stack-ppc.c:41: error: ‘STACK_FRAME_REGS_MARKER’ undeclared
(first use in this function)
Comment 1 Stan Cox 2009-12-10 21:31:44 UTC
Created attachment 4458 [details]
test script
Comment 2 David Smith 2010-01-11 19:13:51 UTC
Looks like the following commit fixed this (tested against kernel 2.6.18-164.el5):

commit 0ee3adb42f2f6d8bffe177e77a415b3a74f3a777
Author: Frank Ch. Eigler <fche@elastic.org>
Date:   Tue Dec 22 12:53:17 2009 -0500

    ppc stack: transcribe portions of modern kernel ppc/.../asm/ptrace.h
    
    * runtime/stack-ppc.c (__stp_stack_print): Define STACK_FRAME_LR_SAVE,
      STACK_FRAME_REGS_MARKER,STACK_FRAME_MARKER, etc.