The NetBSD Project

CVS log for src/tests/modules/t_modctl.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / modules

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Sat Feb 22 19:54:34 2020 UTC (4 years, 1 month ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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
Changes since 1.15: +64 -7 lines
Diff to previous 1.15 (colored) to selected 1.12 (colored)

Update the t_modctl test to ensure that static evcnts are added.

While here, remove the explicit call to sysctl_setup() routine,
since the module infrastructure already invokes such routines
automatically.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 22 00:24:15 2020 UTC (4 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored) to selected 1.12 (colored)

Avoid undefined behavior in get_modstat_info

t_modctl.c:114:16, member access within misaligned address 0x71bf5bcede84
for type 'struct modstat_t'

t_modctl.c:116:13, load of misaligned address 0x7e81bc3c9104 for type
'struct modstat_t' which requires 8 byte alignment

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 21 11:45:09 2019 UTC (5 years ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, 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
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.12 (colored)

wether -> whether

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:50 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.12: +10 -6 lines
Diff to previous 1.12 (colored)

Merge the [pgoyette-compat] branch

Revision 1.12 / (download) - annotate - [selected], Mon Aug 20 08:07:52 2012 UTC (11 years, 8 months ago) by martin
Branch: 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, 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, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

Fix stupid thinko when checking for the availability of options MODULAR
and permission to load modules.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 19 20:54:56 2012 UTC (11 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.12 (colored)

Be more verbose if we get unexpected error codes from modctl.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 13 08:07:03 2012 UTC (11 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.9: +18 -19 lines
Diff to previous 1.9 (colored) to selected 1.12 (colored)

Make use of the new MODCTL_EXISTS check to query kernel wether (and why
not) we can load modules.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 17 06:23:52 2012 UTC (12 years ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.12 (colored)

Avoid zero-length format string.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 15 02:02:23 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) to selected 1.12 (colored)

Add __printflike attribution to use vprintf and friends with an argument
as format string.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 13 05:56:46 2012 UTC (12 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.6: +43 -64 lines
Diff to previous 1.6 (colored) to selected 1.12 (colored)

A modctl(MODCTL_STAT, ...) always succeeds, even in non-modular kernels such
as Xen domUs. Thus, refactor the code to detect non-modular kernels; when the
other operations (MODCTL_LOAD or MODCTL_UNLOAD) fail specifically with ENOSYS,
this is taken as a hint about non-modularity and the test is skipped.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 11 19:33:17 2012 UTC (12 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.5: +3 -5 lines
Diff to previous 1.5 (colored) to selected 1.12 (colored)

Skip the tests even if modctl(2) does not fail specifically with ENOSYS.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 3 16:10:23 2010 UTC (13 years, 5 months ago) by christos
Branch: 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, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.4: +5 -4 lines
Diff to previous 1.4 (colored) to selected 1.12 (colored)

add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 21 13:21:48 2010 UTC (13 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.3: +43 -2 lines
Diff to previous 1.3 (colored) to selected 1.12 (colored)

Add a new atf test-case to check that recursive module calls actually work.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 4 17:56:57 2009 UTC (15 years, 3 months ago) by jmmv
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.2: +14 -8 lines
Diff to previous 1.2 (colored) to selected 1.12 (colored)

Kernel modules (kmod files) are now installed in a subdirectory per module.
Make these tests aware of this so that they work again.

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 2 14:20:50 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, netbsd-5
Changes since 1.1: +10 -10 lines
Diff to previous 1.1 (colored) to selected 1.12 (colored)

- Add a bsd.kmodule.mk to build new style modules.
- Set the file suffix to .kmod

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 1 15:38:17 2008 UTC (15 years, 11 months ago) by jmmv
Branch: MAIN
Diff to selected 1.12 (colored)

Convert NetBSD-specific tests that were previously written in C++ to C now
that ATF provides a C-only binding (comes with 0.5).

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>