Re: Can I use this kind of performance counters to implement oProfile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You should be able to accumulate counters during process switching or a
timer routine, I managed to implement perfctr(another profiling
software) for godson-2 cpu, for both cases with/without interrupt
support. You can look at generic perfctr code.

colin 写道:
> Hi all,
> Our SOC has performance counters, and we would like to use oProfile on it.
> After surveying the oProfile doc, I found that the model of our performance
> counters donot seem to fit oProfile.
> This is because oProfile uses the interrupts caused by overflow of, say,
> cache miss count to estimate the probability of this event in every portion.
> Our SOC doesn't emit interrupt when event count overflow. Therefore,
> oProfile cannot be used to estimate cache miss event on our chip. Is that
> right?
> 
> Regards,
> Colin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux