Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to install permon2 (pfmon-3.4)in my system .
I'm using the kernel 2.6.26 , processor pentium 4 HT.
But while tryimg to install i m getting the following error .. Pls help me
make[1]: Entering directory `/root/Desktop/pfmon-3.4/pfmon'
gcc -ggdb -g -Wall -Werror -D_REENTRANT -I/usr/local/include -DPFMON_DEBUG -DDAT ADIR=\"/usr/local/share/pfmon\" -I. -I/usr/include/libelf -D_GNU_SOURCE -DCONFIG _PFMON_I386 -DPFMON_DEBUG -g -c pfmon_i386_p6.c
pfmon_i386_p6.c:322: error: ‘PFMLIB_INTEL_PII_PMU’ undeclared here (not in a fun ction)
pfmon_i386_p6.c:341: error: ‘PFMLIB_INTEL_PPRO_PMU’ undeclared here (not in a fu nction)
make[1]: *** [pfmon_i386_p6.o] Error 1
make[1]: Leaving directory `/root/Desktop/pfmon-3.4/pfmon'
make: *** [all] Error 2
Vanilla 2.6.26 doesn't include perfmon2 - it needs to be patched. Some distros (RHEL maybe ???) may have the support in there for you, I don't know.
I had downloaded the patches (for 2.6.25 as it happens) but hadn't done anything with them. Applying the patch adds perfmon2.txt to the source tree under ../Documentation - easy way to check if the patch is on. For the config, there are several options for the different architectures - P4 amongst them; try grep'ing the config for "perfm".
I'm just re-building the kernel now; hopefully I'll be in a position to test all this tomorrow.
Later: everything built o.k. for me. To check for perfmon2, see if /sys/kernel/perfmon exists or not.
Seems to work as advertised (quick test only). You need to get the right levels of all the software - but that shouldn't affect the build, rather execution later.
Runs on my old (quad) P III Xeon machine, so your P4 should be o.k.
There is a GUI front-end for pfmon from one of the guys at CERN - look for gpfmon.
But the problem is still not fixed .
I ll list what i've done so far. I patched the 2.6.26 kernel with perfmon2 patch(and as u
mentioned the Documentaion contains perfmon2.txt ) , installed libpfm ,
and afetr dat i m trying to install pfmon-3.5 . But getting the same error
May be i m embarrassed .. but i m absolutely new to linux ...
UPDATE: Sorry to post it so late. I just missed it.
Solved the problem by commenting the lines which gave me error in the source. I m using pentium 4.Some error was coming agian with something related with AMD. I commented some lines which contained the AMD processor specifications also. Just tried it blindly. May be a wrong way to do, but it worked for me
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.