⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smbprofile.h

📁 samba-3.0.22.tar.gz 编译smb服务器的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef _PROFILE_H_#define _PROFILE_H_/*    Unix SMB/CIFS implementation.   store smbd profiling information in shared memory   Copyright (C) Andrew Tridgell 1999      This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.      This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.      You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*//* * Reasons for cache flush. */#define NUM_FLUSH_REASONS 8 /* Keep this in sync with the enum below. */enum flush_reason_enum { SEEK_FLUSH, READ_FLUSH, WRITE_FLUSH, READRAW_FLUSH,			OPLOCK_RELEASE_FLUSH, CLOSE_FLUSH, SYNC_FLUSH, SIZECHANGE_FLUSH };/* this file defines the profile structure in the profile shared   memory area */#define PROF_SHMEM_KEY ((key_t)0x07021999)#define PROF_SHM_MAGIC 0x6349985#define PROF_SHM_VERSION 10/* time values in the following structure are in microseconds */struct profile_stats {/* general counters */	unsigned smb_count; /* how many SMB packets we have processed */	unsigned uid_changes; /* how many times we change our effective uid *//* system call counters */	unsigned syscall_opendir_count;	unsigned syscall_opendir_time;	unsigned syscall_readdir_count;	unsigned syscall_readdir_time;	unsigned syscall_seekdir_count;	unsigned syscall_seekdir_time;	unsigned syscall_telldir_count;	unsigned syscall_telldir_time;	unsigned syscall_rewinddir_count;	unsigned syscall_rewinddir_time;	unsigned syscall_mkdir_count;	unsigned syscall_mkdir_time;	unsigned syscall_rmdir_count;	unsigned syscall_rmdir_time;	unsigned syscall_closedir_count;	unsigned syscall_closedir_time;	unsigned syscall_open_count;	unsigned syscall_open_time;	unsigned syscall_close_count;	unsigned syscall_close_time;	unsigned syscall_read_count;	unsigned syscall_read_time;	unsigned syscall_read_bytes;	/* bytes read with read syscall */	unsigned syscall_pread_count;	unsigned syscall_pread_time;	unsigned syscall_pread_bytes;	/* bytes read with pread syscall */	unsigned syscall_write_count;	unsigned syscall_write_time;	unsigned syscall_write_bytes;	/* bytes written with write syscall */	unsigned syscall_pwrite_count;	unsigned syscall_pwrite_time;	unsigned syscall_pwrite_bytes;	/* bytes written with pwrite syscall */	unsigned syscall_lseek_count;	unsigned syscall_lseek_time;	unsigned syscall_sendfile_count;	unsigned syscall_sendfile_time;	unsigned syscall_sendfile_bytes; /* bytes read with sendfile syscall */	unsigned syscall_rename_count;	unsigned syscall_rename_time;	unsigned syscall_fsync_count;	unsigned syscall_fsync_time;	unsigned syscall_stat_count;	unsigned syscall_stat_time;	unsigned syscall_fstat_count;	unsigned syscall_fstat_time;	unsigned syscall_lstat_count;	unsigned syscall_lstat_time;	unsigned syscall_unlink_count;	unsigned syscall_unlink_time;	unsigned syscall_chmod_count;	unsigned syscall_chmod_time;	unsigned syscall_fchmod_count;	unsigned syscall_fchmod_time;	unsigned syscall_chown_count;	unsigned syscall_chown_time;	unsigned syscall_fchown_count;	unsigned syscall_fchown_time;	unsigned syscall_chdir_count;	unsigned syscall_chdir_time;	unsigned syscall_getwd_count;	unsigned syscall_getwd_time;	unsigned syscall_utime_count;	unsigned syscall_utime_time;	unsigned syscall_ftruncate_count;	unsigned syscall_ftruncate_time;	unsigned syscall_fcntl_lock_count;	unsigned syscall_fcntl_lock_time;	unsigned syscall_readlink_count;	unsigned syscall_readlink_time;	unsigned syscall_symlink_count;	unsigned syscall_symlink_time;	unsigned syscall_link_count;	unsigned syscall_link_time;	unsigned syscall_mknod_count;	unsigned syscall_mknod_time;	unsigned syscall_realpath_count;	unsigned syscall_realpath_time;	unsigned syscall_get_quota_count;	unsigned syscall_get_quota_time;	unsigned syscall_set_quota_count;	unsigned syscall_set_quota_time;/* stat cache counters */	unsigned statcache_lookups;	unsigned statcache_misses;	unsigned statcache_hits;/* write cache counters */	unsigned writecache_read_hits;	unsigned writecache_abutted_writes;	unsigned writecache_total_writes;	unsigned writecache_non_oplock_writes;	unsigned writecache_direct_writes;	unsigned writecache_init_writes;	unsigned writecache_flushed_writes[NUM_FLUSH_REASONS];	unsigned writecache_num_perfect_writes;	unsigned writecache_num_write_caches;	unsigned writecache_allocated_write_caches;/* counters for individual SMB types */	unsigned SMBmkdir_count;	/* create directory */	unsigned SMBmkdir_time;	unsigned SMBrmdir_count;	/* delete directory */	unsigned SMBrmdir_time;	unsigned SMBopen_count;		/* open file */	unsigned SMBopen_time;	unsigned SMBcreate_count;	/* create file */	unsigned SMBcreate_time;	unsigned SMBclose_count;	/* close file */	unsigned SMBclose_time;	unsigned SMBflush_count;	/* flush file */	unsigned SMBflush_time;	unsigned SMBunlink_count;	/* delete file */	unsigned SMBunlink_time;	unsigned SMBmv_count;		/* rename file */	unsigned SMBmv_time;	unsigned SMBgetatr_count;	/* get file attributes */	unsigned SMBgetatr_time;	unsigned SMBsetatr_count;	/* set file attributes */	unsigned SMBsetatr_time;	unsigned SMBread_count;		/* read from file */	unsigned SMBread_time;	unsigned SMBwrite_count;	/* write to file */	unsigned SMBwrite_time;	unsigned SMBlock_count;		/* lock byte range */	unsigned SMBlock_time;	unsigned SMBunlock_count;	/* unlock byte range */	unsigned SMBunlock_time;	unsigned SMBctemp_count;	/* create temporary file */	unsigned SMBctemp_time;	/* SMBmknew stats are currently combined with SMBcreate */	unsigned SMBmknew_count;	/* make new file */	unsigned SMBmknew_time;	unsigned SMBchkpth_count;	/* check directory path */	unsigned SMBchkpth_time;	unsigned SMBexit_count;		/* process exit */	unsigned SMBexit_time;	unsigned SMBlseek_count;	/* seek */	unsigned SMBlseek_time;	unsigned SMBlockread_count;	/* Lock a range and read */	unsigned SMBlockread_time;	unsigned SMBwriteunlock_count;	/* Unlock a range then write */	unsigned SMBwriteunlock_time;	unsigned SMBreadbraw_count;	/* read a block of data with no smb header */	unsigned SMBreadbraw_time;	unsigned SMBreadBmpx_count;	/* read block multiplexed */	unsigned SMBreadBmpx_time;	unsigned SMBreadBs_count;	/* read block (secondary response) */	unsigned SMBreadBs_time;	unsigned SMBwritebraw_count;	/* write a block of data with no smb header */	unsigned SMBwritebraw_time;	unsigned SMBwriteBmpx_count;	/* write block multiplexed */	unsigned SMBwriteBmpx_time;	unsigned SMBwriteBs_count;	/* write block (secondary request) */	unsigned SMBwriteBs_time;	unsigned SMBwritec_count;	/* secondary write request */	unsigned SMBwritec_time;	unsigned SMBsetattrE_count;	/* set file attributes expanded */	unsigned SMBsetattrE_time;	unsigned SMBgetattrE_count;	/* get file attributes expanded */	unsigned SMBgetattrE_time;	unsigned SMBlockingX_count;	/* lock/unlock byte ranges and X */	unsigned SMBlockingX_time;	unsigned SMBtrans_count;	/* transaction - name, bytes in/out */	unsigned SMBtrans_time;	unsigned SMBtranss_count;	/* transaction (secondary request/response) */	unsigned SMBtranss_time;	unsigned SMBioctl_count;	/* IOCTL */	unsigned SMBioctl_time;	unsigned SMBioctls_count;	/* IOCTL  (secondary request/response) */	unsigned SMBioctls_time;	unsigned SMBcopy_count;		/* copy */	unsigned SMBcopy_time;	unsigned SMBmove_count;		/* move */	unsigned SMBmove_time;	unsigned SMBecho_count;		/* echo */	unsigned SMBecho_time;	unsigned SMBwriteclose_count;	/* write a file then close it */	unsigned SMBwriteclose_time;	unsigned SMBopenX_count;	/* open and X */	unsigned SMBopenX_time;	unsigned SMBreadX_count;	/* read and X */	unsigned SMBreadX_time;	unsigned SMBwriteX_count;	/* write and X */	unsigned SMBwriteX_time;	unsigned SMBtrans2_count;	/* TRANS2 protocol set */	unsigned SMBtrans2_time;	unsigned SMBtranss2_count;	/* TRANS2 protocol set, secondary command */	unsigned SMBtranss2_time;	unsigned SMBfindclose_count;	/* Terminate a TRANSACT2_FINDFIRST */	unsigned SMBfindclose_time;	unsigned SMBfindnclose_count;	/* Terminate a TRANSACT2_FINDNOTIFYFIRST */	unsigned SMBfindnclose_time;	unsigned SMBtcon_count;		/* tree connect */	unsigned SMBtcon_time;	unsigned SMBtdis_count;		/* tree disconnect */	unsigned SMBtdis_time;	unsigned SMBnegprot_count;	/* negotiate protocol */	unsigned SMBnegprot_time;	unsigned SMBsesssetupX_count;	/* Session Set Up & X (including User Logon) */	unsigned SMBsesssetupX_time;	unsigned SMBulogoffX_count;	/* user logoff */	unsigned SMBulogoffX_time;	unsigned SMBtconX_count;	/* tree connect and X*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -