diff options
author | Jeremy Allison <jra@samba.org> | 2004-01-06 01:21:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-01-06 01:21:59 +0000 |
commit | 827c68deb89b5bd14324c57db14274b36a0790d7 (patch) | |
tree | 018ea2e604f64a73899744fced6a41086c90e512 /source3/include/smbprofile.h | |
parent | 35f843a1be9a703328eee3241bc24416cca945e0 (diff) | |
download | samba-827c68deb89b5bd14324c57db14274b36a0790d7.tar.gz samba-827c68deb89b5bd14324c57db14274b36a0790d7.tar.bz2 samba-827c68deb89b5bd14324c57db14274b36a0790d7.zip |
Patch based on work from James Peach <jpeach@sgi.com> to convert over to
using pread/pwrite. Modified a little to ensure fsp->pos is correct.
Fix for #889.
Jeremy.
(This used to be commit 3a24dc868d95c9bcc2ac3a0dbd50e6e226ac0841)
Diffstat (limited to 'source3/include/smbprofile.h')
-rw-r--r-- | source3/include/smbprofile.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index a64c2ce69e..c29a630fe5 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -34,7 +34,7 @@ enum flush_reason_enum { SEEK_FLUSH, READ_FLUSH, WRITE_FLUSH, READRAW_FLUSH, #define PROF_SHMEM_KEY ((key_t)0x07021999) #define PROF_SHM_MAGIC 0x6349985 -#define PROF_SHM_VERSION 7 +#define PROF_SHM_VERSION 8 /* time values in the following structure are in microseconds */ @@ -60,9 +60,15 @@ struct profile_stats { 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; |