* [Bug tapsets/3423] New: src/testsuite/systemtap.base/probefunc.exp fails on IA64
@ 2006-10-25 3:42 thang dot p dot nguyen at intel dot com
2006-10-25 3:48 ` [Bug tapsets/3423] " fche at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: thang dot p dot nguyen at intel dot com @ 2006-10-25 3:42 UTC (permalink / raw)
To: systemtap
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
The probefunc.exp fails on printing the probe name for a statement probe.
The probe below is supposed to print the probe name scheduler_tick on IA64
(2.6.17-1.2519.4.21.el5, ia64 GNU/Linux), but an empty string is printed
instead.
probe kernel.statement(0xa000000100068e40){
printf("%s\n", probefunc())
}
There seems to be a bug in probefunc() in tapset/context.stp. The comparison
(REG_IP(CONTEXT->regs) >= PAGE_OFFSET) is not valid in this particular case
since the values below were observed:
REG_IP(CONTEXT->regs) = 0xa000000100068e40
PAGE_OFFSET=0xe000000000000000
--
Summary: src/testsuite/systemtap.base/probefunc.exp fails on IA64
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: thang dot p dot nguyen at intel dot com
CC: bibo dot mao at intel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3423
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/3423] src/testsuite/systemtap.base/probefunc.exp fails on IA64
2006-10-25 3:42 [Bug tapsets/3423] New: src/testsuite/systemtap.base/probefunc.exp fails on IA64 thang dot p dot nguyen at intel dot com
@ 2006-10-25 3:48 ` fche at redhat dot com
2006-10-25 3:53 ` bibo dot mao at intel dot com
2006-10-25 6:54 ` bibo dot mao at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2006-10-25 3:48 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2006-10-25 03:48 -------
Actually, the comparison appears to be sound, except that the
pointers need to be compared in an *unsigned* manner.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3423
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/3423] src/testsuite/systemtap.base/probefunc.exp fails on IA64
2006-10-25 3:42 [Bug tapsets/3423] New: src/testsuite/systemtap.base/probefunc.exp fails on IA64 thang dot p dot nguyen at intel dot com
2006-10-25 3:48 ` [Bug tapsets/3423] " fche at redhat dot com
@ 2006-10-25 3:53 ` bibo dot mao at intel dot com
2006-10-25 6:54 ` bibo dot mao at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: bibo dot mao at intel dot com @ 2006-10-25 3:53 UTC (permalink / raw)
To: systemtap
------- Additional Comments From bibo dot mao at intel dot com 2006-10-25 03:53 -------
The main aim of the comparison is to judge whether REG_IP(CONTEXT->regs) is
within kernel space, I will check all architecture to watch whether PAGE_OFFSET
is limit of user space vs kernel space.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3423
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tapsets/3423] src/testsuite/systemtap.base/probefunc.exp fails on IA64
2006-10-25 3:42 [Bug tapsets/3423] New: src/testsuite/systemtap.base/probefunc.exp fails on IA64 thang dot p dot nguyen at intel dot com
2006-10-25 3:48 ` [Bug tapsets/3423] " fche at redhat dot com
2006-10-25 3:53 ` bibo dot mao at intel dot com
@ 2006-10-25 6:54 ` bibo dot mao at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: bibo dot mao at intel dot com @ 2006-10-25 6:54 UTC (permalink / raw)
To: systemtap
------- Additional Comments From bibo dot mao at intel dot com 2006-10-25 06:54 -------
I do not know whether it is possible to use user_mode macro to judge whether it
is in kernel space or userspace, change tapset/context.stp as follows:
-----------------------------------------------
} else if (CONTEXT->regs &&
(!user_mode(CONTEXT->regs))) {
-----------------------------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |thang dot p dot nguyen at
|redhat dot com |intel dot com
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=3423
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-25 6:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-25 3:42 [Bug tapsets/3423] New: src/testsuite/systemtap.base/probefunc.exp fails on IA64 thang dot p dot nguyen at intel dot com
2006-10-25 3:48 ` [Bug tapsets/3423] " fche at redhat dot com
2006-10-25 3:53 ` bibo dot mao at intel dot com
2006-10-25 6:54 ` bibo dot mao at intel dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).