From: "mhiramat at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug testsuite/5554] sytemtap.syscall failures on ia64.
Date: Tue, 08 Jan 2008 21:49:00 -0000 [thread overview]
Message-ID: <20080108214836.26684.qmail@sourceware.org> (raw)
In-Reply-To: <20080108200751.5554.mhiramat@redhat.com>
------- Additional Comments From mhiramat at redhat dot com 2008-01-08 21:48 -------
I compared those results with strace's output.
============================
1) alarm
============================
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={1, 0}}, {it_interval={0,
0}, it_value={0, 0}}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGALRM (Alarm clock) @ a000000000010621 (0) ---
<... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call)
rt_sigreturn() = ? (mask now [])
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0,
0}, it_value={0, 0}}) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
nanosleep({0, 1234000}, NULL) = 0
nanosleep({0, 789}, {6917546615532158977, 2305843009214016656}) = 0
nanosleep({0, 789}, NULL) = 0
exit_group(0) = ?
=============================
From the output of strace, script's output is correct.
alarm() and pause() are implemented as a setitimer()
and a sigsuspend() respectively on ia64. Thus, this test have to check
setitimer() and sigsuspend() instead of alarm() and pause() on ia64.
============================
2) forkwait
============================
clone2(child_stack=0, stack_size=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x20000000002e0090) = 30908
wait4(30908, 0x60000ffffffd3748, WNOHANG, NULL) = 0
exit_group(0)
=============================
Here, I found a bug; syscalls.stp failed to detect clone systemcall on ia64.
Currently, syscalls.stp(syscall.fork) checks start_stack==0, but on ia64, clone
systemcall is sometimes issued with start_stack=0. And I found that kernel_thread()
calls do_fork() with start_stack=-1 on x86-64.
Thus, we have to check another condition.
============================
3) stat
============================
stat("foobar", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
lstat("foobar", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
utimes("foobar", {{1, 0}, {1135641600, 0}}) = 0
utimes("foobar", {{1135690000, 0}, {1135700000, 0}}) = 0
exit_group(0) = ?
=============================
On ia64, since utime() is implemented by utimes(), this test have to
check utimes() on ia64.
--
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.
next prev parent reply other threads:[~2008-01-08 21:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 20:08 [Bug testsuite/5554] New: " mhiramat at redhat dot com
2008-01-08 21:49 ` mhiramat at redhat dot com [this message]
2008-01-08 21:53 ` [Bug testsuite/5554] " mhiramat at redhat dot com
2008-01-09 21:13 ` mhiramat at redhat dot com
2008-01-09 21:14 ` mhiramat at redhat dot com
2008-01-09 21:21 ` mhiramat at redhat dot com
2008-01-09 22:49 ` mhiramat at redhat dot com
2008-01-22 22:49 ` mhiramat at redhat dot com
2008-01-23 0:18 ` fche at redhat dot com
2008-01-23 14:19 ` mhiramat at redhat dot com
2008-01-24 17:03 ` mhiramat at redhat dot com
2008-01-25 15:33 ` wcohen at redhat dot com
2008-01-25 15:34 ` wcohen at redhat dot com
2008-01-25 15:44 ` mhiramat at redhat dot com
2008-01-28 21:53 ` wcohen at redhat dot com
2008-01-28 22:38 ` mhiramat at redhat dot com
2008-01-29 16:19 ` wcohen at redhat dot com
2008-01-29 16:36 ` fche at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080108214836.26684.qmail@sourceware.org \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).