pfmon-3.9 is not supported by 2.6.38 kernel, you need to use the perf tool which basically has the same functionality. Latest kernel that supports the pfmon is 2.6.30. 

c.


On Fri, Sep 2, 2011 at 5:39 PM, Junjie Qian <junjie.qian@yahoo.com> wrote:
Hi Xu,

Thanks for reply!

I think I installed libpfm-3.10 successfully, but I have no idea how to run the examples, could you please tell me how to do this?

And thanks for the information about perf_events/perf. I will try this also.

Thanks!
Best
Junjie


From: Xu Liu <xl10@rice.edu>
To: Junjie Qian <junjie.qian@yahoo.com>
Cc: "perfmon2-devel@lists.sourceforge.net" <perfmon2-devel@lists.sourceforge.net>
Sent: Friday, September 2, 2011 4:00 PM
Subject: Re: [perfmon2] Help on make the Pfmon-3.9

Are you sure you installed libpfm3-10 correctly? Run the examples in libpfm3-10. I don't think 2.6.38 kernel still supports perfmon. Maybe you have to try perf_events/perf.

Xu
On Sep 2, 2011, at 3:44 PM, Junjie Qian wrote:

Hi guys,

After double check, I found that the error is that the program says the function stat is not declared in pfmon_symbols.c which is included in the folder pfmon.

The statement in the file is, "  if(!mod && *path == '/' && !stat(path, &st)) {"

Could anyone tell me how to fix it?
Or any hint/help on this.

Thanks!
Best
Junjie


From: Junjie Qian <junjie.qian@yahoo.com>
To: perfmon2-devel@lists.sourceforge.net
Sent: Thursday, September 1, 2011 1:16 PM
Subject: [perfmon2] Help on make the Pfmon-3.9

Hi guys,

I have one problem on making pfmon-3.9. I know this question is kind of low level, but I have tried a lot of ways and no result.
The system  I am using is Ubuntu (2.6.38 kernel), and I have already installed libpfm-3.10 successfully.

The information for this failure is:

make[1]: Entering directory `/home/junjie/tools/PMU/pfmon-3.9/pfmon'
cc  -g -ggdb -Wall -Werror -D_REENTRANT -I/home/junjie/tools/PMU/libpfm3.10/include -DCONFIG_PFMON_X86_64 -DPFMON_DEBUG -DDATADIR=\"/home/junjie/tools/PMU/pfmon3.9/share/pfmon\" -I. -I/usr/include/libelf -D_GNU_SOURCE -DPFMON_DEBUG -g -c pfmon_symbols.c
cc1: warnings being treated as errors
pfmon_symbols.c: In function pfmon_gather_module_symbols?
pfmon_symbols.c:720:3: error: implicit declaration of function tat?
make[1]: *** [pfmon_symbols.o] Error 1
make[1]: Leaving directory `/home/junjie/tools/PMU/pfmon-3.9/pfmon'
make: *** [all] Error 2

Could anyone give me some hint or solution for this?
I have modified the config.mk according to the README.

Thanks!
Best
Junjie

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel









------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel