Community
cancel
Showing results for 
Search instead for 
Did you mean: 
105 Views

VTune on 2.6

What is the status of VTune on 2.6 kernels? The driver module seems to compile okay, but I get:

# insmod vtune_drv-x32-2.6.10-1.737_FC3smpsmp.ko
insmod: error inserting 'vtune_drv-x32-2.6.10-1.737_FC3smpsmp.ko': -1 Invalid module format

This is on Fedora Core 3 with vt_cli_3.0.814.

-c
0 Kudos
7 Replies
David_A_Intel1
Employee
105 Views

Current versions do not support Fedora Core 2 or above. We may support these in a future release. Watch for a beta release later this year.
Current support of 2.6 kernels is limited to SuSE* 9.1 and SLES* 9.
You may be able to get the RDC (remote data collector) working with other 2.6 kernels, since the RDC requires less software to actually run on the system. However, they are not officially supported.
vikram_kalsi
Beginner
105 Views

I am facing a similar situation-

I am running RHEL AS4 kernel-2.6.9 on a dual-cpu Itanium2 machine. After adding following lines to kernel/kallsyms.c and recompiling the kernel and the driver, I am able to load the sampling driver vtune_drv-

extern void *sys_call_table;
extern void *register_percpu_irq;
EXPORT_SYMBOL(sys_call_table);
EXPORT_SYMBOL(register_percpu_irq);

On the ia64 m/c, I only have rdc installed and vtserver starts up fine. Now when I try to try to collect data remotely, the vtserver output says -
Sampling Activity started
Sampling Activity stopped
Processing data

However, at this point vtserver.bin goes defunct and basically the controlling host also vtlec hangs. This happens both with windows and linux controlling hosts. Couple of times I got LIBVSAMP errors, but they go away after reloading the kernel driver.

Now, I've gotten this far and can anybody suggest anything to make this work?

Any timeline for kernel-2.6 support (even alpha ver)?

Thanks in anticipation,
vikram_kalsi
Beginner
105 Views

Just an update with actual log file outputs-

-------VTSERVER OUTPUT-------------------------------

Setting up ISM environment ...
ISM_DATA_DIR=/home/vtune/VTune/ISM
ISM_INST_DIR=/opt/intel/vtune/rdc/shared/bin
ISM_TEMP_DIR=/tmp/ISM_tmp
Setting up Call Graph environment ...
BSERVER_LIBRARY=libBistroServer64.so
__Bistro_Exit_Signal__=
__Bistro_MASTER_PROJECT_PATH__=/home/vtune/VTune
BSERVER_TEMP_DIRECTORY=/home/vtune/VTune/.bistro_server
BSERVER_CACHE_DIRECTORY=/tmp/vtune_*/Cache
CLASSPATH=.:/opt/intel/vtune/rdc/analyzer/bin
Setting up Sampling environment ...

Warning: unable to find uncompressed kernel "vmlinux-2.6.9-prep"

In order to drill down into kernel hotspots, the kernel must be in
uncompressed format. Uncompressing the kernel file can be done via,

cp /boot/efi/efi/redhat/vmlinuz-2.6.9-prep /home/vtune/VTune/vmlinux-2.6.9-prep.gz
gunzip /home/vtune/VTune/vmlinux-2.6.9-prep.gz

