History log of /netbsd-src/tests/modules/t_modctl.c (Results 1 – 16 of 16)
Revision Date Author Comments
# ea561c44 22-Feb-2020 pgoyette <pgoyette@NetBSD.org>

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
automat

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.

show more ...


# 93226e2f 22-Feb-2020 kamil <kamil@NetBSD.org>

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 0x7e

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

show more ...


# f93d6526 21-Apr-2019 maya <maya@NetBSD.org>

wether -> whether


# d91f98a8 27-Jan-2019 pgoyette <pgoyette@NetBSD.org>

Merge the [pgoyette-compat] branch


# d0ba1a06 20-Aug-2012 martin <martin@NetBSD.org>

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


# f3b7cec9 19-Aug-2012 martin <martin@NetBSD.org>

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


# 66c66d2d 13-Aug-2012 martin <martin@NetBSD.org>

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


# ce711fc7 17-Apr-2012 jruoho <jruoho@NetBSD.org>

Avoid zero-length format string.


# 66dd2755 15-Mar-2012 joerg <joerg@NetBSD.org>

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


# 96d2b606 13-Mar-2012 jruoho <jruoho@NetBSD.org>

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_UNLO

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.

show more ...


# 21ea49cf 11-Mar-2012 jruoho <jruoho@NetBSD.org>

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


# 0f10aa9d 03-Nov-2010 christos <christos@NetBSD.org>

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


# 60bf661b 21-Aug-2010 pgoyette <pgoyette@NetBSD.org>

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


# 6725d3ee 04-Jan-2009 jmmv <jmmv@NetBSD.org>

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


# 3ba20983 02-May-2008 ad <ad@NetBSD.org>

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


# 5a560143 01-May-2008 jmmv <jmmv@NetBSD.org>

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