Commit Graph

22 Commits

Author SHA1 Message Date
Joey Schulze
1aa1cfdb64 Adjusted the search function to find the symbol associated with an
address when EIP address resolving is enabled.
2007-06-18 07:50:55 +00:00
Joey Schulze
5bfd6c6dce We need to read all symbols 2007-06-02 19:04:38 +00:00
Joey Schulze
640b1ba8e0 Improved symbol lookup, since symbols are spread over the entire
address space.  Return the symbol that fits best instead of the first hit.
2007-05-31 15:23:42 +00:00
Joey Schulze
017e328032 Only read kernel symbols from /proc/kallsyms if no System.map has been read 2007-05-31 14:52:20 +00:00
Joey Schulze
54d7bf79f3 Return of the symbols.
Linux 2.6 exports its symbols in /proc/kallsyms and does not implement
query_module() anymore.  Thus, the entire scanner has been overhauled.
2007-05-28 15:24:33 +00:00
Joey Schulze
13bf88e488 Log message 2007-05-26 10:30:46 +00:00
Joey Schulze
7b3a9199d0 Improved query_module calls and unified code against former version (1.12) 2007-05-25 18:07:24 +00:00
Joey Schulze
d9a3b7ff55 Added missing defines and a prototype so that the code compiles.
Removed old code that is neither supported nor working anymore
2007-05-25 18:01:26 +00:00
Joey Schulze
288188d159 Conversion to file coding style 2007-05-25 17:47:46 +00:00
Joey Schulze
a0304e96ac Patch by Kelledin to use the newer query_module function rather than
the old obsolete hack of stepping thru /dev/kmem.
2007-05-25 17:47:16 +00:00
Joey Schulze
962c1cdd2e Added a private module.h with extracted data from Linux 2.2 to replace
<linux/module.h> which creates a number parse errors.
2004-03-31 15:47:08 +00:00
Joey Schulze
5c817e1d38 There's a problem with including kernel-space header files on the
little endian MIPS architecture.  According to Ryan Murray this should
help and also work on all architectures.
2003-09-27 22:05:39 +00:00
Joey Schulze
2c81663786 . Use lseek64() instead of llseek() which is deprecated these days
. Keith Owens <kaos@ocs.com.au>
   - Fixed bug that caused klogd to die if there is no sym_array available.
   - When symbols are expanded, print the line twice.  Once with
     addresses converted to symbols, once with the raw text.  Allows
     external programs such as ksymoops do their own processing on the
     original data.
2000-09-12 21:15:28 +00:00
Joey Schulze
68b50092c7 * ``-m 0'' turns off -- MARK -- now. (closes: Bug#28629, Bug#31494)
* Changed Greg's e-mail address to represent his current one.
  * Shortened line length for kernel logging slightly.
  * Corrected return value of AddModule (closes: Bug#30093)
  * Finally fixed an error with `-a' processing, thanks to Topi Miettinen
    <tom@medialab.sonera.net> (closes: Bug#30462)
1999-01-19 00:09:12 +00:00
Joey Schulze
6eb4f0248d Added additional array boundary check. 1998-10-12 16:40:20 +00:00
Joey Schulze
0beb8eec6d Corrected Mark's email address. 1998-04-13 23:46:21 +00:00
Joey Schulze
1f3d627188 * Fixed typos in syslogd-listfiles(1), thanks to Francesco Potorti`
<F.Potorti@cnuce.cnr.it> (closes: Bug#20903)
  * Corrected email address for Shane Alderton (closes: Bug#20765)
  * Fixed manpage to not reflect reverse implementated SIGALRM signal
    handler (closes: Bug#20647)
  * Modified behaviour with including <sys/module.h> (closes: Bug#20556)
  * Added correct prototype for llseek() (closes: Bug#20507, Bug#20220)
  * Added more log information if problems occurr while reading a system
    map file.
  * Modified System.map read function to try all possible map files until
    a file with matching version is found.
  * Added Debian release to klogd
  * Switched to fgets() as gets() is not buffer overrun secure.
  * Modified loop for detecting the correct system map.
1998-04-13 23:27:37 +00:00
Joey Schulze
92fe2ad65d * Applied patch from Pedro Manuel Rodrigues <pmanuel@cindy.fe.up.pt> to
let klogd work togther with >2GB address space.
1998-03-19 22:56:43 +00:00
Joey Schulze
be8b841a11 * Another patch for Linux/alpha by Christopher C Chimelis
<chris@classnet.med.miami.edu> (fixes: Bug#17385)
1998-01-25 21:06:08 +00:00
Joey Schulze
e9b180bb9b * Corrected some code that caused klogd to dump core when receiving some
special messages from 2.1.78.  Thanks to Chu-yeon Park
    <kokids@doit.ajou.ac.kr> for informing me.
  * Fixed bug that caused klogd to die if there is no System.map
    available.
  * Added -x switch to omit EIP translation and System.map evaluation.
    Thanks to Florian La Roche <florian@knorke.saar.de>.
  * Fixed small bugs in F_FORW_UNKN meachanism.  Thanks to Torsten Neumann
    <torsten@londo.rhein-main.de> for pointing me to it.
  * Fixed problem with klogd not being able to be built on a kernel newer
    than 2.1.18.  Worked in a patch from Alessandro Suardi <asuardi@uninetcom.it>
1998-01-10 18:02:57 +00:00
Joey Schulze
af05ec876f Some more glibc patches made by Michael Alan Dorman <mdorman@debian.org>. 1997-06-15 17:14:04 +00:00
Joey Schulze
dd5def6ac9 Added patch from Leland Olds which fixes a buffer overrun and improved
symbol lookup.
1997-06-13 09:35:55 +00:00