VTUNE_LINUX_KERNEL_LOAD_ADDRESS=0xA000000100000000
VTUNE_LINUX_KERNEL_SIZE=0x555E30
VTUNE_LINUX_KERNEL_FILENAME=/home/vtune/VTune/vmlinux-2.6.9-prep
Setting up Remote Data Collection environment ...
PATH=/opt/intel_cc_80/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/vkalsi/bin:/home/vkalsi/dbms/mysql/bin:/home/vkalsi/dbms/pgsql/bin:/opt/intel/vtune/bin:/opt/intel/vtune/rdc/shared/bin:/home/vkalsi/usr/local/bin
LD_LIBRARY_PATH=/opt/intel_cc_80/lib:/home/vkalsi/dbms/mysql/lib:/home/vkalsi/dbms/pgsql/lib
DATA_DIRECTORY=/home/vtune/VTune
000 03/08/05 12:13:56 ======================================================
000 03/08/05 12:13:56
000 03/08/05 12:13:56 VTune Performance Analyzer Remote Agent for Linux*
000 03/08/05 12:13:56 Copyright (C) 2002-2004 Intel Corporation
000 03/08/05 12:13:56
000 03/08/05 12:13:56 -- System Information --------
000 03/08/05 12:13:56 number of CPUs: 2
000 03/08/05 12:13:56 CPU speed: 1396 MHz
000 03/08/05 12:13:56
000 03/08/05 12:13:56 -- Remote Agent --------------
000 03/08/05 12:13:56 server version: v0.9986
000 03/08/05 12:13:56
000 03/08/05 12:13:56 -- Sampling Collector --------
000 03/08/05 12:13:56 driver version: v0.9411
000 03/08/05 12:13:56 library version: v0.8661
000 03/08/05 12:13:56
000 03/08/05 12:13:56 -- Call Graph Collector ------
000 03/08/05 12:13:56 library version: v0.99
000 03/08/05 12:13:58
000 03/08/05 12:13:58 -- ISM Agent Proxy -----------
000 03/08/05 12:13:58 library version: v0.1r
000 03/08/05 12:13:58
000 03/08/05 12:13:58 server on linux-host
000 03/08/05 12:13:58
000 03/08/05 12:13:58 server listening on port 50000
000 03/08/05 12:13:58
000 03/08/05 12:13:58 server is ready ...

001 03/08/05 12:19:39 received request from linux-ctrl
001 03/08/05 12:19:39
001 03/08/05 12:19:39 sampling run started ...
001 03/08/05 12:19:41
001 03/08/05 12:19:41 sampling stopped ... processing data ...

--------------------------------------------------------------

SHELL>ps -eaf|grep vt
vkalsi 3686 1 0 12:13 pts/0 00:00:00 /opt/intel/vtune/rdc/shared/bin/vtserver.bin -p 50000
vkalsi 3842 3686 0 12:19 pts/0 00:00:00 [vtserver.bin] defunct
vkalsi 3755 3686 0 12:13 pts/0 00:00:00 /opt/intel/vtune/rdc/shared/bin/vtserver.bin -p 50000

Message Edited by vikram_kalsi on 03-08-2005 09:37 AM

105 Views

There may be a later version of the sampling driver, which I'm thinking is the case. Hey don't make fun, someday you'll be old and your memory won't be so good any more either.
:)
Anyway, I'll check and report back.
jdg
105 Views

OK. Official word is, the RH 2.6 is just NOT going to work until the next release of the analyzer software for Linux, which is due currently for general availability in the late Fall of this year.
No way it's going to work until then guys. FYI.
vikram_kalsi
Beginner
105 Views

Thanks a lot for the info. This certainly means a drastic change of plans for me.
I would also like to point out that Vtune Analyzer (Sampling Driver+Analyzer+GUI, etc) works for meon Redhat EL AS4 (i.e. kernel-2.6.9) on a Pentium-4 machine, but not on IA64!!! I can also see some pre-built vtune_drv's for the 2.6 kernel in vdk/ on the P4.
So, I guess what you mean is thatits RH kernel-2.6 onItanium architecture thatthe vtune driver wont work on???
Also, what about "/opt/intel/vtune/vdk/vtune_drv-x64-2.6.5-7.97-defaultsmp.ko"? What linux distro is that for? Is it possible to use this driver if I downgrade my current kernel to this version?
Are there any plans of a beta version anytime soon?
Thanks again,
I apologize for so many Ques but I just want to exhaust all my options before going for Oprofile...
105 Views

Hey VK, asking questions is what this forum is about! (In other words, Fire away!)
:)
Ok the only 2.6 kernels we currently support are SuSE, and via remote data collector only (which means you have to run vtserver on the system running 2.6, not vtl or vtlec). This two system approach works really well, but means you need another 2.4 linux system on the net to install vtl/vtlec or, to install VTune 7.2 for Windows: both work great with the linux remote agent, vtserver.
The release notes point out by name that we support 2.6.5-7.97 for Novell SuSE Enterprise Linux 9.0. (We support this and one other if you're running on an EM64T processor.)
If you have further questions and are tired of posting (just checking!), you can find the release notes by opening a browser and pointing to this file (default location listed):
cheers
jdg
Reply