aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/aio
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* tools: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Do a sweep and remove most WARNS=6 settingsKyle Evans2020-10-011-2/+0
| | | | | | | | | | | | | | | Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so. Notes: svn path=/head/; revision=366304
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into theEnji Cooper2015-04-276-1187/+0
| | | | | | | | | FreeBSD test suite as tests/sys/aio MFC after: 1 week Notes: svn path=/head/; revision=282074
* - Fix style(9) a bitEnji Cooper2015-04-272-57/+57
| | | | | | | | | | | | | | -- Fix whitespace -- Use err/errx -- Remove superfluous braces - Be a bit more defensive with input from the end-user - Don't throw a floating point exception by dividing by 0 when processing a zero-byte file MFC after: 1 week Notes: svn path=/head/; revision=282073
* - Fix -Wsign issueEnji Cooper2015-03-312-1/+5
| | | | | | | - Bump up to WARNS=6 Notes: svn path=/head/; revision=280895
* Minor cleanup before converting to ATF testcasesEnji Cooper2015-03-312-17/+22
| | | | | | | | | - Remove blank (tab-only) lines. - Fix -Wunused warnings. - Bump up to WARNS= 6 Notes: svn path=/head/; revision=280894
* Cleanup and do minor refactoring before converting testcases to ATFEnji Cooper2015-03-312-63/+69
| | | | | | | | | | | | | | | | | | - Convert errx(-1, ..) to errx(1, ..) - Move the aio(4) checks to a single function (aio_available); use modfind(2) instead of depending on SIGSYS (doesn't work when aio(4) support is missing, not documented in the aio syscall manpages). - Use aio_available liberally in the testcase functions - Use mkstemp(3) + unlink(2) instead of mktemp(3) - Fix some -Wunused warnings - Bump WARNS to 6 MFC after: 1 week Submitted by: mjohnston [*] Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=280893
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-134-4/+4
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* Fix several warnings.Konstantin Belousov2013-07-211-8/+10
| | | | | | | | | | | Fix crash in aio_pty_cleanup() by initializing the pointer before dereferencing. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=253526
* Include stdint.h when use intmax_t.Kevin Lo2013-07-181-1/+1
| | | | | | | Reported by: bde Notes: svn path=/head/; revision=253447
* Replace PRId64 with "jd" in a printf call. Cast the corresponding value toKevin Lo2013-07-181-1/+1
| | | | | | | | | intmax_t, because the original type is off_t. Reported by: bde Notes: svn path=/head/; revision=253442
* Use PRId64 instead of %gd to print an int64_t.Kevin Lo2013-07-171-1/+2
| | | | Notes: svn path=/head/; revision=253402
* - Fix QA issuesMartin Wilke2011-02-221-45/+55
| | | | | | | | | PR: misc/146687 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> Approved by: rwatson (mentor) Notes: svn path=/head/; revision=218938
* Add missing headers.Konstantin Belousov2010-03-161-0/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=205224
* Add the ability to do all read, all write, or random read/write.Adrian Chadd2008-05-151-9/+44
| | | | Notes: svn path=/head/; revision=179017
* Include a very basic (and beta) tool for stressing disks using the POSIXAdrian Chadd2008-05-072-0/+197
| | | | | | | | | | | | | AIO calls. This small program queues up a controllable number of concurrent AIO read operations w/ controllable io size against a disk or regular file. There are a few other things to add (notably optional write support!) but it works well enough at the present time to stress the AIO code out relatively harshly in the disk IO case. Notes: svn path=/head/; revision=178823
* Style: NO_MAN doesn't need any value.Ruslan Ermilov2006-03-153-3/+3
| | | | Notes: svn path=/head/; revision=156735
* s/sigval/sival/gDavid Xu2006-01-222-2/+2
| | | | Notes: svn path=/head/; revision=154668
* This test can run now.Doug Ambrisko2005-10-121-4/+0
| | | | Notes: svn path=/head/; revision=151261
* This will not compile without:Doug Ambrisko2005-03-022-0/+252
| | | | | | | | | | | | | | http://www.ambrisko.com/doug/listio_kqueue/listio_kqueue.patch Note: it is a good idea to run this against a physical drive to exercise the physio fast path (ie. lio_kqueue /dev/<something safe>) This will ensure op's counting per LIO request is correct. It is currently broken the above patch fixes it. Sponsored by: IronPort Notes: svn path=/head/; revision=142976
* Add an AIO & kqueue regression test. It is a good idea to run thisDoug Ambrisko2005-03-022-0/+203
| | | | | | | | | | | | | | | | | | against a disk as the argument. If you don't it will use a temp file. The raw disk will use the kernel physio fast path method until the max number of pending op's is reached then it will queue them. File system op's are always queued. This is more important with LIO since operation can get split across and accounting of op's is broken with LIO. Note that this was broken when locking was added to kqueue (ie. 5.3) My fix needs to be better integrated with FreeBSD. Next is an LIO test and implementation. Sponsored by: IronPort Notes: svn path=/head/; revision=142971
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Print a warning if running as !root for aio_md_test rather than failingRobert Watson2004-12-061-1/+5
| | | | | | | the test. Privilege is required in order to allocate an md device. Notes: svn path=/head/; revision=138449
* Add a basic aio functionality regression test, which simply writes andRobert Watson2004-12-062-0/+702
then reads from a fairly broad range of object types: regular file, fifo, UNIX socketpair, pty, UNIX pipe, and an md device. Not a deep test of functionality, just a basic test that aio_write followed by aio_read returns the correct data in a relatively timely manner. Requested by: phk Notes: svn path=/head/; revision=138447