Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lacasse_philippe
Beginner
67 Views

Problem viewing result from a Linux Remote Agent

Hi,

I want to profile a simple C application with the Linux Remote Agent.The Activity itself seem to work fine(I see my application start and end on the Linux system) and no error appear on the vtserver during the data collection. The problem iswhen I try to view the result of the activity on the controlling computer.I don't see my application in the process view. In fact all the process arenamed pid_0xXXX where XXX are some number. The only process recognized by vTune on my windows system is vtserver. If I look at the "process path" column in the process view, it's all blank.

I use DEBIAN 4 Linux (Kernel version : 2.6.18-4) on the remote computer. The processor his a PENTIUM Celeron 700 Mhx.

To compile my application I used GCC with -g3 compilation option.

On the controlling machine I use Windows Xp SP2 with vTune 9.0 (Demo) installed.

Here is the output of the vtserver when I start the Activity :

000 07/18/2008 13:45:58 1507 -- Sampling Collector --------
000 07/18/2008 13:45:58 1507 driver version: v0.9495
000 07/18/2008 13:45:58 1507 library version: v0.879

vtlistenerd: 07/18/08 13:46:09 Incoming connection request: Session Id: , User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:46:11 Incoming connection request: Session Id: placasse:qw23efr@vtunetester.homelinux.org:50000-692, User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:46:11 Connection accepted

000 07/18/2008 13:46:13 1574 -- Sampling Collector --------
000 07/18/2008 13:46:13 1574 driver version: v0.9495
000 07/18/2008 13:46:13 1574 library version: v0.879

vtlistenerd: 07/18/08 13:48:13 Incoming connection request: Session Id: placasse:qw23efr@vtunetester.homelinux.org:50000-692, User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:48:13 Connection accepted

000 07/18/2008 13:48:14 1641 -- Sampling Collector --------
000 07/18/2008 13:48:14 1641 driver version: v0.9495
000 07/18/2008 13:48:14 1641 library version: v0.879

001 07/18/2008 13:48:17 1641 received request from placasse@dhcp-16-193.ele.etsmtl.ca

001 07/18/2008 13:48:17 1641 sampling run started ...
vtlistenerd: 07/18/08 13:48:18 Incoming connection request: Session Id: placasse:qw23efr@vtunetester.homelinux.org:50000-C:Documents and SettingsphilApplication DataVTuneProjectsLinux, User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:48:18 Connection accepted
000 07/18/2008 13:48:19 1712 User "placasse" from "142.137.16.1 93" is executing application...

HERE IS WHERE MY APPS RUN
Malloc time !!
load fichier
Before fread file headerheight = 466 tans fichier
write fichier
bleh

===============================
001 07/18/2008 13:48:21 1641 sampling stopped ... processing data ...

001 07/18/2008 13:48:21 1641 sampling run completed

001 07/18/2008 13:48:22 1641 sending sampling.tb5 (164592 bytes) to placasse@dhcp-16-193.ele.etsmtl.ca ...

002 07/18/2008 13:48:25 1641 received request from placasse@dhcp-16-193.ele.etsmtl.ca

002 07/18/2008 13:48:25 1641 sampling run started ...
vtlistenerd: 07/18/08 13:48:26 Incoming connection request: Session Id: placasse:qw23efr@vtunetester.homelinux.org:50000-C:Documents and SettingsphilApplication DataVTuneProjectsLinux, User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:48:26 Connection accepted
000 07/18/2008 13:48:27 1784 User "placasse" from "142.137.16.193" is executing application...

HERE IS WHERE MY APPS RUN
Malloc time !!
load fichier
Before fread file headerheight = 466 tans fichier
write fichier
bleh

=========================
002 07/18/2008 13:48:30 1641 sampling stopped ... processing data ...

002 07/18/2008 13:48:30 1641 sampling run completed

002 07/18/2008 13:48:30 1641 sending sampling.tb5 (232512 bytes) to placasse@dhcp-16-193.ele.etsmtl.ca ...
vtlistenerd: 07/18/08 13:48:33 Incoming connection request: Session Id: , User_Id: placasse, Client IP: 142.137.16.193 Arch: , Version: vt 9.0, protocol version 0.0
vtlistenerd: 07/18/08 13:48:33 Connection accepted

000 07/18/2008 13:48:35 1849 ISM agent: moduleID created for /home/placasse/apps/imagetest

Thanks for any answer

0 Kudos
3 Replies
David_A_Intel1
Employee
67 Views

It appears you are using the Linux remote agent on a Pentium 4 processor running Debian* 4, and with the VTune analyzer 9.0 for Windows* client. There have been significant fixes in version 9.0. Version 9.0 Update 11 is currently available on the Intel Registration Center.

Otherwise, the following info might be helpful:

The CONFIG_PROFILING is a kernel compile-time option. When enabled (see kernel's .config file), it allows tools such as the VTune analyzer driver to register to be notified of process lifecycle events (app/thread creation, termination, etc.). If this option is not enabled, then users may see many "pid_0xNNN" entries under Process View (note: apps which were started prior to the sampling session, such as vtserver, should still appear, because the driver does a scan of the tasklist (expensive operation, but does not rely on module notifications)).

Thomas_W_Intel
Employee
67 Views

Philippe,

How long is your program running? If it lasts only a few ms, this might be too short for VTune to catch any samples for it. You can decrease the sample after value to collect more samples, but preferably your application runs at least for a few seconds.

I would also try to runthe VTune front-end on the Linux systemto check if the remote data collector is the problem (e.g. use vnc or an X-server for Windows).

Kind regards

Thomas

lacasse_philippe
Beginner
67 Views

I got it running. It was the lijnux profile that wasn't install proprely. Si it had nithing to do with vTune.

thx for all your help

Phil

Reply