History log of /freebsd-current/sbin/kldstat/kldstat.c
Revision Date Author Comments
# 32e86a82 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Automated cleanup of cdefs and other formatting

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


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 83237efc 09-Nov-2021 Hans Petter Selasky <hselasky@FreeBSD.org>

kldstat(8): style(9) fixes.

No functional change intended.

Differential revision: https://reviews.freebsd.org/D32506
Submitted by: christos@
MFC after: 1 week
Sponsored by: NVIDIA Networking


# 337c8143 09-Nov-2021 Hans Petter Selasky <hselasky@FreeBSD.org>

kldstat(8): Fix indentation, whitespace to tabs.

No functional change intended.

Differential revision: https://reviews.freebsd.org/D32502
Submitted by: christos@
MFC after: 1 week
Sponsored by: NVIDIA Networking


# 294b242d 02-Jul-2018 Michael Tuexen <tuexen@FreeBSD.org>

Allow three digits of module id without breaking table alignment.


# 6130efe4 02-Jul-2018 Michael Tuexen <tuexen@FreeBSD.org>

Keep table aligned when address pointer is not of max length.


# e4450a19 02-Jul-2018 Michael Tuexen <tuexen@FreeBSD.org>

Improve consistency of indentation. Whitespace change only.


# 73d1ecdc 25-May-2018 Eitan Adler <eadler@FreeBSD.org>

kldstat: align "Size" to the right

This change also makes alignment and spacing an explicit number rather
than a bunch of spaces.

Reviewed by: mmacy
Requested by: Yuri Pankov <yuripv@yuripv.net>


# d14732d3 22-May-2018 Eitan Adler <eadler@FreeBSD.org>

kldstat: align size to the right

This makes it easier to compare numbers directly.

PR: 215747
Submitted by: "Alexander von Gernler" <grunk@pestilenz.org>


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

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.

No functional change intended.


# 7554e758 10-Mar-2017 Mark Johnston <markj@FreeBSD.org>

Typo.

MFC after: 3 days


# 637733b1 18-Mar-2016 Julian Elischer <julian@FreeBSD.org>

Add the ability to print out ht emodule specific information in likely formats.
Among other things this gives us the ability to find outthe syscall number of a dynamically loaded syscall that has a dynamicly allocated vector number.

MFC after: 1 week
Sponsored by: Panzura inc.


# 1b18fc10 22-Jan-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add "kldstat -h"; showing module sizes in hex is rather weird.

Reviewed by: emaste@ (earlier version)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D4969


# 3e8cf495 22-Jan-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Add quiet support for kldstat -n

PR: bin/180014
Submitted by: Olivier Cochard-Labbé <olivier@cochard.me>
MFC after: 1 week


# 35e3987f 13-Nov-2010 Konstantin Belousov <kib@FreeBSD.org>

In printfile(), exit the process instead of only printing the warning.
This fixes verbose mode when either -i specified non-existent kldfile
id, or the file was unloaded between two kldnext(2) calls.

While there, fix printfile() definition to be style(9)-compliant.

Submitted by: arundel
MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 8e721ea7 12-May-2010 Christian Brueffer <brueffer@FreeBSD.org>

Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion.

PR: 146046
Submitted by: Alexander Best <alexbestms@wwu.de>
Reviewed by: kan
MFC after: 1 week


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 97a7a569 22-Dec-2008 Andrew Thompson <thompsa@FreeBSD.org>

Only show the pathname in verbose output as intended in the last commit (r172862).


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 1676805c 21-Oct-2007 John Birrell <jb@FreeBSD.org>

Add the full module path name to the kld_file_stat structure
for kldstat(2).

This allows libdtrace to determine the exact file from which
a kernel module was loaded without having to guess.

The kldstat(2) API is versioned with the size of the
kld_file_stat structure, so this change creates version 2.

Add the pathname to the verbose output of kldstat(8) too.

MFC: 3 days


# 09d5b706 24-Sep-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Update usage.


# 90217cdd 23-Sep-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Add '-q' option, which (when used with '-m' option) just tells if the given
module is loaded or compiled into the kernel.
This is useful mostly in startup scripts, when module should be loaded only
if it wasn't compiled into the kernel nor already loaded, eg.:

kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'


# 9b3eb503 21-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Synchronize program's usage() with manpage's SYNOPSIS.


# 5d6d6d38 03-May-2005 Max Khon <fjoe@FreeBSD.org>

Add -m option (find module using modfind() and stat it).


# 2c8aff0a 30-May-2004 David Malone <dwmalone@FreeBSD.org>

Use a better way to calculate POINTER_WIDTH suggested by pjd@.


# 5d9ae0a2 28-May-2004 David Malone <dwmalone@FreeBSD.org>

Decide how much space we need to print a pointer using
sizeof(void *) rather than if __alpha__ is defined.


# 9c4c393a 14-Mar-2004 Juli Mallett <jmallett@FreeBSD.org>

Validate argument to -i.


# c69284ca 03-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID() to quiet GCC 3.3 warnings.


# 7f107457 23-Apr-2003 Johan Karlsson <johan@FreeBSD.org>

style(9): use NULL when assigning/comparing a char *,
consitently compare fileid with 0 using == and !=.

Reviewed by: silence on @audit


# eb3beef5 23-Apr-2003 Johan Karlsson <johan@FreeBSD.org>

Make this WARNS=5 clean by using %j and (uintmax_t).

Look at by: sebastian.ssmoller@web.de on audit@


# 61c3dd35 01-Jul-2000 Paul Saab <ps@FreeBSD.org>

Backout rev 1.8. This really does not give us the version number
of the kld's.

Pointed out by: bp


# 28b406b2 20-Jun-2000 Jonathan M. Bresler <jmb@FreeBSD.org>

display version number of each kld module when using
the -v flag.


# fb2ef615 04-Dec-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Properly align the columns of the header on Alpha.


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 9b84d629 06-Nov-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Cosmetic fix (make header align with data)


# 57e78ffb 05-Jan-1998 Philippe Charnier <charnier@FreeBSD.org>

Sync. usage string and synopsis. Add rcsid.


# 2830148a 21-Oct-1997 John-Mark Gurney <jmg@FreeBSD.org>

a few code style changes:
o start function names in column 1
o sort order of flags in getopt and switch
o don't try to reference progname
o unspam some changes introduced by a 2.2.1-R build box instead of a
-current build box

doc changes:
o document when these commands first appeared
o put email address in angle brakets
o minor mdoc clean up


# 23e200d5 19-Oct-1997 John-Mark Gurney <jmg@FreeBSD.org>

activate the programs that will be used to manipulate kld modules

fix a few problems with missing headers, warn called with an exit
value, and undeclared getopt vars

these programs now compile -Wall clean (and yes, I know I should use
more than just -Wall) :)


# a79fe607 07-May-1997 Doug Rabson <dfr@FreeBSD.org>

Add utilities for the kernel linker.