Thread: [perfmon2] [PATCH] fix for perfmon3 whichpmu
Status: Beta
Brought to you by:
seranian
From: Chris J A. <ar...@li...> - 2008-12-15 20:23:19
|
This patch fixes whichpmu on perfmon3, I've tested and it works on ppc970mp. --chris j arges -- Index: examples/detect_pmcs.c =================================================================== RCS file: /cvsroot/perfmon2/libpfm/examples/detect_pmcs.c,v retrieving revision 1.10 diff -r1.10 detect_pmcs.c 67a68,69 > > get_sif(0, sif); Index: examples/whichpmu.c =================================================================== RCS file: /cvsroot/perfmon2/libpfm/examples/whichpmu.c,v retrieving revision 1.4 diff -r1.4 whichpmu.c 39a40 > pfarg_sinfo_t sif; 78c79 < detect_unavail_pmu_regs(0, &una_pmcs, &una_pmds); --- > detect_unavail_pmu_regs(&sif, &una_pmcs, &una_pmds); |
From: stephane e. <er...@go...> - 2008-12-15 20:42:42
|
Chris, On Mon, Dec 15, 2008 at 9:23 PM, Chris J Arges <ar...@li...> wrote: > This patch fixes whichpmu on perfmon3, I've tested and it works on ppc970mp. Thanks for the patch. It is needed on all arch. I need to refresh this program a little bit more. > --chris j arges > > -- > > Index: examples/detect_pmcs.c > =================================================================== > RCS file: /cvsroot/perfmon2/libpfm/examples/detect_pmcs.c,v > retrieving revision 1.10 > diff -r1.10 detect_pmcs.c > 67a68,69 >> >> >> get_sif(0, sif); > > Index: examples/whichpmu.c > =================================================================== > RCS file: /cvsroot/perfmon2/libpfm/examples/whichpmu.c,v > retrieving revision 1.4 > diff -r1.4 whichpmu.c > 39a40 >> >> pfarg_sinfo_t sif; > > 78c79 > < detect_unavail_pmu_regs(0, &una_pmcs, &una_pmds); > --- >> >> detect_unavail_pmu_regs(&sif, &una_pmcs, &una_pmds); > > |