Add missing io performance counters.

SystemPerformanceInformation reads io counters.

svn path=/trunk/; revision=9282
This commit is contained in:
Eric Kohl 2004-05-02 19:34:21 +00:00
parent 9ea61adcf9
commit 00010bb088
3 changed files with 15 additions and 10 deletions

View file

@ -1,4 +1,4 @@
/* $Id: sysinfo.c,v 1.33 2004/05/02 04:40:24 jimtabor Exp $
/* $Id: sysinfo.c,v 1.34 2004/05/02 19:34:21 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -18,6 +18,7 @@
#include <ntos.h>
#include <ddk/halfuncs.h>
#include <internal/ex.h>
#include <internal/io.h>
#include <internal/ldr.h>
#include <internal/safe.h>
#include <internal/ps.h>
@ -361,12 +362,12 @@ QSI_DEF(SystemPerformanceInformation)
Spi->IdleTime.QuadPart = TheIdleProcess->Pcb.KernelTime * 100000;
Spi->ReadTransferCount.QuadPart = 0; /* FIXME */
Spi->WriteTransferCount.QuadPart = 0; /* FIXME */
Spi->OtherTransferCount.QuadPart = 0; /* FIXME */
Spi->ReadOperationCount = 0; /* FIXME */
Spi->WriteOperationCount = 0; /* FIXME */
Spi->OtherOperationCount = 0; /* FIXME */
Spi->ReadTransferCount.QuadPart = IoReadTransferCount;
Spi->WriteTransferCount.QuadPart = IoWriteTransferCount;
Spi->OtherTransferCount.QuadPart = IoOtherTransferCount;
Spi->ReadOperationCount = IoReadOperationCount;
Spi->WriteOperationCount = IoWriteOperationCount;
Spi->OtherOperationCount = IoOtherOperationCount;
Spi->AvailablePages = MiNrAvailablePages;
Spi->TotalCommittedPages = MiUsedSwapPages;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: io.h,v 1.42 2004/03/28 09:48:13 navaraf Exp $
/* $Id: io.h,v 1.43 2004/05/02 19:33:29 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -256,6 +256,8 @@ typedef struct _DEVICETREE_TRAVERSE_CONTEXT
extern PDEVICE_NODE IopRootDeviceNode;
extern ULONG IoOtherOperationCount;
extern ULONGLONG IoOtherTransferCount;
VOID
PnpInit(VOID);

View file

@ -1,4 +1,4 @@
/* $Id: iomgr.c,v 1.46 2004/03/27 19:41:32 navaraf Exp $
/* $Id: iomgr.c,v 1.47 2004/05/02 19:33:50 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -36,6 +36,8 @@ ULONG EXPORTED IoReadOperationCount = 0;
ULONGLONG EXPORTED IoReadTransferCount = 0;
ULONG EXPORTED IoWriteOperationCount = 0;
ULONGLONG EXPORTED IoWriteTransferCount = 0;
ULONG IoOtherOperationCount = 0;
ULONGLONG IoOtherTransferCount = 0;
KSPIN_LOCK EXPORTED IoStatisticsLock = 0;
static GENERIC_MAPPING IopFileMapping = {FILE_GENERIC_READ,