Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Agents
Agents [message #76647] Fri, 07 July 2006 12:53 Go to next message
Eclipse UserFriend
Originally posted by: powerkleszcz.o2.pl

Where can i find some agents (c++ or java) mesauring procesor or mamory
usage.

What to do to compile sdk example agents?? I have errors:
:TimeCollector.cpp:(.text+0x2ce): undefined reference to
`BaseAgentImpl::~BaseAgentImpl()'
:TimeCollector.cpp:(.text+0x300): undefined reference to
`BaseAgentImpl::~BaseAgentImpl()'
....

I have all environment variable set and from some reason it still can't see.
Re: Agents [message #76679 is a reply to message #76647] Fri, 07 July 2006 18:02 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Przemyslaw Kleszczewski wrote:
> Where can i find some agents (c++ or java) mesauring procesor or mamory
> usage.
>
> What to do to compile sdk example agents?? I have errors:
> :TimeCollector.cpp:(.text+0x2ce): undefined reference to
> `BaseAgentImpl::~BaseAgentImpl()'
> :TimeCollector.cpp:(.text+0x300): undefined reference to
> `BaseAgentImpl::~BaseAgentImpl()'
> ...
>
> I have all environment variable set and from some reason it still can't see.


Have you gone through <ac_install_dir>/bin/readme.txt? That's the
"definitive work" on building the samples.


As for the processor/memory usage measuring code... I would take a look
at the PerfmonAgent code in CVS under
/cvsroot/tptp/platform/org.eclipse.tptp.platform.agentcontro ller/src-native/collection/collectors/perfmon...
The rac directory is just the interface to the RAC DLLs, the resutils
directory has utility functions, the PerfmonAgent directory is the
driver program, and the stuff you want is in sysperf for Windows and
perflin for Linux. Good stuff... nice, simple architecture.

Unfortunately, it's an "old agent", in the sense that it uses the RAC
approach to agents. For "new agents", you might have a look at
src-native-new/test/PerfmonAgent... this used to be over in samples in
4.1, but with 4.2 enough changed that it stopped working on the Eclipse
workbench side. But as an agent, it does all the "real" Perfmon does,
but using the architecture of the new AC. Same structure as mentioned
above, but with the object-oriented inheritance mechanisms of C++, the
"rac" directory went away and its functionality was subsumed under the
PerfmonAgent subdirectory in the driver just by declaring the Agent to
extend BaseCollector.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Agents [message #76743 is a reply to message #76679] Mon, 10 July 2006 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: powerkleszcz.o2.pl

Randy D. Smith wrote:

> Have you gone through <ac_install_dir>/bin/readme.txt? That's the
> "definitive work" on building the samples.
>

I have all done all steps from readme file and still have the same linker
errors:
:TimeCollector.cpp
(.gnu.linkonce.t._ZN17EventProviderImplD0Ev[EventProviderImp l::~EventProviderImpl()]+0xc8):
undefined reference to `BaseAgentImpl::~BaseAgentImpl()'
:TimeCollector.cpp
(.gnu.linkonce.t._ZN17EventProviderImplD0Ev[EventProviderImp l::~EventProviderImpl()]+0xfa):
undefined reference to `BaseAgentImpl::~BaseAgentImpl()'


TimeCollector.o
(.gnu.linkonce.d._ZTC13TimeCollector0_17BaseCollectorImpl[vt able for
TimeCollector]+0x44): undefined reference to
`EventProviderImpl::addEventListener(CmdBlock*)'
TimeCollector.o
(.gnu.linkonce.d._ZTC13TimeCollector0_17BaseCollectorImpl[vt able for
TimeCollector]+0x48): undefined reference to
`EventProviderImpl::removeEventListener(CmdBlock*)'
Re: Agents (perfmonAgent) [message #76759 is a reply to message #76679] Mon, 10 July 2006 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: powerkleszcz.o2.pl

During compilation perfmonAgent I have the same error while compiling other
agents:

/tmp/ccT7r1Xu.o: In function `PerfmonAgent::manageResources(int (*
(HashTable*, HashTable*, HashTable*), int (*)(), char** (*)(int*), char**
(*)(int*), PerfmonAgent*)':PerfmonAgent/PerfmonAgent.cpp:154: undefined
reference to `BaseAgentImpl::registerAgent()'
/tmp/ccT7r1Xu.o: In function
`PerfmonAgent::sendRunResponse(CmdBlock*)':PerfmonAgent/Perf monAgent.cpp:584:
undefined reference to `CmdBlock::getDestID()'
:PerfmonAgent/PerfmonAgent.cpp:585: undefined reference to
`CmdBlock::getSourceID()'
:PerfmonAgent/PerfmonAgent.cpp:586: undefined reference to
`CmdBlock::getContextID()'
:PerfmonAgent/PerfmonAgent.cpp:595: undefined reference to
`BaseAgentImpl::sendCommand(char*)'
/tmp/ccT7r1Xu.o: In function
`PerfmonAgent::sendStopResponse(CmdBlock*)':PerfmonAgent/Per fmonAgent.cpp:604:
undefined reference to `CmdBlock::getDestID()'
:PerfmonAgent/PerfmonAgent.cpp:605: undefined reference to
`CmdBlock::getSourceID()'

with what can it be connected???
Re: Agents (perfmonAgent) [message #76791 is a reply to message #76759] Mon, 10 July 2006 19:22 Go to previous message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Przemyslaw Kleszczewski wrote:
> During compilation perfmonAgent I have the same error while compiling other
> agents:
>
> /tmp/ccT7r1Xu.o: In function `PerfmonAgent::manageResources(int (*
> (HashTable*, HashTable*, HashTable*), int (*)(), char** (*)(int*), char**
> (*)(int*), PerfmonAgent*)':PerfmonAgent/PerfmonAgent.cpp:154: undefined
> reference to `BaseAgentImpl::registerAgent()'
> /tmp/ccT7r1Xu.o: In function
> `PerfmonAgent::sendRunResponse(CmdBlock*)':PerfmonAgent/Perf monAgent.cpp:584:
> undefined reference to `CmdBlock::getDestID()'
> :PerfmonAgent/PerfmonAgent.cpp:585: undefined reference to
> `CmdBlock::getSourceID()'
> :PerfmonAgent/PerfmonAgent.cpp:586: undefined reference to
> `CmdBlock::getContextID()'
> :PerfmonAgent/PerfmonAgent.cpp:595: undefined reference to
> `BaseAgentImpl::sendCommand(char*)'
> /tmp/ccT7r1Xu.o: In function
> `PerfmonAgent::sendStopResponse(CmdBlock*)':PerfmonAgent/Per fmonAgent.cpp:604:
> undefined reference to `CmdBlock::getDestID()'
> :PerfmonAgent/PerfmonAgent.cpp:605: undefined reference to
> `CmdBlock::getSourceID()'
>
> with what can it be connected???

This looks like the PerfmonAgent code that is the "migrated port to the
new AC" version from 4.1 ... that code should have been moved out of the
SDK samples in 4.2 and over into the "Test" subdirectory instead in CVS.
The AC migrated out from under that ported version as the 4.2 release
completed. So did you go over there to get the code?

/tmp/ccT7r1Xu.o ... so you're trying to build this with gcc?? I've not
done that (at least not in a LONG while). We tend to build with VC++ 6
as described in our readme.txt file.

*If* I remove the "..\..\..\lib\agentBase.lib" ref in the Link Input
object lib list, I can get these and more... so it looks like you need
agentBase.lib (which I got from building the AC source code).

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Previous Topic:Problems profiling linux app from windows...
Next Topic:Agent Controller and FreeBSD
Goto Forum:
  


Current Time: Thu Apr 18 19:14:00 GMT 2024

Powered by FUDForum. Page generated in 0.01965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top