Commit Graph

28 Commits

Author SHA1 Message Date
wiz 74532f1d21 Fix date. 2020-02-23 00:14:31 +00:00
pgoyette 9a34b1cfc9 Clarify that the -k option only provides the address of the module's
text segment.  The addresses of any other segments are not available.
2020-02-22 14:26:18 +00:00
wiz 97394f0e9a Remove superfluous Pp. 2019-12-07 12:35:27 +00:00
pgoyette ac676e6637 Note also that the load address (if provided) is also for the module's
text segment.
2019-12-06 21:45:14 +00:00
pgoyette c5b5c0a464 Note that the size returned by modctl(2) and displayed by modstat(8) is
only for the module's text section, not for the entire size of the module.

Addresses PR kern-54737
2019-12-04 23:35:36 +00:00
pgoyette d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
wiz 31ba559526 Add .An -nosplit. 2016-09-12 06:52:59 +00:00
sevan 4a946ec4b7 modstat initially lived in src/usr.bin/modstat before being moved to src/modstat.
Note the history of the initial implementation and amend AUTHORS section to
credit Terrence R. Lambert.
Heads up by Matthew Green.
2016-09-12 04:00:27 +00:00
sevan b341d851d2 Document author and the version modstat appeared.
Bump date.
2016-09-12 00:15:14 +00:00
pgoyette a1258c3a17 By default, don't display the module load address. Add a -k option
to restore display of this field.
2015-12-02 00:56:09 +00:00
wiz 634690fb1c Fix xref. 2015-11-29 21:36:35 +00:00
christos 51068fec25 print flags symbolically. 2015-11-04 16:04:55 +00:00
pgoyette b6f71a3653 Add FLAGS to the module data displayed. Reduce some of the extra
inter-column white-space to (partly) compensate for the additional
column.
2015-11-04 04:30:42 +00:00
mbalmer 6737b686a3 bump date for previous 2013-10-24 13:00:21 +00:00
mbalmer 0fa457fe55 remove lua class 2013-10-24 10:36:25 +00:00
mbalmer 5cfde5e1f7 properly display Lua modules 2013-10-21 17:14:06 +00:00
riz 78ae231e57 Display the load address of modules. PR bin/47951. 2013-06-26 17:55:38 +00:00
wiz a4fbef4f94 Make the difference between -A and -a clearer by using more markup. 2012-08-12 17:20:19 +00:00
jnemeth 942121f54c Add -A, -a, and -e options to modstat(8) along with kernel
changes required to support these options.  The -e option was
requested by martin@ in private chat in order to make writing tests
easier (i.e. don't bother testing MODULAR functionaility if it
doesn't exist).  While there, I added -A and -a since those were
quite similar.

     -A      Tells you whether or not modules can be autoloaded at the moment.
             This option does take into consideration the sysctl
             kern.module.autoload.

     -a      Tells you whether or not modules can be autoloaded at the moment.
             This option does not take into consideration the sysctl
             kern.module.autoload.

     -e      Tells you whether or not you may load a module at the moment.
2012-08-07 01:19:05 +00:00
mbalmer 3bc190836a Accept both 'modstat -n name' as well as 'modstat name' to display information
about a single module.
2011-08-02 16:46:45 +00:00
jruoho 91e230c6b8 Fix xref; module(4) -> module(7). 2010-12-14 16:23:59 +00:00
jruoho 05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
pooka 696ffdd08a note module changes 2010-03-05 18:51:22 +00:00
elad 52734536eb Bump date to today's date (rather than when the changes were made). 2009-10-02 19:50:37 +00:00
elad 53ca19a3b3 First part of secmodel cleanup and other misc. changes:
- Separate the suser part of the bsd44 secmodel into its own secmodel
    and directory, pending even more cleanups. For revision history
    purposes, the original location of the files was

        src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
        src/sys/secmodel/bsd44/suser.h

  - Add a man-page for secmodel_suser(9) and update the one for
    secmodel_bsd44(9).

  - Add a "secmodel" module class and use it. Userland program and
    documentation updated.

  - Manage secmodel count (nsecmodels) through the module framework.
    This eliminates the need for secmodel_{,de}register() calls in
    secmodel code.

  - Prepare for secmodel modularization by adding relevant module bits.
    The secmodels don't allow auto unload. The bsd44 secmodel depends
    on the suser and securelevel secmodels. The overlay secmodel depends
    on the bsd44 secmodel. As the module class is only cosmetic, and to
    prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
    "secmodel_".

  - Adapt the overlay secmodel to recent changes (mainly vnode scope).

  - Stop using link-sets for the sysctl node(s) creation.

  - Keep sysctl variables under nodes of their relevant secmodels. In
    other words, don't create duplicates for the suser/securelevel
    secmodels under the bsd44 secmodel, as the latter is merely used
    for "grouping".

  - For the suser and securelevel secmodels, "advertise presence" in
    relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).

  - Get rid of the LKM preprocessor stuff.

  - As secmodels are now modules, there's no need for an explicit call
    to secmodel_start(); it's handled by the module framework. That
    said, the module framework was adjusted to properly load secmodels
    early during system startup.

  - Adapt rump to changes: Instead of using empty stubs for securelevel,
    simply use the suser secmodel. Also replace secmodel_start() with a
    call to secmodel_suser_start().

  - 5.99.20.

Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
2009-10-02 18:50:12 +00:00
uwe 5d234bdddb ".Dv Qo foo Qc" should be ".Qq Dv foo" 2008-11-17 02:22:49 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
ad bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00