mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
restructure PCP metrics (merge from 2.2 branch)
(This used to be commit dc725c2256ff5f3d8ac37fe33cfa1685194f7f46)
This commit is contained in:
parent
3adc0e7a4e
commit
be6a317345
@ -47,7 +47,7 @@ CFLAGS = $(DEBUG)
|
|||||||
LDOPTS =
|
LDOPTS =
|
||||||
LDLIBS = -lpcp_pmda -lpcp
|
LDLIBS = -lpcp_pmda -lpcp
|
||||||
DSOOPTS = -shared
|
DSOOPTS = -shared
|
||||||
LDIRT = so_locations *.log help.dir help.pag *.pmda_$(IAM).so
|
LDIRT = metrics.h so_locations *.log help.dir help.pag *.pmda_$(IAM).so
|
||||||
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
CC = cc
|
CC = cc
|
||||||
@ -56,11 +56,14 @@ default: $(TARGETS)
|
|||||||
|
|
||||||
install: default
|
install: default
|
||||||
|
|
||||||
$(CMDTARGET): profile.h $(CFILES)
|
$(CMDTARGET): profile.h metrics.h $(CFILES)
|
||||||
$(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
|
$(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
|
||||||
|
|
||||||
$(LIBTARGET): profile.h $(CFILES)
|
$(LIBTARGET): profile.h metrics.h $(CFILES)
|
||||||
$(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
|
$(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
metrics.h: profile.h mkheader.pl
|
||||||
|
./mkheader.pl
|
||||||
|
|
||||||
clobber clean:
|
clobber clean:
|
||||||
rm -f $(LDIRT) $(TARGETS)
|
rm -f $(LDIRT) $(TARGETS)
|
||||||
|
@ -7,7 +7,7 @@ information about transaction activity from the smb daemon.
|
|||||||
|
|
||||||
Note:
|
Note:
|
||||||
This PMDA may be remade from source and hence requires
|
This PMDA may be remade from source and hence requires
|
||||||
a C compiler to be installed.
|
a C compiler and Perl to be installed.
|
||||||
|
|
||||||
Uses of make(1) may fail (without removing or clobbering files)
|
Uses of make(1) may fail (without removing or clobbering files)
|
||||||
if the C compiler cannot be found. This is most likely to
|
if the C compiler cannot be found. This is most likely to
|
||||||
@ -32,7 +32,7 @@ Installation
|
|||||||
|
|
||||||
+ # mkdir /var/pcp/pmdas/samba
|
+ # mkdir /var/pcp/pmdas/samba
|
||||||
+ # cp * /var/pcp/pmdas/samba
|
+ # cp * /var/pcp/pmdas/samba
|
||||||
+ # cp ../source/includes/profile.h /var/pcp/pmdas/samba
|
+ # cp ../source/include/profile.h /var/pcp/pmdas/samba
|
||||||
+ # cd /var/pcp/pmdas/samba
|
+ # cd /var/pcp/pmdas/samba
|
||||||
|
|
||||||
+ Check that there is no clash in the Performance Metrics Domain
|
+ Check that there is no clash in the Performance Metrics Domain
|
||||||
@ -77,7 +77,7 @@ De-installation
|
|||||||
Making something happen
|
Making something happen
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
The application ./smbd updates the shared memory segment to add
|
The application "smbd" updates the shared memory segment to add
|
||||||
profile information about smbd. By default updating is disabled.
|
profile information about smbd. By default updating is disabled.
|
||||||
To start updating of the shared memory segment you need to run the
|
To start updating of the shared memory segment you need to run the
|
||||||
smbcontrol command to turn on profiling for one or more smbd processes
|
smbcontrol command to turn on profiling for one or more smbd processes
|
||||||
|
293
pcp/help
293
pcp/help
@ -19,102 +19,6 @@
|
|||||||
|
|
||||||
@ samba.smbd.uid_changes Count of times effective uid changed
|
@ samba.smbd.uid_changes Count of times effective uid changed
|
||||||
|
|
||||||
@ samba.syscalls.opendir Number of calls to opendir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.opendir_time Time spent executing opendir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.readdir Number of calls to readdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.readdir_time Time spent executing readdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.mkdir Number of calls to mkdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.mkdir_time Time spent executing mkdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.rmdir Number of calls to rmdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.rmdir_time Time spent executing rmdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.closedir Number of calls to closedir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.closedir_time Time spent executing closedir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.open Number of calls to open system call
|
|
||||||
|
|
||||||
@ samba.syscalls.open_time Time spent executing open system call
|
|
||||||
|
|
||||||
@ samba.syscalls.close Number of calls to close system call
|
|
||||||
|
|
||||||
@ samba.syscalls.close_time Time spent executing close system call
|
|
||||||
|
|
||||||
@ samba.syscalls.read Number of calls to read system call
|
|
||||||
|
|
||||||
@ samba.syscalls.read_time Time spent executing read system call
|
|
||||||
|
|
||||||
@ samba.syscalls.read_bytes Number of bytes read by read system call
|
|
||||||
|
|
||||||
@ samba.syscalls.write Number of calls to write system call
|
|
||||||
|
|
||||||
@ samba.syscalls.write_time Time spent executing write system call
|
|
||||||
|
|
||||||
@ samba.syscalls.write_bytes Number of bytes written by write system call
|
|
||||||
|
|
||||||
@ samba.syscalls.lseek Number of calls to lseek system call
|
|
||||||
|
|
||||||
@ samba.syscalls.lseek_time Time spent executing lseek system call
|
|
||||||
|
|
||||||
@ samba.syscalls.rename Number of calls to rename system call
|
|
||||||
|
|
||||||
@ samba.syscalls.rename_time Time spent executing rename system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fsync Number of calls to fsync system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fsync_time Time spent executing fsync system call
|
|
||||||
|
|
||||||
@ samba.syscalls.stat Number of calls to stat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.stat_time Time spent executing stat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fstat Number of calls to fstat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fstat_time Time spent executing fstat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.lstat Number of calls to lstat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.lstat_time Time spent executing lstat system call
|
|
||||||
|
|
||||||
@ samba.syscalls.unlink Number of calls to unlink system call
|
|
||||||
|
|
||||||
@ samba.syscalls.unlink_time Time spent executing unlink system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chmod Number of calls to chmod system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chmod_time Time spent executing chmod system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chown Number of calls to chown system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chown_time Time spent executing chown system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chdir Number of calls to chdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.chdir_time Time spent executing chdir system call
|
|
||||||
|
|
||||||
@ samba.syscalls.getwd Number of calls to getwd system call
|
|
||||||
|
|
||||||
@ samba.syscalls.getwd_time Time spent executing getwd system call
|
|
||||||
|
|
||||||
@ samba.syscalls.utime Number of calls to utime system call
|
|
||||||
|
|
||||||
@ samba.syscalls.utime_time Time spent executing utime system call
|
|
||||||
|
|
||||||
@ samba.syscalls.ftruncate Number of calls to ftruncate system call
|
|
||||||
|
|
||||||
@ samba.syscalls.ftruncate_time Time spent executing ftruncate system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fcntl_lock Number of calls to fcntl_lock system call
|
|
||||||
|
|
||||||
@ samba.syscalls.fcntl_lock_time Time spent executing fcntl_lock system call
|
|
||||||
|
|
||||||
@ samba.statcache.lookups Number of lookups in stat cache
|
@ samba.statcache.lookups Number of lookups in stat cache
|
||||||
|
|
||||||
@ samba.statcache.misses Number of times stat cache lookup missed
|
@ samba.statcache.misses Number of times stat cache lookup missed
|
||||||
@ -155,199 +59,4 @@
|
|||||||
|
|
||||||
@ samba.writecache.size_change_flush
|
@ samba.writecache.size_change_flush
|
||||||
|
|
||||||
@ samba.SMB.SMB_mkdir
|
@ samba.bytes cumulative number of bytes read or written
|
||||||
@ samba.SMB.SMB_mkdir_time
|
|
||||||
@ samba.SMB.SMB_rmdir
|
|
||||||
@ samba.SMB.SMB_rmdir_time
|
|
||||||
@ samba.SMB.SMB_open
|
|
||||||
@ samba.SMB.SMB_open_time
|
|
||||||
@ samba.SMB.SMB_create
|
|
||||||
@ samba.SMB.SMB_create_time
|
|
||||||
@ samba.SMB.SMB_close
|
|
||||||
@ samba.SMB.SMB_close_time
|
|
||||||
@ samba.SMB.SMB_flush
|
|
||||||
@ samba.SMB.SMB_flush_time
|
|
||||||
@ samba.SMB.SMB_unlink
|
|
||||||
@ samba.SMB.SMB_unlink_time
|
|
||||||
@ samba.SMB.SMB_mv
|
|
||||||
@ samba.SMB.SMB_mv_time
|
|
||||||
@ samba.SMB.SMB_getattr
|
|
||||||
@ samba.SMB.SMB_getattr_time
|
|
||||||
@ samba.SMB.SMB_setattr
|
|
||||||
@ samba.SMB.SMB_setattr_time
|
|
||||||
@ samba.SMB.SMB_read
|
|
||||||
@ samba.SMB.SMB_read_time
|
|
||||||
@ samba.SMB.SMB_write
|
|
||||||
@ samba.SMB.SMB_write_time
|
|
||||||
@ samba.SMB.SMB_lock
|
|
||||||
@ samba.SMB.SMB_lock_time
|
|
||||||
@ samba.SMB.SMB_unlock
|
|
||||||
@ samba.SMB.SMB_unlock_time
|
|
||||||
@ samba.SMB.SMB_ctemp
|
|
||||||
@ samba.SMB.SMB_ctemp_time
|
|
||||||
@ samba.SMB.SMB_mknew
|
|
||||||
@ samba.SMB.SMB_mknew_time
|
|
||||||
@ samba.SMB.SMB_chkpth
|
|
||||||
@ samba.SMB.SMB_chkpth_time
|
|
||||||
@ samba.SMB.SMB_exit
|
|
||||||
@ samba.SMB.SMB_exit_time
|
|
||||||
@ samba.SMB.SMB_lseek
|
|
||||||
@ samba.SMB.SMB_lseek_time
|
|
||||||
@ samba.SMB.SMB_lockread
|
|
||||||
@ samba.SMB.SMB_lockread_time
|
|
||||||
@ samba.SMB.SMB_writeunlock
|
|
||||||
@ samba.SMB.SMB_writeunlock_time
|
|
||||||
@ samba.SMB.SMB_readBraw
|
|
||||||
@ samba.SMB.SMB_readBraw_time
|
|
||||||
@ samba.SMB.SMB_readBmpx
|
|
||||||
@ samba.SMB.SMB_readBmpx_time
|
|
||||||
@ samba.SMB.SMB_readBs
|
|
||||||
@ samba.SMB.SMB_readBs_time
|
|
||||||
@ samba.SMB.SMB_writeBraw
|
|
||||||
@ samba.SMB.SMB_writeBraw_time
|
|
||||||
@ samba.SMB.SMB_writeBmpx
|
|
||||||
@ samba.SMB.SMB_writeBmpx_time
|
|
||||||
@ samba.SMB.SMB_writeBs
|
|
||||||
@ samba.SMB.SMB_writeBs_time
|
|
||||||
@ samba.SMB.SMB_writec
|
|
||||||
@ samba.SMB.SMB_writec_time
|
|
||||||
@ samba.SMB.SMB_setattrE
|
|
||||||
@ samba.SMB.SMB_setattrE_time
|
|
||||||
@ samba.SMB.SMB_getattrE
|
|
||||||
@ samba.SMB.SMB_getattrE_time
|
|
||||||
@ samba.SMB.SMB_lockingX
|
|
||||||
@ samba.SMB.SMB_lockingX_time
|
|
||||||
@ samba.SMB.SMB_trans
|
|
||||||
@ samba.SMB.SMB_trans_time
|
|
||||||
@ samba.SMB.SMB_transs
|
|
||||||
@ samba.SMB.SMB_transs_time
|
|
||||||
@ samba.SMB.SMB_ioctl
|
|
||||||
@ samba.SMB.SMB_ioctl_time
|
|
||||||
@ samba.SMB.SMB_ioctls
|
|
||||||
@ samba.SMB.SMB_ioctls_time
|
|
||||||
@ samba.SMB.SMB_copy
|
|
||||||
@ samba.SMB.SMB_copy_time
|
|
||||||
@ samba.SMB.SMB_move
|
|
||||||
@ samba.SMB.SMB_move_time
|
|
||||||
@ samba.SMB.SMB_echo
|
|
||||||
@ samba.SMB.SMB_echo_time
|
|
||||||
@ samba.SMB.SMB_writeclose
|
|
||||||
@ samba.SMB.SMB_writeclose_time
|
|
||||||
@ samba.SMB.SMB_openX
|
|
||||||
@ samba.SMB.SMB_openX_time
|
|
||||||
@ samba.SMB.SMB_readX
|
|
||||||
@ samba.SMB.SMB_readX_time
|
|
||||||
@ samba.SMB.SMB_writeX
|
|
||||||
@ samba.SMB.SMB_writeX_time
|
|
||||||
@ samba.SMB.SMB_trans2
|
|
||||||
@ samba.SMB.SMB_trans2_time
|
|
||||||
@ samba.SMB.SMB_transs2
|
|
||||||
@ samba.SMB.SMB_transs2_time
|
|
||||||
@ samba.SMB.SMB_findclose
|
|
||||||
@ samba.SMB.SMB_findclose_time
|
|
||||||
@ samba.SMB.SMB_findNclose
|
|
||||||
@ samba.SMB.SMB_findNclose_time
|
|
||||||
@ samba.SMB.SMB_tcon
|
|
||||||
@ samba.SMB.SMB_tcon_time
|
|
||||||
@ samba.SMB.SMB_tdis
|
|
||||||
@ samba.SMB.SMB_tdis_time
|
|
||||||
@ samba.SMB.SMB_negprot
|
|
||||||
@ samba.SMB.SMB_negprot_time
|
|
||||||
@ samba.SMB.SMB_sessetupX
|
|
||||||
@ samba.SMB.SMB_sessetupX_time
|
|
||||||
@ samba.SMB.SMB_ulogoffX
|
|
||||||
@ samba.SMB.SMB_ulogoffX_time
|
|
||||||
@ samba.SMB.SMB_tconX
|
|
||||||
@ samba.SMB.SMB_tconX_time
|
|
||||||
@ samba.SMB.SMB_dskattr
|
|
||||||
@ samba.SMB.SMB_dskattr_time
|
|
||||||
@ samba.SMB.SMB_search
|
|
||||||
@ samba.SMB.SMB_search_time
|
|
||||||
@ samba.SMB.SMB_ffirst
|
|
||||||
@ samba.SMB.SMB_ffirst_time
|
|
||||||
@ samba.SMB.SMB_funique
|
|
||||||
@ samba.SMB.SMB_funique_time
|
|
||||||
@ samba.SMB.SMB_fclose
|
|
||||||
@ samba.SMB.SMB_fclose_time
|
|
||||||
@ samba.SMB.SMB_NTtrans
|
|
||||||
@ samba.SMB.SMB_NTtrans_time
|
|
||||||
@ samba.SMB.SMB_NTtranss
|
|
||||||
@ samba.SMB.SMB_NTtranss_time
|
|
||||||
@ samba.SMB.SMB_NTcreateX
|
|
||||||
@ samba.SMB.SMB_NTcreateX_time
|
|
||||||
@ samba.SMB.SMB_NTcancel
|
|
||||||
@ samba.SMB.SMB_NTcancel_time
|
|
||||||
@ samba.SMB.SMB_splopen
|
|
||||||
@ samba.SMB.SMB_splopen_time
|
|
||||||
@ samba.SMB.SMB_splwrite
|
|
||||||
@ samba.SMB.SMB_splwrite_time
|
|
||||||
@ samba.SMB.SMB_splclose
|
|
||||||
@ samba.SMB.SMB_splclose_time
|
|
||||||
@ samba.SMB.SMB_splretq
|
|
||||||
@ samba.SMB.SMB_splretq_time
|
|
||||||
@ samba.SMB.SMB_sends
|
|
||||||
@ samba.SMB.SMB_sends_time
|
|
||||||
@ samba.SMB.SMB_sendb
|
|
||||||
@ samba.SMB.SMB_sendb_time
|
|
||||||
@ samba.SMB.SMB_fwdname
|
|
||||||
@ samba.SMB.SMB_fwdname_time
|
|
||||||
@ samba.SMB.SMB_cancelf
|
|
||||||
@ samba.SMB.SMB_cancelf_time
|
|
||||||
@ samba.SMB.SMB_getmach
|
|
||||||
@ samba.SMB.SMB_getmach_time
|
|
||||||
@ samba.SMB.SMB_sendstrt
|
|
||||||
@ samba.SMB.SMB_sendstrt_time
|
|
||||||
@ samba.SMB.SMB_sendend
|
|
||||||
@ samba.SMB.SMB_sendend_time
|
|
||||||
@ samba.SMB.SMB_sendtxt
|
|
||||||
@ samba.SMB.SMB_sendtxt_time
|
|
||||||
@ samba.SMB.SMB_invalid
|
|
||||||
@ samba.SMB.SMB_invalid_time
|
|
||||||
@ samba.SMB.PATHWORK_setdir
|
|
||||||
@ samba.SMB.PATHWORK_setdir_time
|
|
||||||
@ samba.SMB.TRANS2_open
|
|
||||||
@ samba.SMB.TRANS2_open_time
|
|
||||||
@ samba.SMB.TRANS2_ffirst
|
|
||||||
@ samba.SMB.TRANS2_ffirst_time
|
|
||||||
@ samba.SMB.TRANS2_fnext
|
|
||||||
@ samba.SMB.TRANS2_fnext_time
|
|
||||||
@ samba.SMB.TRANS2_qfsinfo
|
|
||||||
@ samba.SMB.TRANS2_qfsinfo_time
|
|
||||||
@ samba.SMB.TRANS2_sfsinfo
|
|
||||||
@ samba.SMB.TRANS2_sfsinfo_time
|
|
||||||
@ samba.SMB.TRANS2_qpathinfo
|
|
||||||
@ samba.SMB.TRANS2_qpathinfo_time
|
|
||||||
@ samba.SMB.TRANS2_spathinfo
|
|
||||||
@ samba.SMB.TRANS2_spathinfo_time
|
|
||||||
@ samba.SMB.TRANS2_qfileinfo
|
|
||||||
@ samba.SMB.TRANS2_qfileinfo_time
|
|
||||||
@ samba.SMB.TRANS2_sfileinfo
|
|
||||||
@ samba.SMB.TRANS2_sfileinfo_time
|
|
||||||
@ samba.SMB.TRANS2_fsctl
|
|
||||||
@ samba.SMB.TRANS2_fsctl_time
|
|
||||||
@ samba.SMB.TRANS2_ioctl
|
|
||||||
@ samba.SMB.TRANS2_ioctl_time
|
|
||||||
@ samba.SMB.TRANS2_fnotifyfirst
|
|
||||||
@ samba.SMB.TRANS2_fnotifyfirst_time
|
|
||||||
@ samba.SMB.TRANS2_fnotifynext
|
|
||||||
@ samba.SMB.TRANS2_fnotifynext_time
|
|
||||||
@ samba.SMB.TRANS2_mkdir
|
|
||||||
@ samba.SMB.TRANS2_mkdir_time
|
|
||||||
@ samba.SMB.TRANS2_sessetup
|
|
||||||
@ samba.SMB.TRANS2_sessetup_time
|
|
||||||
@ samba.SMB.TRANS2_getDFSref
|
|
||||||
@ samba.SMB.TRANS2_getDFSref_time
|
|
||||||
@ samba.SMB.TRANS2_rptDFSinconsist
|
|
||||||
@ samba.SMB.TRANS2_rptDFSinconsist_time
|
|
||||||
@ samba.SMB.NTTRANS_create
|
|
||||||
@ samba.SMB.NTTRANS_create_time
|
|
||||||
@ samba.SMB.NTTRANS_ioctl
|
|
||||||
@ samba.SMB.NTTRANS_ioctl_time
|
|
||||||
@ samba.SMB.NTTRANS_setsecdesc
|
|
||||||
@ samba.SMB.NTTRANS_setsecdesc_time
|
|
||||||
@ samba.SMB.NTTRANS_notifychange
|
|
||||||
@ samba.SMB.NTTRANS_notifychange_time
|
|
||||||
@ samba.SMB.NTTRANS_rename
|
|
||||||
@ samba.SMB.NTTRANS_rename_time
|
|
||||||
@ samba.SMB.NTTRANS_qsecdesc
|
|
||||||
@ samba.SMB.NTTRANS_qsecdesc_time
|
|
||||||
|
63
pcp/mkheader.pl
Executable file
63
pcp/mkheader.pl
Executable file
@ -0,0 +1,63 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
|
||||||
|
open(PROFILE,"profile.h") || die "Unable to open profile.h\n";
|
||||||
|
@profile = <PROFILE>;
|
||||||
|
close PROFILE;
|
||||||
|
|
||||||
|
open(METRICS,"> metrics.h") || die "Unable to open metrics.h for output\n";
|
||||||
|
|
||||||
|
print METRICS "#define COUNT_TIME_INDOM 0\n";
|
||||||
|
print METRICS "#define BYTE_INDOM 1\n\n";
|
||||||
|
print METRICS "#define FIELD_OFF(x) (unsigned)\&(((struct profile_stats *)NULL)->x)\n\n";
|
||||||
|
print METRICS "typedef struct {\n";
|
||||||
|
print METRICS "\tchar *name;\n";
|
||||||
|
print METRICS "\tunsigned offset;\n";
|
||||||
|
print METRICS "} samba_instance;\n\n";
|
||||||
|
|
||||||
|
@instnames = grep(/unsigned .*_time;/,@profile);
|
||||||
|
foreach $instnames (@instnames) {
|
||||||
|
chomp $instnames;
|
||||||
|
$instnames =~ s/^.*unsigned (.*)_time.*$/$1/;
|
||||||
|
}
|
||||||
|
|
||||||
|
print METRICS "static samba_instance samba_counts[] = {";
|
||||||
|
$first = 1;
|
||||||
|
foreach $1 (@instnames) {
|
||||||
|
if ($first == 1) {
|
||||||
|
$first = 0;
|
||||||
|
print METRICS "\n";
|
||||||
|
} else {
|
||||||
|
print METRICS ",\n";
|
||||||
|
}
|
||||||
|
print METRICS "\t{\"$1\", FIELD_OFF($1_count)}";
|
||||||
|
}
|
||||||
|
print METRICS "\n};\n\n";
|
||||||
|
print METRICS "static samba_instance samba_times[] = {";
|
||||||
|
$first = 1;
|
||||||
|
foreach $1 (@instnames) {
|
||||||
|
if ($first == 1) {
|
||||||
|
$first = 0;
|
||||||
|
print METRICS "\n";
|
||||||
|
} else {
|
||||||
|
print METRICS ",\n";
|
||||||
|
}
|
||||||
|
print METRICS "\t{\"$1\", FIELD_OFF($1_time)}";
|
||||||
|
}
|
||||||
|
print METRICS "\n};\n\n";
|
||||||
|
print METRICS "static samba_instance samba_bytes[] = {";
|
||||||
|
@instnames = grep(/unsigned .*_bytes;/,@profile);
|
||||||
|
$first = 1;
|
||||||
|
foreach $_ (@instnames) {
|
||||||
|
if ($first == 1) {
|
||||||
|
$first = 0;
|
||||||
|
print METRICS "\n";
|
||||||
|
} else {
|
||||||
|
print METRICS ",\n";
|
||||||
|
}
|
||||||
|
/^.*unsigned (.*)_bytes.*$/;
|
||||||
|
print METRICS "\t{\"$1\", FIELD_OFF($1_bytes)}";
|
||||||
|
}
|
||||||
|
print METRICS "\n};\n";
|
||||||
|
|
||||||
|
close METRICS
|
297
pcp/pmns
297
pcp/pmns
@ -5,10 +5,11 @@
|
|||||||
|
|
||||||
samba {
|
samba {
|
||||||
smbd
|
smbd
|
||||||
syscalls
|
|
||||||
statcache
|
statcache
|
||||||
writecache
|
writecache
|
||||||
SMB
|
counts SAMBA:3:0
|
||||||
|
times SAMBA:4:0
|
||||||
|
bytes SAMBA:5:0
|
||||||
}
|
}
|
||||||
|
|
||||||
samba.smbd {
|
samba.smbd {
|
||||||
@ -16,281 +17,29 @@ samba.smbd {
|
|||||||
uid_changes SAMBA:0:1
|
uid_changes SAMBA:0:1
|
||||||
}
|
}
|
||||||
|
|
||||||
samba.syscalls {
|
|
||||||
opendir SAMBA:1:2
|
|
||||||
opendir_time SAMBA:1:3
|
|
||||||
readdir SAMBA:1:4
|
|
||||||
readdir_time SAMBA:1:5
|
|
||||||
mkdir SAMBA:1:6
|
|
||||||
mkdir_time SAMBA:1:7
|
|
||||||
rmdir SAMBA:1:8
|
|
||||||
rmdir_time SAMBA:1:9
|
|
||||||
closedir SAMBA:1:10
|
|
||||||
closedir_time SAMBA:1:11
|
|
||||||
open SAMBA:1:12
|
|
||||||
open_time SAMBA:1:13
|
|
||||||
close SAMBA:1:14
|
|
||||||
close_time SAMBA:1:15
|
|
||||||
read SAMBA:1:16
|
|
||||||
read_time SAMBA:1:17
|
|
||||||
read_bytes SAMBA:1:18
|
|
||||||
write SAMBA:1:19
|
|
||||||
write_time SAMBA:1:20
|
|
||||||
write_bytes SAMBA:1:21
|
|
||||||
lseek SAMBA:1:22
|
|
||||||
lseek_time SAMBA:1:23
|
|
||||||
rename SAMBA:1:24
|
|
||||||
rename_time SAMBA:1:25
|
|
||||||
fsync SAMBA:1:26
|
|
||||||
fsync_time SAMBA:1:27
|
|
||||||
stat SAMBA:1:28
|
|
||||||
stat_time SAMBA:1:29
|
|
||||||
fstat SAMBA:1:30
|
|
||||||
fstat_time SAMBA:1:31
|
|
||||||
lstat SAMBA:1:32
|
|
||||||
lstat_time SAMBA:1:33
|
|
||||||
unlink SAMBA:1:34
|
|
||||||
unlink_time SAMBA:1:35
|
|
||||||
chmod SAMBA:1:36
|
|
||||||
chmod_time SAMBA:1:37
|
|
||||||
chown SAMBA:1:38
|
|
||||||
chown_time SAMBA:1:39
|
|
||||||
chdir SAMBA:1:40
|
|
||||||
chdir_time SAMBA:1:41
|
|
||||||
getwd SAMBA:1:42
|
|
||||||
getwd_time SAMBA:1:43
|
|
||||||
utime SAMBA:1:44
|
|
||||||
utime_time SAMBA:1:45
|
|
||||||
ftruncate SAMBA:1:46
|
|
||||||
ftruncate_time SAMBA:1:47
|
|
||||||
fcntl_lock SAMBA:1:48
|
|
||||||
fcntl_lock_time SAMBA:1:49
|
|
||||||
}
|
|
||||||
|
|
||||||
samba.statcache {
|
samba.statcache {
|
||||||
lookups SAMBA:2:50
|
lookups SAMBA:1:0
|
||||||
misses SAMBA:2:51
|
misses SAMBA:1:1
|
||||||
hits SAMBA:2:52
|
hits SAMBA:1:2
|
||||||
}
|
}
|
||||||
|
|
||||||
samba.writecache {
|
samba.writecache {
|
||||||
num_caches SAMBA:3:53
|
num_caches SAMBA:2:0
|
||||||
allocated_caches SAMBA:3:54
|
allocated_caches SAMBA:2:1
|
||||||
read_hits SAMBA:3:55
|
read_hits SAMBA:2:2
|
||||||
total_writes SAMBA:3:56
|
total_writes SAMBA:2:3
|
||||||
init_writes SAMBA:3:57
|
init_writes SAMBA:2:4
|
||||||
abutted_writes SAMBA:3:58
|
abutted_writes SAMBA:2:5
|
||||||
perfect_writes SAMBA:3:59
|
perfect_writes SAMBA:2:6
|
||||||
direct_writes SAMBA:3:60
|
direct_writes SAMBA:2:7
|
||||||
non_oplock_writes SAMBA:3:61
|
non_oplock_writes SAMBA:2:8
|
||||||
seek_flush SAMBA:3:62
|
seek_flush SAMBA:2:9
|
||||||
read_flush SAMBA:3:63
|
read_flush SAMBA:2:10
|
||||||
write_flush SAMBA:3:64
|
write_flush SAMBA:2:11
|
||||||
readraw_flush SAMBA:3:65
|
readraw_flush SAMBA:2:12
|
||||||
oplock_rel_flush SAMBA:3:66
|
oplock_rel_flush SAMBA:2:13
|
||||||
close_flush SAMBA:3:67
|
close_flush SAMBA:2:14
|
||||||
sync_flush SAMBA:3:68
|
sync_flush SAMBA:2:15
|
||||||
size_change_flush SAMBA:3:69
|
size_change_flush SAMBA:2:16
|
||||||
}
|
}
|
||||||
|
|
||||||
samba.SMB {
|
|
||||||
SMB_mkdir SAMBA:4:70
|
|
||||||
SMB_mkdir_time SAMBA:4:71
|
|
||||||
SMB_rmdir SAMBA:4:72
|
|
||||||
SMB_rmdir_time SAMBA:4:73
|
|
||||||
SMB_open SAMBA:4:74
|
|
||||||
SMB_open_time SAMBA:4:75
|
|
||||||
SMB_create SAMBA:4:76
|
|
||||||
SMB_create_time SAMBA:4:77
|
|
||||||
SMB_close SAMBA:4:78
|
|
||||||
SMB_close_time SAMBA:4:79
|
|
||||||
SMB_flush SAMBA:4:80
|
|
||||||
SMB_flush_time SAMBA:4:81
|
|
||||||
SMB_unlink SAMBA:4:82
|
|
||||||
SMB_unlink_time SAMBA:4:83
|
|
||||||
SMB_mv SAMBA:4:84
|
|
||||||
SMB_mv_time SAMBA:4:85
|
|
||||||
SMB_getattr SAMBA:4:86
|
|
||||||
SMB_getattr_time SAMBA:4:87
|
|
||||||
SMB_setattr SAMBA:4:88
|
|
||||||
SMB_setattr_time SAMBA:4:89
|
|
||||||
SMB_read SAMBA:4:90
|
|
||||||
SMB_read_time SAMBA:4:91
|
|
||||||
SMB_write SAMBA:4:92
|
|
||||||
SMB_write_time SAMBA:4:93
|
|
||||||
SMB_lock SAMBA:4:94
|
|
||||||
SMB_lock_time SAMBA:4:95
|
|
||||||
SMB_unlock SAMBA:4:96
|
|
||||||
SMB_unlock_time SAMBA:4:97
|
|
||||||
SMB_ctemp SAMBA:4:98
|
|
||||||
SMB_ctemp_time SAMBA:4:99
|
|
||||||
SMB_mknew SAMBA:4:100
|
|
||||||
SMB_mknew_time SAMBA:4:101
|
|
||||||
SMB_chkpth SAMBA:4:102
|
|
||||||
SMB_chkpth_time SAMBA:4:103
|
|
||||||
SMB_exit SAMBA:4:104
|
|
||||||
SMB_exit_time SAMBA:4:105
|
|
||||||
SMB_lseek SAMBA:4:106
|
|
||||||
SMB_lseek_time SAMBA:4:107
|
|
||||||
SMB_lockread SAMBA:4:108
|
|
||||||
SMB_lockread_time SAMBA:4:109
|
|
||||||
SMB_writeunlock SAMBA:4:110
|
|
||||||
SMB_writeunlock_time SAMBA:4:111
|
|
||||||
SMB_readBraw SAMBA:4:112
|
|
||||||
SMB_readBraw_time SAMBA:4:113
|
|
||||||
SMB_readBmpx SAMBA:4:114
|
|
||||||
SMB_readBmpx_time SAMBA:4:115
|
|
||||||
SMB_readBs SAMBA:4:116
|
|
||||||
SMB_readBs_time SAMBA:4:117
|
|
||||||
SMB_writeBraw SAMBA:4:118
|
|
||||||
SMB_writeBraw_time SAMBA:4:119
|
|
||||||
SMB_writeBmpx SAMBA:4:120
|
|
||||||
SMB_writeBmpx_time SAMBA:4:121
|
|
||||||
SMB_writeBs SAMBA:4:122
|
|
||||||
SMB_writeBs_time SAMBA:4:123
|
|
||||||
SMB_writec SAMBA:4:124
|
|
||||||
SMB_writec_time SAMBA:4:125
|
|
||||||
SMB_setattrE SAMBA:4:126
|
|
||||||
SMB_setattrE_time SAMBA:4:127
|
|
||||||
SMB_getattrE SAMBA:4:128
|
|
||||||
SMB_getattrE_time SAMBA:4:129
|
|
||||||
SMB_lockingX SAMBA:4:130
|
|
||||||
SMB_lockingX_time SAMBA:4:131
|
|
||||||
SMB_trans SAMBA:4:132
|
|
||||||
SMB_trans_time SAMBA:4:133
|
|
||||||
SMB_transs SAMBA:4:134
|
|
||||||
SMB_transs_time SAMBA:4:135
|
|
||||||
SMB_ioctl SAMBA:4:136
|
|
||||||
SMB_ioctl_time SAMBA:4:137
|
|
||||||
SMB_ioctls SAMBA:4:138
|
|
||||||
SMB_ioctls_time SAMBA:4:139
|
|
||||||
SMB_copy SAMBA:4:140
|
|
||||||
SMB_copy_time SAMBA:4:141
|
|
||||||
SMB_move SAMBA:4:142
|
|
||||||
SMB_move_time SAMBA:4:143
|
|
||||||
SMB_echo SAMBA:4:144
|
|
||||||
SMB_echo_time SAMBA:4:145
|
|
||||||
SMB_writeclose SAMBA:4:146
|
|
||||||
SMB_writeclose_time SAMBA:4:147
|
|
||||||
SMB_openX SAMBA:4:148
|
|
||||||
SMB_openX_time SAMBA:4:149
|
|
||||||
SMB_readX SAMBA:4:150
|
|
||||||
SMB_readX_time SAMBA:4:151
|
|
||||||
SMB_writeX SAMBA:4:152
|
|
||||||
SMB_writeX_time SAMBA:4:153
|
|
||||||
SMB_trans2 SAMBA:4:154
|
|
||||||
SMB_trans2_time SAMBA:4:155
|
|
||||||
SMB_transs2 SAMBA:4:156
|
|
||||||
SMB_transs2_time SAMBA:4:157
|
|
||||||
SMB_findclose SAMBA:4:158
|
|
||||||
SMB_findclose_time SAMBA:4:159
|
|
||||||
SMB_findNclose SAMBA:4:160
|
|
||||||
SMB_findNclose_time SAMBA:4:161
|
|
||||||
SMB_tcon SAMBA:4:162
|
|
||||||
SMB_tcon_time SAMBA:4:163
|
|
||||||
SMB_tdis SAMBA:4:164
|
|
||||||
SMB_tdis_time SAMBA:4:165
|
|
||||||
SMB_negprot SAMBA:4:166
|
|
||||||
SMB_negprot_time SAMBA:4:167
|
|
||||||
SMB_sessetupX SAMBA:4:168
|
|
||||||
SMB_sessetupX_time SAMBA:4:169
|
|
||||||
SMB_ulogoffX SAMBA:4:170
|
|
||||||
SMB_ulogoffX_time SAMBA:4:171
|
|
||||||
SMB_tconX SAMBA:4:172
|
|
||||||
SMB_tconX_time SAMBA:4:173
|
|
||||||
SMB_dskattr SAMBA:4:174
|
|
||||||
SMB_dskattr_time SAMBA:4:175
|
|
||||||
SMB_search SAMBA:4:176
|
|
||||||
SMB_search_time SAMBA:4:177
|
|
||||||
SMB_ffirst SAMBA:4:178
|
|
||||||
SMB_ffirst_time SAMBA:4:179
|
|
||||||
SMB_funique SAMBA:4:180
|
|
||||||
SMB_funique_time SAMBA:4:181
|
|
||||||
SMB_fclose SAMBA:4:182
|
|
||||||
SMB_fclose_time SAMBA:4:183
|
|
||||||
SMB_NTtrans SAMBA:4:184
|
|
||||||
SMB_NTtrans_time SAMBA:4:185
|
|
||||||
SMB_NTtranss SAMBA:4:186
|
|
||||||
SMB_NTtranss_time SAMBA:4:187
|
|
||||||
SMB_NTcreateX SAMBA:4:188
|
|
||||||
SMB_NTcreateX_time SAMBA:4:189
|
|
||||||
SMB_NTcancel SAMBA:4:190
|
|
||||||
SMB_NTcancel_time SAMBA:4:191
|
|
||||||
SMB_splopen SAMBA:4:192
|
|
||||||
SMB_splopen_time SAMBA:4:193
|
|
||||||
SMB_splwrite SAMBA:4:194
|
|
||||||
SMB_splwrite_time SAMBA:4:195
|
|
||||||
SMB_splclose SAMBA:4:196
|
|
||||||
SMB_splclose_time SAMBA:4:197
|
|
||||||
SMB_splretq SAMBA:4:198
|
|
||||||
SMB_splretq_time SAMBA:4:199
|
|
||||||
SMB_sends SAMBA:4:200
|
|
||||||
SMB_sends_time SAMBA:4:201
|
|
||||||
SMB_sendb SAMBA:4:202
|
|
||||||
SMB_sendb_time SAMBA:4:203
|
|
||||||
SMB_fwdname SAMBA:4:204
|
|
||||||
SMB_fwdname_time SAMBA:4:205
|
|
||||||
SMB_cancelf SAMBA:4:206
|
|
||||||
SMB_cancelf_time SAMBA:4:207
|
|
||||||
SMB_getmach SAMBA:4:208
|
|
||||||
SMB_getmach_time SAMBA:4:209
|
|
||||||
SMB_sendstrt SAMBA:4:210
|
|
||||||
SMB_sendstrt_time SAMBA:4:211
|
|
||||||
SMB_sendend SAMBA:4:212
|
|
||||||
SMB_sendend_time SAMBA:4:213
|
|
||||||
SMB_sendtxt SAMBA:4:214
|
|
||||||
SMB_sendtxt_time SAMBA:4:215
|
|
||||||
SMB_invalid SAMBA:4:216
|
|
||||||
SMB_invalid_time SAMBA:4:217
|
|
||||||
|
|
||||||
PATHWORK_setdir SAMBA:4:218
|
|
||||||
PATHWORK_setdir_time SAMBA:4:219
|
|
||||||
|
|
||||||
TRANS2_open SAMBA:4:220
|
|
||||||
TRANS2_open_time SAMBA:4:221
|
|
||||||
TRANS2_ffirst SAMBA:4:222
|
|
||||||
TRANS2_ffirst_time SAMBA:4:223
|
|
||||||
TRANS2_fnext SAMBA:4:224
|
|
||||||
TRANS2_fnext_time SAMBA:4:225
|
|
||||||
TRANS2_qfsinfo SAMBA:4:226
|
|
||||||
TRANS2_qfsinfo_time SAMBA:4:227
|
|
||||||
TRANS2_sfsinfo SAMBA:4:228
|
|
||||||
TRANS2_sfsinfo_time SAMBA:4:229
|
|
||||||
TRANS2_qpathinfo SAMBA:4:230
|
|
||||||
TRANS2_qpathinfo_time SAMBA:4:231
|
|
||||||
TRANS2_spathinfo SAMBA:4:232
|
|
||||||
TRANS2_spathinfo_time SAMBA:4:233
|
|
||||||
TRANS2_qfileinfo SAMBA:4:234
|
|
||||||
TRANS2_qfileinfo_time SAMBA:4:235
|
|
||||||
TRANS2_sfileinfo SAMBA:4:236
|
|
||||||
TRANS2_sfileinfo_time SAMBA:4:237
|
|
||||||
TRANS2_fsctl SAMBA:4:238
|
|
||||||
TRANS2_fsctl_time SAMBA:4:239
|
|
||||||
TRANS2_ioctl SAMBA:4:240
|
|
||||||
TRANS2_ioctl_time SAMBA:4:241
|
|
||||||
TRANS2_fnotifyfirst SAMBA:4:242
|
|
||||||
TRANS2_fnotifyfirst_time SAMBA:4:243
|
|
||||||
TRANS2_fnotifynext SAMBA:4:244
|
|
||||||
TRANS2_fnotifynext_time SAMBA:4:245
|
|
||||||
TRANS2_mkdir SAMBA:4:246
|
|
||||||
TRANS2_mkdir_time SAMBA:4:247
|
|
||||||
TRANS2_sessetup SAMBA:4:248
|
|
||||||
TRANS2_sessetup_time SAMBA:4:249
|
|
||||||
TRANS2_getDFSref SAMBA:4:250
|
|
||||||
TRANS2_getDFSref_time SAMBA:4:251
|
|
||||||
TRANS2_rptDFSinconsist SAMBA:4:252
|
|
||||||
TRANS2_rptDFSinconsist_time SAMBA:4:253
|
|
||||||
|
|
||||||
NTTRANS_create SAMBA:4:254
|
|
||||||
NTTRANS_create_time SAMBA:4:255
|
|
||||||
NTTRANS_ioctl SAMBA:4:256
|
|
||||||
NTTRANS_ioctl_time SAMBA:4:257
|
|
||||||
NTTRANS_setsecdesc SAMBA:4:258
|
|
||||||
NTTRANS_setsecdesc_time SAMBA:4:259
|
|
||||||
NTTRANS_notifychange SAMBA:4:260
|
|
||||||
NTTRANS_notifychange_time SAMBA:4:261
|
|
||||||
NTTRANS_rename SAMBA:4:262
|
|
||||||
NTTRANS_rename_time SAMBA:4:263
|
|
||||||
NTTRANS_qsecdesc SAMBA:4:264
|
|
||||||
NTTRANS_qsecdesc_time SAMBA:4:265
|
|
||||||
}
|
|
||||||
|
1658
pcp/samba.c
1658
pcp/samba.c
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user