Commit Graph

16 Commits

Author SHA1 Message Date
yar
4ba7f71daf There is a plenty of arch's out there where sizeof(size_t) != sizeof(int).
A field width in printf(3) must be int, so cast return value from strlen()
to the type.

Noticed by:	Andrzej Tobola <ato iem pw edu pl>; tinderbox
Pointy hat to:	yar
X-MFC with:	the rest of the new asf code
2006-06-19 17:12:25 +00:00
yar
b8dd56e74a Give a major overhaul to asf(8).
The improvements are:

- can get the kld info from core files via kvm(3);
- can use kldstat(2) directly, which is a piece of cake;
- can use .symbols or whatever, which allows for use by
  non-developers when reporting system crashes -- now asf(8)
  can be mentioned in the handbook at last;
- speed (no more double fts(3) per loaded module);
- various bugs fixed.

At the same time, the new asf(8) should stay compatible with
the old one, bar bugs.  Perhaps some defaults may be changed
later to match today's state of affairs.

Reviewed by:	grog
MFC after:	1 month
Sponsored by:	RiNet (Cronyx Plus LLC)
2006-06-18 11:14:40 +00:00
grog
1cf87107d0 Initialize uninitialized variables.
PR:		71653
Submitted by:	Dan Lukes <dan@obluda.cz>
2005-09-21 05:33:46 +00:00
grog
3d1542ebf7 Remove one possible way of shooting yourself in the foot.
Submitted by:  Ulrich Sperlein <q@galgenberg.net>
2005-09-21 05:20:03 +00:00
ru
c05985f13f Sort sections. 2005-01-18 20:02:45 +00:00
ru
dc54ee200d Assorted markup, grammar, and spelling fixes. 2004-06-13 18:03:44 +00:00
green
1e01559458 Add a "-f" flag for asf(8) which performs a search to find the each module
no matter where in the directory structure it may be.  Use this and the "-k"
flag in the generated gdbinit files so that the "getsyms" function in gdb
requires no user intervention to run and will find every module if they're
in the kernel build's module directory.  This is still quite useful for
cases where gdb knows that the path for some modules is /boot/kernel and
others are in the object directory for /usr/src/sys/$ARCH/compile/kernel.

Approved by:	grog
2003-11-04 06:38:37 +00:00
simokawa
4034ea2214 Add -s option to strip subdirectory from module path.
e.g. moudle-path/firewire/firewire.ko -> module-path/firewire.ko

Reviewed by: grog
2003-09-25 07:56:48 +00:00
ru
df0f2667b6 Tidy up the manpage.
Reviewed by:	grog
2003-06-10 05:29:14 +00:00
jmallett
2078dd9a43 Use implicit SRCS list, remove WARNS=0, the code is WARNS=4 clean now,
which is more than enough.
2003-06-08 08:38:11 +00:00
jmallett
db49656250 WARNS cleanup. Constness and shadowing, namely. 2003-06-08 08:37:11 +00:00
jmallett
d38dd4f384 Fix format string. 2003-06-08 08:33:48 +00:00
grog
01de4910e4 Add licence.
Complained about by:	juli

Correct usage() text.
2003-06-08 07:29:57 +00:00
grog
8f0fd47b47 Oops, this is section 8, not 1. 2003-06-08 06:59:33 +00:00
grog
d7992550b7 Add man page. 2003-06-08 06:57:57 +00:00
grog
f43a5d3532 Introducing asf, a helper program for kernel debugging. 2003-06-08 06:18:13 +00:00