Hi,
On Fri, Feb 19, 2010 at 5:07 PM, Justin Slepak <jrsle...@gmail.com> wrote: > I am trying to set up perfmon2 to use PEBS on a Pentium 4 machine. When I > run the sample program smpl_p4_pebs, I get the error message, "Can't create > PFM context Invalid argument, maybe you do not have the P4/Xeon PEBS > sampling format in the kernel. Check /sys/kernel/perfmon". In > /sys/kernel/perfmon/formats, I have directories for "default" and > "pebs32_p4", but each only contains a "version" file. > I'm using the most recent perfmon branch of the kernel > (http://git.kernel.org/?p=linux/kernel/git/eranian/linux-2.6.git;a=commit;h=5c4d5d7e54825767ecb16e9dee31a4f77b390998). > Is this a problem with my kernel configuration, or something else? Not obvious what the problem is. I assume you are also using the latest libpfm code from CVS and running examples_v2.x/x86/smpl_p4_pebs. If not then try this first. Otherwise, it would be helpful if you could send me some debug output. For that to work, you need to compile your kernel with CONFIG_DYNAMIC_DEBUG=y. Then you reboot, and you turn on perfmon debugging and in particular: echo 'file arch/x86/perfmon/perfmon_pebs_p4_smpl.c +p' >/debugfs/dynamic_debug/control echo 'file perfmon/perfmon_ctx.c +p' >/debugfs/dynamic_debug/control echo 'file perfmon/perfmon_res.c +p' >/debugfs/dynamic_debug/control Then capture the output using the dmesg command. > Thanks for your help. > -- > Justin Slepak > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel