Pradeep,

I found the source of the problem. It was a bad parameter in pfarg_load for
system-wide. I will fix that. But there are other issues with this old
program.
If you want to play with multiplexing, I suggest  you instead use the
multiplex2
example.


On Tue, Jul 22, 2008 at 8:43 PM, Pradeep Rao <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm using pfmon-3.4/libpfm-3.4 and kernel patch perfmon-new-base-080429
> I've also tried pfmon-3.2/libpfm-3.2 with kernel patch
> perfmon-new-base-071017 and the cvs versions.
> All quit at the same point -  pfm_load_context()
>
> I doubt its a mismatch between the libpfm and the kernel versions as
> pfmon built on the same libpfm works fine. Its just with multiplex.c
> in the libpfm-examples (and specifically while monitoring system wide)
>
> Regards,
> Pradeep
>
>
> On Tue, Jul 22, 2008 at 11:52 PM, stephane eranian
> <[EMAIL PROTECTED]> wrote:
> > Pradeep,
> >
> >
> > On Fri, Jul 18, 2008 at 6:35 AM, Pradeep Rao <[EMAIL PROTECTED]>
> wrote:
> >> Hello,
> >>
> >> I have some trouble getting the multiplex.c example to run on my
> platform:
> >> kernel 2.6.25, Opteron model 254
> >>
> >> Any idea what I'm missing ? (systemwide monitoring using pfmon works
> though;)
> >
> > Which version of libpfm/pfmon are you using?
> >
> > Looks like a mismatch between libpfm and the kernel version.
> >
> >
> >>
> >>
> >> $ multiplex --verbose --system-wide -k -- ../../pfmon/tests/noploop
> >> sycall base 288
> >> AMD family=15 model=0x25 stepping=0x1 rev=E (K8 RevE)
> >> 300 Hz period = 9303333 cycles @ 2791 Mhz
> >> total_events=2
> >> PMU programming for set 0
> >> [PERFSEL0(pmc0)=0x520076 emask=0x76 umask=0x0 os=1 usr=0 inv=0 en=1
> int=1 edge=0
> >> cnt_mask=0] CPU_CLK_UNHALTED
> >> [PERFCTR0(pmd0)]
> >> set0 pmc_base=0 pmd_base=0 npmcs=1 npmds=1
> >> PMU programming for set 1
> >> [PERFSEL0(pmc0)=0x5200c0 emask=0xc0 umask=0x0 os=1 usr=0 inv=0 en=1
> int=1 edge=0
> >> cnt_mask=0] RETIRED_INSTRUCTIONS
> >> [PERFCTR0(pmd0)]
> >> set1 pmc_base=1 pmd_base=1 npmcs=1 npmds=1
> >> forcing monitoring onto CPU core 0
> >> child created and stopped
> >> pfm_load_context error errno 22
> >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >> noploop for 1 seconds
> >>
> >> Regards,
> >> Pradeep
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> perfmon2-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
> >>
> >
> >
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to