Microsoft Windows CE 3.0 Technical Articles  

Instrumenting Windows CE Device Drivers with Remote Performance Monitor

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Entrek Software, Inc.

Updated August 2001

Contents

Introduction
Requirements
Physical Components
Startup Sequence
Writing an Instrumented Device Driver
Running the Components
Conclusion

Introduction

With the release of the Microsoft Windows CE Add-On Pack and System Analysis Tools for Platform Builder 3.0 (Add-On Pack), Microsoft has introduced new tools to help third-party developers visually understand what is occurring on remote Windows CE devices. These new tools visually display data that was previously unavailable to third-party developers. A tool that is significant in this respect is Remote Performance Monitor (CEPerfMon). CEPerfMon is a version of the Microsoft Windows NT Performance Monitor that can connect to a remote Windows CE device.

The purpose of this document is to help developers leverage the power of the CEPerfMon Extension Model to instrument Windows CE device drivers. The Extension Model allows third-party developers to add Windows CE performance objects. Windows CE performance objects are sets of logically related performance counters. For example, a parallel port performance object might include such performance counters as bytes written per second and total errors.

Even though this document addresses instrumenting Windows CE device drivers, any remote Windows CE component, for example, COM object and DLL, can be instrumented to display data in CEPerfMon by leveraging the CEPerfMon Extension Model.

Requirements

The requirement for building a device driver that can be instrumented via the CEPerfMon is having the Add-On Pack installed.

All sample Windows CE binaries accompanying this document were compiled for an x86 Windows CE PC-based hardware development platform (CEPC). A CEPC is required to run the sample binaries. The source code for the CEPC binaries is also available and can be rebuilt for any supported platform.

Physical Components

Instrumenting a device driver with CEPerfMon requires these physical components: