Agents [message #76647] |
Fri, 07 July 2006 08:53  |
Eclipse User |
|
|
|
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 14:02   |
Eclipse User |
|
|
|
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 (perfmonAgent) [message #76791 is a reply to message #76759] |
Mon, 10 July 2006 15:22  |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.03171 seconds