The NetBSD Project

CVS log for src/sys/kern/kern_ksyms.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Oct 3 20:19:55 2024 UTC (5 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
s/preudo/pseudo/ in comment.

Revision 1.107.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 24 14:12:51 2023 UTC (2 years ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE, 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
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +8 -5 lines
Pull up following revision(s) (requested by riastradh in ticket #107):

	sys/kern/kern_ksyms.c: revision 1.108

ksyms(4): Reject negative offsets earlier in lseek.

Avoid arithmetic overflow.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue Feb 21 11:40:00 2023 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +8 -5 lines
ksyms(4): Reject negative offsets earlier in lseek.

Avoid arithmetic overflow.

XXX pullup-10

Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Jul 15 06:40:24 2022 UTC (2 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3 lines
convert "ksyms: checking <symbol>" into KSYMS_DEBUG over normal DEBUG.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Jul 6 01:12:46 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -2 lines
uvm(9): fo_mmap caller guarantees positive size.

No functional change intended, just sprinkling assertions to make it
clearer.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Sep 22 05:42:19 2021 UTC (3 years, 6 months ago) by rin
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -2 lines
ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj.

Fix failure for savecore(8) and subsequent kernel panic, introduced to
kern_ksyms.c rev 1.03, at least for sh3 and alpha.

For sh3 and alpha, savecore(8) supports coff and ecoff, respectively, via
libkvm via nlist(3). nlist(3) routines for coff and ecoff use mmap(2) and
munmap(2) for /dev/ksyms.

This munmap(2) decrements reference count for ks->ks_uobj. Unless it is
incremented in ksymsmmap(), ks->ks_uobj will be freed unexpectedly.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Sep 11 10:09:55 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +66 -26 lines
ksyms: Use pserialize(9) for kernel access to ksyms.

This makes it available in interrupt context, e.g. for printing
messages with kernel symbol names for return addresses as drm wants
to do.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sat Sep 11 10:09:31 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +437 -161 lines
ksyms(4): Take a complete snapshot on each open.

- Snapshots are stored in pageable anonymous uvm objects.
- Snapshots are reference-counted so they can be reused across opens.
- Opening /dev/ksyms blocks module unload until snapshot is taken.
- Merely holding /dev/ksyms open does not block module unload.
- /dev/ksyms is now mmappable.

This slightly changes the behaviour of fstat(2) on /dev/ksyms -- it
is a little more useful now!  In particular, st_size is the size of
the symbol table.  Some other fields which were not very useful to
begin with -- st_dev, st_ino, st_mode, st_nlink, st_*time,
st_blksize, st_blocks -- are now different, and independent of the
file system on which the device node resides.

Discussed in

https://mail-index.netbsd.org/source-changes-d/2021/08/17/msg013425.html

This is option (3), adapted to make the ksyms snapshots pageable,
after options (1) and (2) posed practical problems.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Tue Sep 7 16:56:25 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +73 -48 lines
Revert "ksyms(4): Simply block unload until last /dev/ksyms close."

This appears to break t_execsnoop -- presumably something goes wrong
with how libdtrace uses ksyms.  To investigate.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Sep 7 16:56:13 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +26 -66 lines
Revert "ksyms: Use pserialize(9) for kernel access to ksyms."

Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Sep 7 11:00:02 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +66 -26 lines
ksyms: Use pserialize(9) for kernel access to ksyms.

This makes it available in interrupt context, e.g. for printing
messages with kernel symbol names for return addresses as drm wants
to do.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:59:46 2021 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +48 -73 lines
ksyms(4): Simply block unload until last /dev/ksyms close.

Otherwise, readers may get a garbled snapshot of ksyms (or a crash on
an assertion failure because of the garbled snapshot) if modules are
unloaded while they read.

https://mail-index.netbsd.org/source-changes-d/2021/08/17/msg013425.html

Revision 1.89.6.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:38 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.89.6.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.6.1: +5 -5 lines
Sync with HEAD.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Jul 18 06:57:28 2021 UTC (3 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +5 -5 lines
skip symbol tables that were unloaded again to avoid EFAULT when reading
ksyms.

also restore TAILQ_FOREACH idiom.

Revision 1.87.8.2: download - view: text, markup, annotated - select for diffs
Mon Jun 21 16:14:14 2021 UTC (3 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.87.8.1: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.8.1: +75 -32 lines
Pull up following revision(s) (requested by riastradh in ticket #1299):

	sys/kern/kern_ksyms.c: revision 1.90
	sys/kern/kern_ksyms.c: revision 1.91
	sys/kern/kern_ksyms.c: revision 1.92
	sys/kern/kern_ksyms.c: revision 1.93
	sys/kern/kern_ksyms.c: revision 1.94
	sys/kern/kern_ksyms.c: revision 1.95
	sys/kern/kern_ksyms.c: revision 1.96
	sys/kern/kern_ksyms.c: revision 1.97

ksyms(4): Fix ksymsread synchronization.

Fixes crash on concurrent update and read of /dev/ksyms.
XXX Unclear why we have to skip sd_gone entries here -- it seems like
they should be preserved until ksymsclose.
ksyms(4): Modify ksyms_symtabs only at IPL_HIGH.

This limits the opportunities for ddb to witness an inconsistent
state of the symbol table list.
ksyms(4): Don't skip symbol tables that are soon to be freed.

They will not actually be freed until /dev/ksyms is closed, so
continued access to them remains kosher.
Revert "ksyms(4): Don't skip symbol tables that are soon to be freed."

Apparently the equality kassert this restored doesn't work; to be
analyzed.

Fix regression introduced in rev 1.90
in which the last element of ksyms_symtabs is skipped by mistake.

ksyms(4): Fix race in ksymsread iteration.
TAILQ_NEXT(ksyms_last_snapshot) might change while we are iterating,
but ksyms_last_snapshot itself cannot, so invert the loop structure.

Discussed with rin@.

ksyms(4): Don't skip symbol tables that are soon to be freed, take 2.

They will not actually be freed until /dev/ksyms is closed, so
continued access to them remains kosher.
The previous change was busted because of an off-by-one error in a
previous previous change's iteration over the symtabs; that error has
since been corrected.

ksyms(4): Allow multiple concurrent opens of /dev/ksyms.

First one takes a snapshot; others all agree with the snapshot.
Previously this code path was just broken (could fail horribly if
modules were unloaded after one of the opens is closed), so I just
blocked it off in an earlier commit, but that broke crash(8).  So
let's continue allowing multiple opens seeing the same snapshot, but
without the horrible bugs.

Revision 1.89.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:33 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +75 -32 lines
Sync w/ HEAD.

Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 6 20:30:53 2021 UTC (3 years, 9 months ago) by cjep
Branches: cjep_sun2x
Diff to: previous 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93: +19 -21 lines
sync with head

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Jun 3 09:22:47 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: cjep_sun2x-base1
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +12 -14 lines
ksyms(4): Allow multiple concurrent opens of /dev/ksyms.

First one takes a snapshot; others all agree with the snapshot.

Previously this code path was just broken (could fail horribly if
modules were unloaded after one of the opens is closed), so I just
blocked it off in an earlier commit, but that broke crash(8).  So
let's continue allowing multiple opens seeing the same snapshot, but
without the horrible bugs.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Thu Jun 3 01:00:24 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -7 lines
ksyms(4): Don't skip symbol tables that are soon to be freed, take 2.

They will not actually be freed until /dev/ksyms is closed, so
continued access to them remains kosher.

The previous change was busted because of an off-by-one error in a
previous previous change's iteration over the symtabs; that error has
since been corrected.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Jun 3 01:00:15 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +8 -4 lines
ksyms(4): Fix race in ksymsread iteration.

TAILQ_NEXT(ksyms_last_snapshot) might change while we are iterating,
but ksyms_last_snapshot itself cannot, so invert the loop structure.

Discussed with rin@.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Jun 2 15:43:33 2021 UTC (3 years, 9 months ago) by rin
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -4 lines
Fix regression introduced in rev 1.90:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_ksyms.c#rev1.90

in which the last element of ksyms_symtabs is skipped by mistake.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Jun 2 08:46:16 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: cjep_sun2x-base
Branch point for: cjep_sun2x
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +7 -3 lines
Revert "ksyms(4): Don't skip symbol tables that are soon to be freed."

Apparently the equality kassert this restored doesn't work; to be
analyzed.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Jun 1 21:11:52 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -7 lines
ksyms(4): Don't skip symbol tables that are soon to be freed.

They will not actually be freed until /dev/ksyms is closed, so
continued access to them remains kosher.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Jun 1 21:11:07 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +27 -2 lines
ksyms(4): Modify ksyms_symtabs only at IPL_HIGH.

This limits the opportunities for ddb to witness an inconsistent
state of the symbol table list.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Jun 1 21:10:23 2021 UTC (3 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +41 -21 lines
ksyms(4): Fix ksymsread synchronization.

Fixes crash on concurrent update and read of /dev/ksyms.

XXX Unclear why we have to skip sd_gone entries here -- it seems like
they should be preserved until ksymsclose.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed Sep 23 09:52:02 2020 UTC (4 years, 5 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +12 -2 lines
The current MIPS DDB stacktrace code doesn't work if no symbols are
available, so fall back to old-fashioned unwind code if no symbols.

Revision 1.87.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:51 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +9 -3 lines
Merge changes from current as of 20200406

Revision 1.84.10.1: download - view: text, markup, annotated - select for diffs
Tue Jan 7 11:59:48 2020 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +9 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #1482):

	sys/kern/kern_ksyms.c: revision 1.88 (patch)

When reading from /dev/ksyms we need to skip over entries that have
been marked as sd_gone.  Otherwise we might try to uiomove() data from
memory that has been unmapped, resulting in EFAULT.

XXX This (along with other pre-existing checks st->sd_gone) is still
racy, but it's an improvement over current code.  Ideally we would
make a complete copy of the symbol table when we open /dev/ksyms so
we could ignore any changes that occur.

ad@ says "good enough for now"

XXX Pullup to -9 and -8

Revision 1.87.8.1: download - view: text, markup, annotated - select for diffs
Tue Jan 7 11:54:57 2020 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +9 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #609):

	sys/kern/kern_ksyms.c: revision 1.88

When reading from /dev/ksyms we need to skip over entries that have
been marked as sd_gone.  Otherwise we might try to uiomove() data from
memory that has been unmapped, resulting in EFAULT.

XXX This (along with other pre-existing checks st->sd_gone) is still
racy, but it's an improvement over current code.  Ideally we would
make a complete copy of the symbol table when we open /dev/ksyms so
we could ignore any changes that occur.

ad@ says "good enough for now"

XXX Pullup to -9 and -8

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Jan 5 21:12:34 2020 UTC (5 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +9 -3 lines
When reading from /dev/ksyms we need to skip over entries that have
been marked as sd_gone.  Otherwise we might try to uiomove() data from
memory that has been unmapped, resulting in EFAULT.

XXX This (along with other pre-existing checks st->sd_gone) is still
racy, but it's an improvement over current code.  Ideally we would
make a complete copy of the symbol table when we open /dev/ksyms so
we could ignore any changes that occur.

ad@ says "good enough for now"

XXX Pullup to -9 and -8

Revision 1.67.6.5: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:44 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.67.6.4: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.6.4: +145 -60 lines
update from HEAD

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Nov 4 22:17:55 2017 UTC (7 years, 4 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, 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, pgoyette-compat, netbsd-9-base, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -6 lines
use Elf_Sym ** instead of casting.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Nov 3 09:59:07 2017 UTC (7 years, 4 months ago) by maxv
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +13 -6 lines
Handle absolute relocations coming from the kernel: preserve SHN_ABS in
the kernel and module symbols, and when relocating a symbol that has
SHN_ABS, take its value as-is and don't return an error if it equals zero.

Sent on tech-kern@.

Revision 1.73.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.5: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.2.5: +14 -5 lines
Sync with HEAD

Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Jun 14 00:52:37 2017 UTC (7 years, 9 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +14 -5 lines
create an nmap table for module symtabs too.
needed by dtrace.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (8 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3 lines
KNF. Remove extra spaces. No functional change.

Revision 1.73.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:31 2016 UTC (9 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.4: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.4: +3 -3 lines
Sync with HEAD

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 3 14:47:08 2016 UTC (9 years ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +16 -19 lines
Pull up following revision(s) (requested by pgoyette in ticket #1108):
	sys/kern/kern_module.c: revision 1.107-1.110
	sys/kern/kern_ksyms.c: revision 1.82
Add some additional status messages for kern.module.verbose=TRUE

Remove extraneous ')' from previous.

KNF

In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)

Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 3 14:46:07 2016 UTC (9 years ago) by martin
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +16 -19 lines
Pull up following revision(s) (requested by pgoyette in ticket #1108):
	sys/kern/kern_module.c: revision 1.107-1.110
	sys/kern/kern_ksyms.c: revision 1.82
Add some additional status messages for kern.module.verbose=TRUE

Remove extraneous ')' from previous.

KNF

In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Dec 27 20:52:25 2015 UTC (9 years, 2 months ago) by gson
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
KSYMS_MAX_ID is too small for i386 kernels built with MKDEBUG=yes,
causing a number of ATF tests to fail.  Increase it by 50%, from 65536
to 98304.

Revision 1.73.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:05 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.3: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.3: +17 -20 lines
Sync with HEAD (as of 26th Dec)

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Dec 9 16:26:16 2015 UTC (9 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +18 -21 lines
KNF

Revision 1.73.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.2: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.2: +22 -9 lines
Sync with HEAD

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Aug 30 01:46:02 2015 UTC (9 years, 6 months ago) by uebayasi
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2 lines
Use makeoptions_COPY_SYMTAB via opt_copy_symtab.h in sources.  Remove a hack
to set -DCOPY_SYMTAB from sys/conf/Makefile.kern.inc.  Remove unnecessary
dependencies too.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Aug 27 02:43:20 2015 UTC (9 years, 6 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +7 -5 lines
Constify a little.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Aug 21 06:55:25 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -3 lines
we don't need ioconf.h if we don't have the ksyms pseudo-device

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Aug 21 06:50:56 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -3 lines
If we don't have a pseudo-device, we don't need the attach function.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Aug 20 09:45:45 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3 lines
include ioconf.h instead of locally declaring the prototype of the attach
function

Revision 1.73.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:21 2015 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.1: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.1: +57 -11 lines
Sync with HEAD

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed May 20 02:45:20 2015 UTC (9 years, 10 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +53 -7 lines
Change the ksyms ioctls to more compat_netbsd32 friendly.  Use _IOWR ioctls
to avoid extra copyouts.  With these changes, netstat and vmstat work on
mips64eb with the normal N32 userland and a N64 kernel.

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:20 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +37 -22 lines
Sync with HEAD

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Dec 15 13:50:10 2014 UTC (10 years, 3 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
Don't hard code crap we have perfectly good constants for.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Dec 9 02:30:09 2014 UTC (10 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +36 -21 lines
- use the unused section in the array to put a NetBSD note in it
- cleanup the hard-coded constants in the stringtab

Revision 1.67.6.4: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67.6.3: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.6.3: +12 -2 lines
Rebase to HEAD as of a few days ago.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Aug 17 21:17:44 2014 UTC (10 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -7 lines
Reorganize symbol table embedding.  The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +3 -2 lines
Rebase.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:40 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: netbsd-7-0, netbsd-7
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -2 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.65.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.65.2.3: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.3: +14 -5 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +13 -4 lines
sync with head

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:30 2014 UTC (11 years ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +13 -4 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.67.6.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:57 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67.6.2: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.6.2: +3 -3 lines
resync from head

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Apr 7 00:49:45 2013 UTC (11 years, 11 months ago) by chs
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
don't overwrite the CTF info with the symbol table.

Revision 1.67.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:50 2013 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67.6.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.6.1: +15 -11 lines
resync with head

Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:20 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.65.2.2: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.2: +15 -11 lines
sync with head

Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Jan 17 14:36:36 2013 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +15 -11 lines
Add a separate bool to indicate a symbol table has been loaded.
ksym_initted indicates whether the kmutex has been initted or not.
Add __cacheline_aligned to the kmutex.

Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:43 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.1: +8 -21 lines
sync with (a bit old) head

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:42 2012 UTC (12 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -21 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Nov 18 00:06:57 2012 UTC (12 years, 4 months ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -21 lines
make ksyms structures not depend on KDTRACE_HOOKS.
always include a CTF section, even though it might be empty.
this fixes savecore's generated kernel symbol table files.

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:24 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -3 lines
sync with head

Revision 1.65.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:29 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +8 -5 lines
merge to -current.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Dec 5 21:30:48 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
close the comment, there is a draft.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Dec 5 20:55:14 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +8 -5 lines
PR/45687: Mike Pumford: savecore: (null): _ksyms_hdr not in namelist
Make it non-static and add a comment so that they don't become static again.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jul 28 13:42:16 2011 UTC (13 years, 7 months ago) by uebayasi
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +1 -1 lines
Define SYMTAB_SPACE in opt_ksyms.h, not opt_ddbparam.h.  Ensure
that ddb(4) code is independent of SYMTAB_SPACE value.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Jul 27 14:35:34 2011 UTC (13 years, 7 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -4 lines
These don't need uvm/uvm_extern.h.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:28 2011 UTC (13 years, 9 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
Sync with HEAD.

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:01 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.2: +1 -1 lines
sync with head

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Apr 24 18:46:22 2011 UTC (13 years, 11 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:14 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +11 -8 lines
sync with head

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:40:19 2011 UTC (14 years, 2 months ago) by matt
Branches: MAIN
CVS tags: jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +10 -7 lines
When determining max/min sym value, ignore ABS symbols which don't
have a type.  This stops ksym thinking that the _KERNEL_OPT symbols
could actually be useful.

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:27 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +25 -16 lines
Sync with HEAD.

Revision 1.35.10.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:39 2010 UTC (14 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.35.10.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.10.2: +219 -8 lines
sync with head.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Jul 27 14:25:23 2010 UTC (14 years, 7 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Use 'z' printf format modifier to print size_t in debug code.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:56 2010 UTC (14 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +26 -17 lines
sync with head

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue May 4 14:14:54 2010 UTC (14 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +19 -17 lines
Some KNF.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon May 3 09:51:36 2010 UTC (14 years, 10 months ago) by darran
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -2 lines
DTrace: Fix several bugs where the mod_ctf_get() function could return
success even though no CTF section was present in the kernel or module.
This fixes the panic that several people saw when trying out the FBT
provider without updating /boot or missing a CTF section in /netbsd.

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:09 2010 UTC (14 years, 10 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +209 -7 lines
Sync with HEAD.

Revision 1.41.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:16 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.41.4.1: preferred, colored; next MAIN 1.41.4.2: preferred, colored
Changes since revision 1.41.4.1: +6 -4 lines
sync to netbsd-5

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Mar 14 21:27:49 2010 UTC (15 years ago) by darran
Branches: MAIN
CVS tags: uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +24 -6 lines
DTrace: Make the CTF handling conditional on KDTRACE_HOOKS for now since
it breaks the boot of the atari kernel (and possibly others).

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Mar 13 16:27:06 2010 UTC (15 years ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -4 lines
make this compile.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Mar 12 21:43:11 2010 UTC (15 years ago) by darran
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +192 -8 lines
DTrace: Add support for CTF sections in the netbsd elf image, load these
at boot.
Add a ksyms_mod_foreach() function to iterate a callback function over the
set of elf symbols for a specific module (netbsd included).
Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression
of CTF sections for a specific module.

Revision 1.35.10.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:16 2010 UTC (15 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.35.10.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.10.1: +3 -4 lines
sync with head

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Mar 1 22:27:07 2010 UTC (15 years ago) by darran
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +8 -62 lines
Revert accidental commit of CTF work-in-progress changes.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Mar 1 21:10:16 2010 UTC (15 years ago) by darran
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +64 -10 lines
DTrace: Add an SDT (Statically Defined Tracing) provider framework, and
implement most of the proc provider.  Adds proc:::create, exec,
exec_success, exec_faillure, signal_send, signal_discard, signal_handle,
lwp_create, lwp_start, lwp_exit.

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 14 13:35:43 2010 UTC (15 years, 1 month ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.1: +3 -3 lines
Pull up following revision(s) (requested by hubertf in ticket #1290):
	sys/kern/kern_ksyms.c: revision 1.53
	sys/dev/pci/agp_via.c: revision 1.18
	sys/netipsec/key.c: revision 1.63
	sys/arch/x86/x86/x86_autoconf.c: revision 1.49
	sys/kern/init_main.c: revision 1.415
	sys/kern/cnmagic.c: revision 1.11
	sys/netipsec/ipsec.c: revision 1.47
	sys/arch/x86/x86/pmap.c: revision 1.100
	sys/netkey/key.c: revision 1.176
Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Jan 31 00:43:37 2010 UTC (15 years, 1 month ago) by hubertf
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Nov 25 13:16:55 2009 UTC (15 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -3 lines
Remove highly questionable assert which demans that the kernel symbol
table is in memory at a lower address than the string table.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:56 2009 UTC (15 years, 10 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.35.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:46 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +405 -765 lines
sync with head.

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:59 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.2: +3 -3 lines
Sync with HEAD.

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 31 23:23:15 2009 UTC (15 years, 11 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +8 -3 lines
Apply patch (requested by martin in ticket 602):
ksyms_init calls mutex_init too early, which leads to failure on, e.g.,
sparc64 LOCKDEBUG kernels.  Instead, add a new function ksyms_init_finalize
and call it from main.  Fixed in a more intrusive and less ugly way on HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Mar 15 17:14:40 2009 UTC (16 years ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
ansify function definitions

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:56 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +10 -10 lines
Sync with HEAD.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Jan 23 09:22:25 2009 UTC (16 years, 2 months ago) by jmmv
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +10 -10 lines
Initialize SYMTAB_SPACE ksyms during ksyms_init.  Per PR port-evbarm/40311.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:38 2009 UTC (16 years, 2 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +130 -455 lines
Sync with HEAD.

Revision 1.35.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 20:17:09 2009 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35.6.3: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.6.3: +12 -7 lines
- Fix a CVS merge breakage
- Catch up with some driver changes

Revision 1.35.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:18 2009 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35.6.2: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.6.2: +401 -765 lines
Sync with HEAD.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jan 1 19:10:17 2009 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
_KERNEL_OPT

Revision 1.35.16.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:08 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.35.16.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.16.1: +395 -761 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Dec 5 21:38:10 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +18 -11 lines
Make the fake ELF object work with gdb.

- Output a .bss section and make all the symbols relative to it, instead
  of making them absolute.
- Output a single load section, no need for two.

'gdb /dev/ksyms' still doesn't work because ksyms doesn't do mmap yet.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Nov 30 18:21:36 2008 UTC (16 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +11 -7 lines
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Nov 16 16:15:58 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -4 lines
Our qsort() is inappropriate for kernel use because it makes recursive
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Nov 16 15:29:53 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -7 lines
Remove unneeded includes.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Nov 16 15:28:15 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +10 -14 lines
Fix ksyms_getname() broken in previous.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Nov 16 15:13:35 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +100 -176 lines
- Local symbols could shadow globals in some instances. Fix it.

- mutex_enter() from ksyms_getval() could panic due to a change made
  in revision 1.40. Fix it.

- Replace the p-tree with a binary search of global symbols. Saves about
  250kB of wired memory on i386 and allows for faster lookups within
  module symbol tables.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:16 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -258 lines
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Oct 24 13:55:42 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -5 lines
don't hold locks in ddb (call ksyms_getval_unlocked()), pointed out by ad.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Oct 23 20:41:13 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +28 -12 lines
don't expose ksyms_lock

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Oct 20 10:24:18 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +368 -423 lines
PR kern/38814 ksyms needs locking

- Make ksyms MT safe.
- Fix deadlock from an operation like "modload foo.lkm < /dev/ksyms".
- Fix uninitialized structure members.
- Reduce memory footprint for loaded modules.
- Export ksyms structures for kernel grovellers like savecore.
- Some KNF.

Revision 1.35.16.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:27 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -1 lines
Sync with HEAD.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Oct 10 23:09:19 2008 UTC (16 years, 5 months ago) by skrll
Branches: MAIN
CVS tags: haad-dm-base1
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1 lines
RCSID police.

Revision 1.35.12.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:34:14 2008 UTC (16 years, 5 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.35.12.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.12.1: +3 -1 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Oct 6 11:49:44 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -1 lines
PR kern/39681 ddb doesn't work with new MODULAR modules

Complete initialization of new symbol table record.

Revision 1.35.6.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:52 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35.6.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.6.1: +3 -1 lines
Sync with HEAD.

Revision 1.35.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:42 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -1 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.35.14.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:36 2008 UTC (16 years, 7 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +3 -1 lines
Sync with head.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Jul 22 21:18:35 2008 UTC (16 years, 8 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -1 lines
report local symbols too.

Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:23 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -14 lines
- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.33.10.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:59 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.33.10.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.10.1: +14 -2 lines
sync with HEAD

Revision 1.26.2.5: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:55 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.26.2.4: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.4: +14 -2 lines
sync with head.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Feb 20 02:30:51 2008 UTC (17 years, 1 month ago) by matt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2, haad-dm
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +14 -2 lines
For each symtab, remember which symbols have the minimum and maximum value.
When returning a "close" symbol, make sure the value being searched for is
within the symtab.  This prevents ddb matching addresses beyond the end of
the kernel.

Revision 1.33.16.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:45 2008 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +7 -2 lines
Sync with HEAD.

Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:04 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.26.2.3: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.3: +7 -2 lines
sync with head

Revision 1.33.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:02 2008 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -2 lines
sync with HEAD

Revision 1.33.22.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:33 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +7 -2 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jan 4 11:28:13 2008 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -2 lines
Ignore symbols marked undefined.

Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:40:48 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.26.2.2: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.2: +39 -22 lines
sync with head.

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:09:49 2007 UTC (17 years, 8 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +22 -5 lines
Sync with head.

Revision 1.31.4.2: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:49 2007 UTC (17 years, 11 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.31.4.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.4.1: +22 -5 lines
sync with head.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:38 2007 UTC (17 years, 11 months ago) by ad
Branches: vmlocking
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +22 -5 lines
Sync with head.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Apr 2 16:44:44 2007 UTC (17 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6, bouyer-xeni386
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +22 -5 lines
Don't panic if we don't find a symbol or string table. Perhaps the kernel
has been stripped?

Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:34 2007 UTC (18 years ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +18 -18 lines
Sync with HEAD.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:03 2007 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +18 -18 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:05 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.1: +103 -31 lines
sync with head.

Revision 1.27.22.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:44 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.27.22.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.22.1: +111 -42 lines
sync with head.

Revision 1.27.20.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:22 2006 UTC (18 years, 4 months ago) by ad
Branches: newlock2
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +103 -31 lines
Sync with head.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Nov 6 13:35:35 2006 UTC (18 years, 4 months ago) by jmmv
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -2 lines
Pass a simple ELF header to ksyms_init_explicit with the minimum contents
required to initialize ksyms_hdr.  Otherwise LKMs do not work when using
ksyms_init_explicit instead of ksyms_init, as is the case of booting an
i386 kernel using Multiboot.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Nov 1 10:17:58 2006 UTC (18 years, 4 months ago) by yamt
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +10 -12 lines
remove some __unused from function parameters.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Oct 25 13:46:36 2006 UTC (18 years, 5 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +95 -31 lines
Add a function (ksyms_init_explicit) to add a symbol table when we know the
exact address of the symtab and strtab ELF sections contents beforehand.

This will be used in i386's Multiboot code to add the initial kernel ksyms
without having to prepare a minimal ELF image that matches the format
expected by the reguluar ksyms_init function.

This part was reviewed by cube@ and successfully passes a full i386 release
build.

Revision 1.27.22.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:10 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -9 lines
sync with head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:15 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -9 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:37 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -6 lines
sync with head.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:29 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -6 lines
merge ktrace-lwp.

Revision 1.13.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:44 2005 UTC (19 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.6: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.6: +26 -36 lines
Sync with HEAD. Here we go again...

Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Fri Jul 1 12:21:18 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +3 -3 lines
Pull up revision 1.26 (requested by riz in ticket #2037):
Use %zx in a format string to print a size_t, not %lx, so a kernel
with KSYMS_DEBUG will compile.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 28 10:25:25 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3 lines
Pull up revision 1.26 (requested by riz in ticket #508):
Use %zx in a format string to print a size_t, not %lx, so a kernel
with KSYMS_DEBUG will compile.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 25 05:30:04 2005 UTC (19 years, 9 months ago) by riz
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
Use %zx in a format string to print a size_t, not %lx, so a kernel
with KSYMS_DEBUG will compile.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jun 23 23:15:12 2005 UTC (19 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -27 lines
Use ANSI function decls.  Apply some static.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun May 29 22:24:15 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +11 -10 lines
- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.21.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:23 2005 UTC (19 years, 10 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +35 -20 lines
sync with -current

Revision 1.21.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:11 2005 UTC (20 years ago) by yamt
Branches: yamt-km
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +35 -20 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.13.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:51:58 2005 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.5: preferred, colored
Changes since revision 1.13.2.5: +10 -10 lines
Sync with HEAD.

Hi Perry!

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (20 years ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +10 -10 lines
nuke trailing whitespace

Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 17 07:10:37 2005 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.4: preferred, colored
Changes since revision 1.13.2.4: +27 -12 lines
Sync with HEAD.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:09:57 2005 UTC (20 years, 1 month ago) by cube
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +27 -12 lines
The way I handled /dev/ksyms requests vs. kernel requests was completely
broken.  Inside the kernel, we always have to use the real values of the
st_name fields, and only do the math when the request comes from userland.

No need for ksyms_getval_from{kernel,userland} hack anymore.  However, a
different version will be asked for pull-up in -2{,-0}, one that doesn't
break the API, that is.

Fixes PR#29133 from Jens Kessmeier.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:04 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.3: preferred, colored
Changes since revision 1.13.2.3: +5 -5 lines
Fix the sync with head I botched.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:02 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.2: preferred, colored
Changes since revision 1.13.2.2: +5 -5 lines
Sync with HEAD.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:45 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.13.2.1: preferred, colored
Changes since revision 1.13.2.1: +167 -60 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Feb 19 03:42:01 2004 UTC (21 years, 1 month ago) by matt
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, netbsd-2, kent-audio2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +19 -13 lines
Move detection of a special symbol into a separate function.  Add some more
special symbols.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Feb 18 23:44:49 2004 UTC (21 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +103 -38 lines
Support really large LKMs.  Find out how much space is needed for symbols
and then allocate it on demand.  Rename some common symbols (__bss_start,
_edata, _end, __start_link_set_*, __stop_link_set_*) so that ".<module>"
is appended to them.  This shrinks an amd64 kernel by 20KB of BSS.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Feb 18 20:41:09 2004 UTC (21 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
s/sumbols/symbols/

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jan 8 22:48:26 2004 UTC (21 years, 2 months ago) by cube
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
If ksyms have not been initialized, return ENXIO in ksymsopen instead of
ksymsread, because ksyms client test availability with open() and not
read().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Nov 17 10:16:18 2003 UTC (21 years, 4 months ago) by cube
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +45 -14 lines
o Fix a bug in ksyms that changed the real meaning of st_name entries for
  symbols, and made it impossible for the kernel to use that value, and
  correctly find symbols from LKMs.
o Allow LKM users to use DDB to debug the entry function of a LKM by
  loading the symbol table with the temporary name /lkmtemp/ before calling
  it, and then renaming it once we know the module name.

Approved by ragge@.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Nov 6 18:22:01 2003 UTC (21 years, 4 months ago) by ragge
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -4 lines
Do not try to enter more than MAX_INT16 symbols into the patricia tree;
the not-entered symbols will be found anyway but via a linear-search.
This only happens if something is wrong when linking the kernel.
Fixes problems reported on port-hp700.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Oct 25 09:03:59 2003 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -7 lines
fix uninitialized variables. one of them is a compiler bug.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 3 10:55:22 2003 UTC (21 years, 6 months ago) by ragge
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
long -> unsigned long.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:37 2003 UTC (21 years, 8 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -5 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:20 2003 UTC (21 years, 8 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:54 2003 UTC (21 years, 8 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -5 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jun 1 00:03:39 2003 UTC (21 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -1 lines
Add __KERNEL_RCSID()

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri May 16 14:25:03 2003 UTC (21 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -8 lines
use strlcpy.  [fixed off-by-one in subr_prop.c]

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun May 11 08:23:23 2003 UTC (21 years, 10 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +15 -12 lines
make couple ksym functions' arguments const

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 7 21:28:16 2003 UTC (21 years, 10 months ago) by ragge
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +230 -15 lines
Remove useless entries from the symbol table at load.
Add patricia-tree-style lookup code for symbols (for fast lookups).

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri May 2 09:34:57 2003 UTC (21 years, 10 months ago) by ragge
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
#ifdef KSYMS_DEBUG should be #if NKSYMS.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri May 2 09:19:51 2003 UTC (21 years, 10 months ago) by tron
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -1 lines
Fix build problems for kernel configurations without the "ksyms"
pseudo-device.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu May 1 20:46:20 2003 UTC (21 years, 10 months ago) by ragge
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +27 -11 lines
Enable the ioctl's.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Apr 26 10:24:58 2003 UTC (21 years, 11 months ago) by ragge
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Make ksymms_init() take void * parameters instead of caddr_t.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 25 20:30:58 2003 UTC (21 years, 11 months ago) by ragge
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +37 -4 lines
Mobe the SYMTAB_SPACE stuff to ksyms_init, so that it can be used without
DDB compiled-in.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Apr 25 07:35:21 2003 UTC (21 years, 11 months ago) by ragge
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Explicitly cast printf arg to long, from Tom Spindler.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Apr 24 19:56:43 2003 UTC (21 years, 11 months ago) by ragge
Branches: MAIN
Basic implementation of in-kernel symbol table manager + /dev/ksyms.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>