The ifdef at the line 375 in Dpiperf/src/driver/x86_64/pi_patch.c
if !defined (RAW_SPINLOCK_MAGIC) &&
LINUX_VERSION_CODE != KERNEL_VERSION(2,6,30)
(it was correct in the 32-bit version).
The fix is in the CVS.
"Philip Brown" <firstname.lastname@example.org>
08/27/2010 04:49 AM
Re: [Perfinsp-list] Building performance
inspector on Ubuntu 10.04 64 bit
Right, I have managed to get the user-space tools
However, there is an error when trying to build the kernel module:
/home/phil/Dpiperf/src/driver/x86_64/pi_patch.c: In function
/home/phil/Dpiperf/src/driver/x86_64/pi_patch.c:379: error: 'pi_schedule2'
undeclared (first use in this function)
The only reference to pi_schedule (other than the call) is in the Makefile,
so I might guess it should be auto-generated.
No idea why it is not being done.
From: Christian Schuhegger [mailto:Christian.Schuhegger@gmx.de]
Sent: 24 August 2010 04:24
To: email@example.com; firstname.lastname@example.org
Subject: Re: [Perfinsp-list] Building performance inspector on Ubuntu 10.04
I just helped myself by replacing every reference to PAGE_SIZE with
4096. You will also have to comment out the second compile round that
tries to compile the 32bit version and finally you have to rename by
hand the lib directory to lib64.
There are several stones in the way, but all of them of a "smaller"
Philip Brown wrote:
> I am trying to install performance inspector on a 64-bit Ubuntu 10.04
> system and am having a few problems.
> uname -a:
> 2.6.32-24-server #41-Ubuntu SMP x86_64
> gcc version 4.4.3
> openjdk 1.6.0_18
> There is an error compiling main.c (src/post/main.c).
> main.c:992: error: initialize element is not constant
> It seems that the PAGE_SIZE can change on modern systems.
> I hacked around this (replacing PAGE_SIZE with the current PAGE_SIZE
> my system).
> A bit further in the build there is an error when linking liba2n.so:
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libiberty.a when searching
> for libiberty.a
> /usr/bin/ld: skipping incompatible /usr/lib/libiberty.a when searching
> for libiberty.a
> /usr/bin/ld: cannot find -liberty
> I had to recompile libiberty.a from the binutils source with
> -enable-shared (-fPIC) to get past an earlier problem.
> There is also a libiberty_pic.a in /usr/lib, sym-linking this to
> /usr/lib/libiberty.a does not solve the problem.
> Do you have any ideas what might be going wrong? I am guessing if
> switch to a 32-bit build some of these problems might disappear?
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue
speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d
Perfinsp-list mailing list