This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/5554] sytemtap.syscall failures on ia64.


------- Additional Comments From wcohen at redhat dot com  2008-01-25 15:32 -------
The checked in patch for bz5554 causes the syscall tests to fail on RHEL4/5
kernel on i386 machines.

Trying to build the systemtap.syscall/sys.stp:

 ../../install/bin/stap -vv ../../src/testsuite/systemtap.syscall/sys.stp

Ends up producing the following error messages that SEGMENT_RPL_MASK and
USER_RPL undefined on  RHEL4 i386 2.6.9-67.0.1.ELsmp and RHEL5 i386
2.6.18-53.1.4.el5:

2dcdef1bb34572403776cda3605b_421823.o
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c: In function
`function___is_user_regs':
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c:33210: error:
`SEGMENT_RPL_MASK' undeclared (first use in this function)
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c:33210: error:
(Each undeclared identifier is reported only once
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c:33210: error: for
each function it appears in.)
/tmp/stapzirZcY/stap_d39a2dcdef1bb34572403776cda3605b_421823.c:33210: error:
`USER_RPL' undeclared (first use in this function)

See that linux-2.6.24/include/asm-x86/segment_32.h has definition for the
SEGMENT_RPL_MASK.

The x86_64 version has:

	THIS->__retvalue = (!!((cs & 3)));

For the x86_64 version is it going to return 1 for 1, 2, and 3 in the low bits
of cs. The i386 version is only going to return 1 if the value is 3. Why the
difference in test for x86_64 and i386? The include/asm-x86/ptrace.h has the
same logic. It seems like there could be some simplification there.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://sourceware.org/bugzilla/show_bug.cgi?id=5554

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]