[netperf-dev] Dealing with DLL's

Rick Jones rick.jones2 at hp.com
Wed Apr 5 15:11:05 PDT 2006


Folks -

You've probably already seen the commit message that said a basic 
"sysstats" test has run under Windows (with the "none" sysstats 
functionality :)

The nettest_bsd stuff is going to take a little longer.

Seems that unlike the rest of the universe, under Windows a dynamically 
loaded library cannot make direct calls against functions defined up in 
the executable.  Either one has to "rendezvous" by calling into a 
routine in the DLL with a list of function pointers, or one has to put 
the functions the DLL wants to call into a DLL of their own.

nettest_bsd and the rest of the tests make calls like "get_confidence"

I'm initially inclined to simply put some additional function pointers 
into the test_t and let the test modules get at the routines that way 
(ie the "rendezvous" call) but I thought I'd check with folks first.

happy benchmarking,

rick jones


More information about the netperf-dev mailing list