| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_signalfd4_flags_str): New utility function.
* tapset/syscalls2.stp (syscall.signalfd[.return]): Handle signalfd4 variant
when available.
* testsuite/systemtap.syscall/signalfd.c: New test.
|
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_inotify_watch_mask_str): New helper function.
(_inotify_init1_flag_str): Likewise.
* tapset/syscalls.stp (inotify_add_watch): Stringify watch mask.
(syscall.inotify_init[.return]): Add inotify_init1() support.
* testsuite/systemtap.syscall/inotify.c: New test.
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_eventfd2_flag_str): New utility function.
* tapset/syscalls.stp (syscall.eventfd[.return]): Add alternatives to
handle eventfd2.
* testsuite/systemtap.syscall/eventfd.c: New test.
|
|
|
|
|
| |
* testsuite/systemtap.syscall/futimes.c: utimensat was only available since
2.6.22, but libc headers might already define __NR_utimensat.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_dup3_flag_str): New helper function.
* tapset/syscalls.stp (syscall.dup2): Add alternatives to handle dup3 also.
* testsuite/systemtap.syscall/dup.c: New testcase.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function.
* tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1
if available.
|
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pipe.return): ia64 provides pipe0, pipe1
results through (user) registers.
* testsuite/systemtap.syscall/pipe.c: Only expect zero as input fildes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* testsuite/systemtap.syscall/mmap.c (main): Added mprotect and mremap
testing (along with testing of anonymous maps).
* tapset/i386/syscalls.stp: In mmap probes, handle the fact that the
kernel gets an unsigned long 'fd', but the user-side passes a signed
int.
* tapset/i386/nd_syscalls.stp: Ditto.
* tapset/ia64/syscalls.stp: Ditto.
* tapset/powerpc/nd_syscalls.stp: Ditto.
* tapset/powerpc/syscalls.stp: Ditto.
* tapset/x86_64/nd_syscalls.stp: Ditto.
* tapset/x86_64/syscalls.stp: Ditto.
|
|
|
|
|
|
|
|
|
|
|
| |
Later tests might trigger a cleanup and might set the global dir variable
leading to the syscall test.tcl trying to do an exec rm -rf on whatever
dir was set. So rename proc cleanup and global dir in syscall test.tcl to
something a bit less likely to clash.
* testsuite/systemtap.syscall/test.tcl: Rename proc cleanup to syscall_cleanup
and global dir to syscall_dir.
* testsuite/systemtap.syscall/test-debug.tcl: Likewise.
|
|
|
|
|
|
|
|
| |
Since 2.6.33 sendfile can handle non-socket fds, so make the test
handle both success and failure.
* testsuite/systemtap.syscall/sendfile.c (main): Make buffer 22 bytes,
since 22 == EINVAL, test for 22 bytes send or -22 failure.
|
|
|
|
|
|
|
|
|
|
| |
* testsuite/systemtap.syscall/test.tcl: Now uses global variable
'test_script' to find test script to run.
* testsuite/systemtap.syscall/syscall.exp: Sets test_script.
* testsuite/systemtap.syscall/nd_sys.stp: New test script. Copy of
sys.stp, but uses nd_syscall probes.
* testsuite/systemtap.syscall/nd_syscall.exp: New testcase. Copy of
syscall.exp, but uses nd_sys.stp test script.
|
|
|
|
|
| |
* testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has
been deprecated on rawhide. Replaced with 'memset()'.
|
|
|
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function.
* tapset/syscalls2.stp (syscall.sigaction32): Uses new
_struct_old_sigaction32() function to provide a human readable version
of the sigaction argument.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C
flags when pre-processing test files to better determine which tests are
valid on which platforms.
|
|
|
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added
socket flags support.
(_sock_flags_str): New function.
* tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it
exists. Added support for sys_accept4's 'flag' parameter.
* testsuite/systemtap.syscall/net1.c (main): Updated regular expression to
handle the new 'flags' argument.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* testsuite/systemtap.syscall/test.tcl: Substitute '[[[[' and ']]]]' for
'(' and ')'. This allows us to get unquoted parens.
* testsuite/systemtap.syscall/test-debug.tcl: Matches substitute logic of
test.tcl.
* testsuite/systemtap.syscall/README: Document '[[[[' and ']]]]'.
* testsuite/systemtap.syscall/chmod.c: Handle optional O_LARGEFILE flag in
open calls.
* testsuite/systemtap.syscall/dir.c: Ditto.
* testsuite/systemtap.syscall/mmap.c: Ditto.
* testsuite/systemtap.syscall/openclose.c: Ditto.
* testsuite/systemtap.syscall/readwrite.c: Ditto.
* testsuite/systemtap.syscall/stat.c: Ditto.
|
|
|
|
|
|
|
|
|
| |
* elaborate.cxx (find_var): Take extra token parameter.
Look for cross-file global variable resolution, signal
a warning.
* testsuite/systemtap.examples/io/traceio2.stp: Fix it.
* testsuite/systemtap.syscall/sys.stp: Fix it.
* NEWS: Document it.
|
|
|
|
|
|
|
| |
* testsuite/systemtap.syscall/syscall.exp: Simplify logic things.
* testsuite/systemtap.syscall/test.tcl: Check compilation result.
* testsuite/systemtap.base/utrace_syscall_args.exp: Change fail to
untested.
|
| |
|
|
|
|
|
|
|
|
| |
+ and * are metacharacters, but should always be used
as metacharacters in the expressions, don't escape them.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Remove escaping
of + and *.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The syscall testsuite uses embedded "// TEXT" markers in the .c files
to designate expected output, kind of like the "dg-" bunch in the gcc
test suite. Unfortunately, "//" is not a unique prefix to systemtap
tests, and in particular it can occur in the system headers that will
be picked up with the "gcc -E -C ..." invocation in test.tcl.
So let's switch to "//staptest//". test.tcl is also modified to
escape a few more mischevious regexp metacharacters that might sneak
past.
|
| |
|
|
|
|
|
|
| |
Mark Wielaard, a dear friend of the departed, will be performing a song
and dance at the funeral services to commemorate the joyous times that
they had together.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* test.tcl: Support noexec /tmp by creating test directory
under build tree instead of /tmp.
|
|
|
|
|
|
| |
PR5554
* systemtap.syscall/alarm.c: Fix expected output patterns on ia64.
* systemtap.syscall/stat.c: Ditto.
|
| |
|
| |
|
|
|
|
| |
* rt_signal.c: Fix expected results for IA64.
|
|
|
|
|
|
|
| |
* rt_signal.c: Fix expected patterns to match
recent changes in tapsets.
* signal.c: Use syscall(). Fix expected patterns.
|
|
|
|
|
|
| |
2007-10-03 Frank Ch. Eigler <fche@elastic.org>
* systemtap.syscall/test.tcl: Don't list PASS on stdout.
|
|
|
|
|
|
| |
* systemtap.syscall/signal.c:
* systemtap.syscall/uid16.c: Compilation regardless of defines.
* systemtap.syscall/test.tcl: Handle UNSUPP tests correctly.
|
|
|
|
|
| |
* test.tcl (run_one_test): Append newlines when
using send_log().
|
| |
|
|
|
|
|
| |
* test.tcl (run_one_test): Fix unsupported results.
Send failure diffs to log.
|
|
|
|
| |
* link.c (main): Don't check result code.
|
|
|
|
|
|
|
|
|
|
|
| |
PR 4931
* test-debug.tcl (cleanup): Remove print.
* README: Update.
* syscall.exp: Source test.tcl and call run_one_test()
from there.
* test.tcl: Rewrite as a function. Do compilation
as well as testing. Compile into and execute in
a directory in /tmp.
|
| |
|
|
|
|
| |
* timer.c (main): Remove the return value checks.
|
| |
|
|
|
|
| |
* futimes.c (main): Add utimensat tests.
|
|
|
|
| |
* all_syscalls.stp: New file. Useful for debugging.
|
|
|
|
| |
* clock.c (main): Change flags to hex.
|
| |
|