Ken McDonell from SGI was interested in adding some profiling
authorAndrew Tridgell <tridge@samba.org>
Thu, 1 Apr 1999 05:22:58 +0000 (05:22 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 1 Apr 1999 05:22:58 +0000 (05:22 +0000)
commitd330c907bdc5d8e3c242cea76dfafaae84041270
treed5a1381ca1adbe412bdb25084632ffc6b053f2c1
parenta8aff598f42a7479a2c43cbd04064cbbcf150599
Ken McDonell from SGI was interested in adding some profiling
capabilities to Samba so that Samba could talk to the SGI PCP
(Performance Co-Pilot) apps.

This change adds a profiling shared memory area and uses it to count
two fairly trivial things, the number of uid switches and the number
of SMB packets processes. To add more just edit include/profile.h and
then increment it at the right place.

I've also added a -P switch to smbstatus to dump the profile area.
(This used to be commit ef3d61a80ad0b87c196a63ef2bd4fe8fc3863bd0)
12 files changed:
source3/Makefile.in
source3/acconfig.h
source3/configure
source3/configure.in
source3/include/config.h.in
source3/include/includes.h
source3/include/proto.h
source3/locking/shmem_sysv.c
source3/smbd/process.c
source3/smbd/server.c
source3/smbd/uid.c
source3/utils/status.c