summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall
Commit message (Collapse)AuthorAgeFilesLines
* Support signalfd4 in syscalls2.stp tapset.Mark Wielaard2010-03-211-0/+35
| | | | | | | * 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.
* Add inotify_init1() and inotify_add_watch() mask string support.Mark Wielaard2010-03-211-0/+28
| | | | | | | | * 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.
* Add support for eventfd2 to syscall.stp tapset.Mark Wielaard2010-03-211-0/+21
| | | | | | | * 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.
* Explicitly test first kernel version in utimensat syscall test.Mark Wielaard2010-03-211-1/+2
| | | | | * testsuite/systemtap.syscall/futimes.c: utimensat was only available since 2.6.22, but libc headers might already define __NR_utimensat.
* Add support for dup3 to syscall.stp tapset.Mark Wielaard2010-03-211-0/+43
| | | | | | * 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.
* Support epoll_create1 syscall.Mark Wielaard2010-03-211-0/+5
| | | | | | * tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function. * tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1 if available.
* Add ia64 pipe result support. Relax pipe syscall test a little.Mark Wielaard2010-03-191-3/+3
| | | | | | * 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.
* Add testcase for syscall.pipe.Mark Wielaard2010-03-191-0/+27
|
* Fixed PR 11269 by properly handling mmap syscall 'fd' argument.David Smith2010-02-231-1/+20
| | | | | | | | | | | | | | * 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.
* Prevent accidental global cleanup triggering for syscall test.tcl.Mark Wielaard2010-02-222-34/+34
| | | | | | | | | | | 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.
* Test for sendfile syscall can handle non-socket fds now.Mark Wielaard2010-02-131-4/+4
| | | | | | | | 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.
* Fixed PR 11270 by adding nd_syscall testcase.David Smith2010-02-104-2/+99
| | | | | | | | | | * 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.
* Fixed rawhide syscall testsuite problem.David Smith2010-01-141-2/+2
| | | | | * testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has been deprecated on rawhide. Replaced with 'memset()'.
* Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-131-1/+10
| | | | | | | | | | * 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.
* PR 6691 fixed by adding support for sys_accept4.David Smith2009-11-021-1/+1
| | | | | | | | | | * 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.
* Fix syscall testsuite bugs.David Smith2009-10-299-17/+37
| | | | | | | | | | | | | | | * 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.
* PR10799: warn on possibly uintended local-vs-global namespace collisionFrank Ch. Eigler2009-10-191-5/+5
| | | | | | | | | * 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.
* PR10608: mark test cases untested once compilation failedWenji Huang2009-09-142-28/+17
| | | | | | | * 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.
* Fix arguments to mktemp with less than 6 X'sEugeniy Meshcheryakov2009-05-052-2/+2
|
* systemtap.syscall tests do use + and * as metachars.Mark Wielaard2009-05-031-2/+4
| | | | | | | | + 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 *.
* syscalls testsuite: use different escape sequenceFrank Ch. Eigler2009-04-3031-256/+261
| | | | | | | | | | | | 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.
* whitespace tweak in tcl codeFrank Ch. Eigler2009-04-301-9/+3
|
* Kill all ChangeLogsJosh Stone2009-02-191-229/+0
| | | | | | 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.
* send/send_log needs a -- with a constant string that starts with -----Srikar Dronamraju2009-01-131-1/+1
|
* clone (CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD) is just fork ().Mark Wielaard2008-11-272-1/+6
|
* Expect syscall faccessat, fchmodat, linkat, symlinkat, readlinkat chain-calls.Mark Wielaard2008-10-054-11/+31
|
* Low byte of clone flags is always set to SIGCHLD in forkwait.c test.Mark Wielaard2008-09-172-1/+5
|
* Timer id in timer.c test can be arbitrary number.Mark Wielaard2008-09-172-4/+8
|
* Don't try including unnecessary asm/page.h in swap.c test.Mark Wielaard2008-09-172-1/+4
|
* PR5001: Remove _stp_ctime and always use ctime.Mark Wielaard2008-05-202-3/+3
|
* 2008-02-22 Frank Ch. Eigler <fche@elastic.org>fche2008-02-232-1/+7
| | | | | * test.tcl: Support noexec /tmp by creating test directory under build tree instead of /tmp.
* 2008-01-09 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-01-092-1/+20
| | | | | | PR5554 * systemtap.syscall/alarm.c: Fix expected output patterns on ia64. * systemtap.syscall/stat.c: Ditto.
* timers.c init tid to 0 to workaround s390x bug.dwilder2007-10-122-1/+4
|
* futimes.c : Only test system calls that have numbers assigned in asm/unistd.hdwilder2007-10-112-7/+22
|
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-092-2/+11
| | | | * rt_signal.c: Fix expected results for IA64.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-093-29/+36
| | | | | | | * rt_signal.c: Fix expected patterns to match recent changes in tapsets. * signal.c: Use syscall(). Fix expected patterns.
* testsuite verbosity cleanupfche2007-10-031-1/+1
| | | | | | 2007-10-03 Frank Ch. Eigler <fche@elastic.org> * systemtap.syscall/test.tcl: Don't list PASS on stdout.
* 2007-10-02 William Cohen <wcohen@redhat.com>wcohen2007-10-023-8/+8
| | | | | | * systemtap.syscall/signal.c: * systemtap.syscall/uid16.c: Compilation regardless of defines. * systemtap.syscall/test.tcl: Handle UNSUPP tests correctly.
* 2007-10-01 Martin Hunt <hunt@redhat.com>hunt2007-10-012-7/+12
| | | | | * test.tcl (run_one_test): Append newlines when using send_log().
* *** empty log message ***hunt2007-09-251-1/+1
|
* 2007-09-25 Martin Hunt <hunt@redhat.com>hunt2007-09-252-11/+16
| | | | | * test.tcl (run_one_test): Fix unsupported results. Send failure diffs to log.
* 2007-09-24 Martin Hunt <hunt@redhat.com>hunt2007-09-242-1/+5
| | | | * link.c (main): Don't check result code.
* 2007-09-19 Martin Hunt <hunt@redhat.com>hunt2007-09-195-131/+121
| | | | | | | | | | | 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.
* *** empty log message ***hunt2007-09-171-4/+4
|
* 2007-09-17 Martin Hunt <hunt@redhat.com>hunt2007-09-171-0/+4
| | | | * timer.c (main): Remove the return value checks.
* *** empty log message ***hunt2007-08-221-0/+4
|
* 2007-08-22 Martin Hunt <hunt@redhat.com>hunt2007-08-224-3/+34
| | | | * futimes.c (main): Add utimensat tests.
* 2007-08-16 Martin Hunt <hunt@redhat.com>hunt2007-08-162-0/+45
| | | | * all_syscalls.stp: New file. Useful for debugging.
* 2007-07-31 Martin Hunt <hunt@redhat.com>hunt2007-07-312-2/+6
| | | | * clock.c (main): Change flags to hex.
* fixed support for pread and pwrite for s390x. Added tests for pread and pwrite.dwilder2007-07-302-0/+10
|