pcp
[Top] [All Lists]

Re: porting pmapi to windows

To: kenmcd@xxxxxxxxxxxxxxxxx
Subject: Re: porting pmapi to windows
From: Mark Goodwin <markgw@xxxxxxx>
Date: Tue, 17 Jul 2001 13:52:54 +1000 (EST)
Cc: gilly <gilly@xxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.21.0107112300210.8564-100000@masala.engr.sgi.com>
Sender: owner-pcp@xxxxxxxxxxx
On Wed, 11 Jul 2001 kenmcd@xxxxxxxxxxxxxxxxx wrote:

> On Tue, 10 Jul 2001, gilly wrote:
> 
> > Can I use the pmapi for monitoring from a windows machine (the pmcd & pmdas
> > set on linux machines only)?
> > Is there any special porting that need to be done?
> 
> There is lots of porting (we've done some of this in the past, but
> did not complete a fully-functional PCP for anything-from-Redmond).
> 
> The main hurdles are:
> 
> - you'll need a real C compiler and run-time environment that makes
>   your Windows system look like an ANSI C environment

The cygwin environment from Redhat/Cygnus is probably the most suitable.
This environment supports autoconf/configure and the GNU toolchain on
windows, and provides a pretty much complete Unix libc and system call
API over win32. Get it from http://sources.redhat.com/cygwin/

> 
> - you'll have to develop the Windows PMDA from scratch
> 

There is a win32 API for extracting perf stats out of the registry. I don't
know if cygwin apps can call it or not. Another issue is that win32 does
not have a single/global file system root. From memory, cygwin has a
workaround for this.

If possible, please share anything you come up with!

Good luck!

-- Mark


<Prev in Thread] Current Thread [Next in Thread>