The NetBSD Project

CVS log for src/tests/lib/libc/sys/t_mincore.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:09 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Feb 24 12:20:30 2020 UTC (4 years, 9 months ago) by rin
Branches: MAIN
CVS tags: thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
0x%p --> %p for non-external codes.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Oct 8 08:29:57 2017 UTC (7 years, 2 months ago) by kre
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Branch point for: phil-wifi
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +33 -2 lines

Skip the mincore_shmseg test case if the SYSVSHM option is not configured
in the kernel.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Sep 1 16:51:58 2017 UTC (7 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -2 lines

Allow the test to build on systems where sys/mman.h does not provide
PROT_MPROTECT(), or if the test is built without _NETBSD_SOURCE defined,
by providing a dummy #define if the real one does not exist.  The test
might then fail, if the PROT_MPROTECT() is really needed, but that's
better than not building.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Sep 1 16:27:02 2017 UTC (7 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3 lines


Use PROT_MPROTECT() (which would have been better had it been called
PROT_MAXPROTECT or PROT_ALLOWPROTECT or something) on the mmap() call
which specifies PROT_NONE, and which we later want to change to PROT_READ,
otherwise when PAX is enabled, the mprotect() will fail.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 23 16:01:46 2017 UTC (7 years, 6 months ago) by christos
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -10 lines
Add the error in syscall failure.

Revision 1.8.14.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:59 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +10 -2 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jan 14 20:51:13 2017 UTC (7 years, 10 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -2 lines
Pr/51866: Ngie Cooper: fix leak and release limit on memory to prevent
false positives with mlock/mmap

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 10 22:36:29 2017 UTC (7 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
more tests needing <sys/stat.h>

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:01 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +30 -20 lines
sync with head

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 8 07:18:58 2012 UTC (12 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4 lines
Degrade all intermediate failures due to memory/resource shortage to
"skip" instead of "fail" - only if we get through to the real meat, we
can tell wether mlockall/mincore work or not.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jun 7 09:59:51 2012 UTC (12 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +23 -49 lines
Revert previous - instead of guessing the amount of needed memory locked
limits (often way too high) and skipping the test case if in doubt,
raise the limits as far as we can, and fix a few places in the test where
we could run into the limits and either skip or fail with a reasonable
message.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jun 5 08:44:21 2012 UTC (12 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +46 -2 lines
Try to estimate the number of locked pages the mincore() test will need and
check it against resource limits, skipping the tests if it probably is too
low.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed May 23 16:08:32 2012 UTC (12 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -12 lines
Simplify creation of a temporary file slightly, fix sizeof(buf) confusion
when buf is a pointer.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:12 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -3 lines
sync with head

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Mar 14 11:50:52 2012 UTC (12 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -3 lines
Skip the ENOMEM/RLIMIT_MEMLOCK case when doing mlockall(2).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jul 14 10:24:56 2011 UTC (13 years, 5 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -114 lines
Remove the 't_mincore' test case, as it is essentially a less elegant
version of the recently added page residency checks.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jul 14 08:09:48 2011 UTC (13 years, 5 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +219 -2 lines
Add the test cases from the old ../regress/sys/uvm/mmap/mmap.c.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:57:53 2011 UTC (13 years, 5 months ago) by jruoho
Branches: MAIN
Add the syscall tests back. Couple of files and tests were also renamed for
consistency. All of these now mimic the libc structure.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>