Commit Graph

17 Commits

Author SHA1 Message Date
cube d3730f1c68 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@.
2003-11-17 10:16:18 +00:00
ragge c556165f92 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.
2003-11-06 18:22:01 +00:00
christos 9ff8e797c6 fix uninitialized variables. one of them is a compiler bug. 2003-10-25 09:03:59 +00:00
ragge d13eca2ef5 long -> unsigned long. 2003-09-03 10:55:22 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 960df3c8d1 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
2003-06-28 14:20:43 +00:00
jdolecek bb940d41a0 Add __KERNEL_RCSID() 2003-06-01 00:03:39 +00:00
itojun f265a4a4da use strlcpy. [fixed off-by-one in subr_prop.c] 2003-05-16 14:25:02 +00:00
jdolecek d17c485917 make couple ksym functions' arguments const 2003-05-11 08:23:22 +00:00
ragge 4f432cf54f Remove useless entries from the symbol table at load.
Add patricia-tree-style lookup code for symbols (for fast lookups).
2003-05-07 21:28:16 +00:00
ragge 87c706341d #ifdef KSYMS_DEBUG should be #if NKSYMS. 2003-05-02 09:34:57 +00:00
tron 74905fd4b6 Fix build problems for kernel configurations without the "ksyms"
pseudo-device.
2003-05-02 09:19:51 +00:00
ragge b16f870314 Enable the ioctl's. 2003-05-01 20:46:20 +00:00
ragge 520c93de28 Make ksymms_init() take void * parameters instead of caddr_t. 2003-04-26 10:24:58 +00:00
ragge cddfd23e42 Mobe the SYMTAB_SPACE stuff to ksyms_init, so that it can be used without
DDB compiled-in.
2003-04-25 20:30:57 +00:00
ragge 0bd41108c4 Explicitly cast printf arg to long, from Tom Spindler. 2003-04-25 07:35:21 +00:00
ragge 44305abd0b Basic implementation of in-kernel symbol table manager + /dev/ksyms. 2003-04-24 19:56:43 +00:00