Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 1997 12:32:32 +0200
From:      Martin Kammerhofer <dada@freepass.tu-graz.ac.at>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/3287: missing symbols in /usr/src/sys/i386/i386/symbols.raw
Message-ID:  <199704141032.MAA14023@freepass.tu-graz.ac.at>
Resent-Message-ID: <199704141040.DAA02700@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3287
>Category:       kern
>Synopsis:       missing symbols in /usr/src/sys/i386/i386/symbols.raw
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 03:40:25 PDT 1997
>Last-Modified:
>Originator:     Martin Kammerhofer
>Organization:
Graz University of Technology
>Release:        FreeBSD 2.2.1-RELEASE i386
>Environment:


>Description:

The file "symbols.raw" lists several symbols frequently requested by
various utilities from the kernel via nlist(3).
Access to these symbols is speeded up by rearranging them via symorder(1)
during the kernel link process.
I tried cutting on symbol overhead (for floppy booted systems) and
installed a kernel namelist containing ONLY symbols from "symbols.raw".

iostat(8) and vmstat(8) failed after that because they need additional
symbols not listed presently in "symbols.raw".

These programs do work in all normal (not stripped) environments,
but they run slightly slower due to less efficient symbol lookup.

>How-To-Repeat:

To verify you need my patch to symorder(1) in order to get
symorder's -t option (exclude symbols) to work.
It is submitted in another PR.

>Fix:
	
################## patch here ##########################
--- /sys/i386/i386/symbols.raw	Thu May  2 16:19:54 1996
+++ ./symbols.raw	Tue Mar  4 01:16:02 1997
@@ -16,6 +19,7 @@
 	_msgbufp
 #	_msgbuf
 #iostat
+	_dk_ndrive
 	_dk_busy
 	_dk_time
 	_dk_xfer
@@ -37,7 +41,25 @@
 #	_cons
 	_nswap
 	_swaplist
+	_swdevt
+	_nswdev
+	_dmmax
+	_mountlist
+	_numvnodes
+	_maxfiles
 #vmstat
+	_dk_ndrive
+	_cnt
+	_hz
+	_stathz
+	_nchstats
+	_intrnames
+	_eintrnames
+	_intrcnt
+	_eintrcnt
+	_kmemstats
+	_bucket
+	_dk_names
+	_bufspace
 	_cp_time
 #	_rate
 #	_total
################## end of patch ########################

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704141032.MAA14023>