1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00
freebsd/usr.bin
Bruce Evans 912e603778 Implemented non-statistical kernel profiling. This is based on
looking at a high resolution clock for each of the following events:
function call, function return, interrupt entry, interrupt exit,
and interesting branches.  The differences between the times of
these events are added at appropriate places in a ordinary histogram
(as if very fast statistical profiling sampled the pc at those
places) so that ordinary gprof can be used to analyze the times.

gmon.h:
Histogram counters need to be 4 bytes for microsecond resolutions.
They will need to be larger for the 586 clock.
The comments were vax-centric and wrong even on vaxes.  Does anyone
disagree?

gprof4.c:
The standard gprof should support counters of all integral sizes
and the size of the counter should be in the gmon header.  This
hack will do until then.  (Use gprof4 -u to examine the results
of non-statistical profiling.)

config/*:
Non-statistical profiling is configured with `config -pp'.
`config -p' still gives ordinary profiling.

kgmon/*:
Non-statistical profiling is enabled with `kgmon -B'.  `kgmon -b'
still enables ordinary profiling (and distables non-statistical
profiling) if non-statistical profiling is configured.
1995-12-29 15:30:05 +00:00
..
apply Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
apropos BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ar Add setlocale LC_TIME 1995-10-24 05:37:15 +00:00
at Add setlocale LC_TIME 1995-10-24 05:09:54 +00:00
banner Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
basename BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
bdes BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
biff BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cal Change the weekday abbrevaiations to two letters each. This reduces 1995-07-22 22:14:49 +00:00
calendar Obtained from: pope gregory and julius caesar 1995-11-11 00:12:47 +00:00
cap_mkdb BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
chat Merge in changes from ppp-2.2's chat onto the mainline... 1995-10-31 23:28:29 +00:00
checknr Terminate string copied by strncpy() by '\0' to fix a core dump. 1995-06-30 04:59:44 +00:00
chflags Set NOSHARED=true, having this binary static makes it much easier to 1995-07-24 01:44:17 +00:00
chpass Correct a typo :-). 1995-09-02 19:25:40 +00:00
cksum BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cmp I don't like what they did to cmp(1) in 4.4 Lite; now it whines all 1994-08-20 11:14:07 +00:00
col Add setlocale LC_CTYPE 1995-10-24 06:15:05 +00:00
colcrt BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
colldef Cleanup make process per Bruce suggestions 1995-11-03 14:53:53 +00:00
colrm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
column BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
comm BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
compile_et According to stdlib.h, malloc and realloc return void * but error_table.y 1995-03-15 19:05:28 +00:00
compress Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
cpp Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
ctags BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
cut Fix wrong separator output 1995-03-21 00:26:32 +00:00
devmenu Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
diff BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
dig Merge beta26 changes 1995-10-23 14:07:51 +00:00
dirname Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
dnsquery Make it compile.. 1995-10-23 16:38:17 +00:00
du Restore the reference to quot(8). 1995-08-13 09:39:23 +00:00
ee Fixed afterinstall rule: 1995-11-18 11:21:37 +00:00
env BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
error Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
expand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
f2c Makefile: use CFLAGS+= instead of CFLAGS=. Don't use the f2c's malloc. 1995-09-28 20:43:33 +00:00
false BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fib Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
file Recognize Acrobat files too. 1995-10-19 15:19:03 +00:00
file2c This is a small little program used to execute a bad practice a clean way :-) 1995-01-29 00:49:57 +00:00
find Don't use printf() for simple strings because it is slow. Closes PR 783. 1995-10-16 18:32:35 +00:00
finger Implement client-side transaction TCP. This has little effect 1995-12-17 21:04:36 +00:00
fmt Dynamically allocate line buffers, instead of assuming that all the 1995-11-15 15:01:01 +00:00
fold BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fpr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
from BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
fsplit Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
fstat Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
ftp Use data ports in the range 40000..44999 by default to enhance FTP usability 1995-08-05 19:12:05 +00:00
gcore Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
gencat Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
getopt Added README which explains the copyright status of getopt(1) 1993-07-27 17:24:17 +00:00
gprof Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
grep/egrep Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
head head(1) ignored EOFs (in certain cases). 1995-08-15 19:34:11 +00:00
hexdump Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
host Merge beta26 changes 1995-10-23 16:07:56 +00:00
id Fixed bug where 'id <user>' output the wrong group name (the user name 1995-08-28 10:23:58 +00:00
indent Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ipcrm Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ipcs Instantiate our own variables instead of depending on bogus common 1995-07-12 19:10:17 +00:00
join Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
jot >Number: 917 1995-12-29 12:18:46 +00:00
kdump Add setlocale LC_CTYPE 1995-10-26 22:16:45 +00:00
key Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
keyinfo Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
keyinit Close docs/43 manpage for keysu is missing 1995-10-28 08:07:38 +00:00
killall Our Perl oracle hit again: Wolfram Schneider's killall utility. 1995-06-25 18:08:27 +00:00
ktrace Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
kzip Support for using overlapping kzip kernels that are overwritten during 1995-10-06 02:42:15 +00:00
lam BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
last Fixed a bug that caused last(1) to be extremely slow in some cases, and 1995-10-17 18:26:43 +00:00
lastcomm Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ld BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ldd Updated to recent version of Paul K.'s shlib code. This code has better 1994-12-23 22:31:35 +00:00
leave BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
lex Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
locate Re-wrote the locate.updatedb script in /bin/sh for speed and portability. 1995-11-09 00:48:41 +00:00
lock Add dependencies on libraries to DPADD. Someday this should be done 1994-08-28 18:49:06 +00:00
logger BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
login Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
logname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
look Make it works with 8bit charsets 1995-10-29 00:20:05 +00:00
lorder Change install' to ${INSTALL}' as usual. 1995-07-25 00:22:50 +00:00
lsvfs Fix bonehead formatting error. 1995-03-16 21:43:03 +00:00
m4 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
mail Correct the man pages, USD doc and online help to refer to /var/mail 1995-11-20 20:51:42 +00:00
make Fix the :S modifier to substitute in each word of the variable, according 1995-11-01 12:18:32 +00:00
man BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mesg BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mk_cmds Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
mkdep Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
mkfifo BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
mklocale Add $id$ and ${COPY} 1995-11-03 14:51:45 +00:00
mkstr BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
modstat Undo the stupidity I inflicted on these files and replace it with 1995-04-20 05:08:53 +00:00
more Add setlocale LC_CTYPE 1995-10-24 05:18:36 +00:00
msgs Localize it 1995-12-13 12:54:26 +00:00
mt Return early in printreg() when the pointer is NULL. For FreeBSD, the 1995-10-21 08:51:01 +00:00
ncftp Add support for high-range FTP data ports 1995-12-10 19:54:49 +00:00
netstat Change .8s port name restriction to .15s, modern tcp port 1995-12-23 18:19:01 +00:00
nfsstat <sys/user.h> -> <sys/time.h> 1995-10-30 15:44:44 +00:00
nice Check the # of arguments, instead of silently dumping core. 1995-12-10 15:33:00 +00:00
nm Add -t option which prints output in tabular format. 1995-12-19 08:12:07 +00:00
nohup BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pagesize Change install' to ${INSTALL}' as usual. 1995-07-25 00:22:50 +00:00
passwd 1) Fix local_passwd to co-operate with dual-personality crypt(3). 1995-12-16 09:45:17 +00:00
paste BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
patch BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
pr Remove wrong LC_TIME env. usage 1995-10-24 05:56:45 +00:00
printenv BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
printf Move out some of the shell builtin bogosity from printf's source to 1995-12-10 15:40:42 +00:00
quota Fix 3 fatal mismatches in format args involving dbtob() and 10 nonfatal 1995-05-07 08:33:39 +00:00
ranlib Fix ranlib to work with odd-length extended names. 1995-11-01 08:06:01 +00:00
rdist Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
renice Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rev BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rlogin Kerberos can now deal with multi-homed clients. 1995-10-05 21:30:21 +00:00
rpcgen Clean up. (I hope I'm doing this right.) 1995-12-13 03:31:10 +00:00
rpcinfo Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
rsh Kerberos can now deal with multi-homed clients. 1995-10-05 21:30:21 +00:00
rup Amend my fix a bit. My way failed to take leap years into account. The 1995-11-21 05:43:27 +00:00
ruptime Change the errx(0,...) to errx(1,...) 1995-09-08 20:33:21 +00:00
rusers Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rwall Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
rwho Add setlocale LT_TIME 1995-10-24 04:09:49 +00:00
sasc add RCS Id strings so we know what we have 1995-09-08 18:42:46 +00:00
sccs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
script Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
sed Merge various fixes from NetBSD. This will allow the WordPerfect for 1995-08-16 05:56:44 +00:00
sgmlfmt This is now perl5 friendly. 1995-10-07 22:28:34 +00:00
sgmls Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
shar Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
showmount Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
size BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
soelim BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
sort BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
split This fixes 'split -l NNN foo'. As it stands split will 1995-07-07 08:23:52 +00:00
strings Use more complicated printable test to remove unnecessary 8bit chars 1995-12-28 16:31:23 +00:00
strip Add the maybe_stripped to a CLEANFILES target to get a clean obj directory 1995-08-01 21:53:35 +00:00
su Make it possible to enable WHEELSU from /etc/make.conf. 1995-10-12 17:25:58 +00:00
symorder Repair the detection of undefined symbols that my last "quick fix" commit 1995-11-03 18:27:18 +00:00
systat Reduced vm dependencies. Only `struct vmmeter.h' is required. 1995-12-13 15:01:13 +00:00
tail Another program depending on zero'ed malloc. 1995-10-10 10:03:48 +00:00
talk Add setlocale LC_CTYPE 1995-10-24 06:02:24 +00:00
tconv Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
tcopy BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tee BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
telnet Oh foo. I should a) learn to read. b) learn to think. :-) 1995-08-28 17:52:39 +00:00
tftp Kill the (hopefully) last occurance of gets(3) in the base source tree. 1995-12-27 23:23:43 +00:00
time Close out PR#723: time -l dumps core 1995-10-28 16:05:32 +00:00
timedef Fix pm name after some time playing with 1995-08-05 23:53:33 +00:00
tip Make tip recognize EOF in more cases. 1995-11-26 21:08:36 +00:00
tn3270 KNFize last change. 1995-10-09 08:17:08 +00:00
touch PR # bin/274 1995-07-08 16:47:47 +00:00
tput Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tr Updated to BSD4.4lite2. Fixes PR836. `echo abcd | tr a-d A-BC-D' now 1995-11-28 13:18:47 +00:00
true BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
tset Remove _set_ospeed, done in tgetent now. 1995-08-05 21:33:11 +00:00
tsort Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
tty BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ul Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
uname BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unexpand BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unifdef BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uniq BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
unvis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
users Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
uucp More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
uudecode BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
uuencode More merry makefile munging for man page compatability. 1994-08-05 19:00:04 +00:00
vacation Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
vgrind Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
vi Fix infamous "TIOCGWINSZ: Interrupted system call" on return from a ^Z 1995-08-07 16:44:28 +00:00
vis Add setlocale LC_CTYPE 1995-10-26 22:26:15 +00:00
vmstat Reduced vm dependencies. Only `struct vmmeter.h' is required. 1995-12-13 15:01:13 +00:00
w Change locale to LC_ALL, there is no bitmask 1995-10-26 11:03:08 +00:00
wall The talkd security hole can ealso be exploited by wall (and thus rwall). 1994-10-23 15:33:55 +00:00
watch Rewrite manual page to use mandoc correctly and fix english grammar. 1995-02-22 23:47:51 +00:00
wc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
what Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
whatis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
whereis BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
which Submitted by: Wolfram Schneider <w@cs.tu-berlin.de> 1995-08-02 07:30:37 +00:00
who Add setlocale LC_TIME 1995-10-24 04:06:02 +00:00
whois BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
window Remove _set_ospeed, it is done in tgetent 1995-08-05 22:04:23 +00:00
write Do unctrl in right way 1995-11-05 09:02:10 +00:00
xargs BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
xinstall Add options -C (same as -c except for preserving the modification 1995-10-09 07:21:00 +00:00
xlint Well, Jochen adopted most of my submissions. So only the different 1995-11-06 21:54:02 +00:00
xstr Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
yacc Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
yes BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
ypcat Move more YP user programs over. 1994-08-08 01:13:35 +00:00
ypmatch Submitted by: Sebastian Strollo <seb@erix.ericsson.se> 1995-03-25 23:26:54 +00:00
ypwhich More XDR routine cleanups. These three programs should be the only 1995-12-15 03:39:46 +00:00
Makefile Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
Makefile.inc BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00