Re: Profiling

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

 





> -----Original Message-----
> From: Marc Zyngier [mailto:marc.zyngier@xxxxxxx]
> Sent: Monday, November 05, 2012 4:04 PM
> To: Sundaram, Senthilkumar
> Cc: Jessica Allison; kvmarm@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Profiling
> 
> On 04/11/12 09:12, Sundaram, Senthilkumar wrote:
> > Hi Mark,
> >
> > Sorry for the confusion. I was cherry-picking from the wrong branch.
> >
> > Now I am able to build perf support successfully after the following
> > steps
> >
> > 1) Merging kvm-perf from your tree on to kvm-arm
> > 2) Then cherrypicking bff6c03618  commit from your tree again on to
> > kvm-arm
> > 3) Enable CONFIG_HW_PERF_EVENTS in kernel config file
> >
> > Can you suggest how I should get the perf binaries ? I am running kvm-arm
> on a Fast Model with a minimal  initrd filesystem and no networking support.
> So I need to package the perf along with my initrd filesystem.
> >
> > I used a statically linked perf for ARM that I downloaed from a google
> download site. It seems to work, but it is having permission issues when I try
> to collect HardwareEvents.
> >
> > It works fine for software events:
> >
> >> perf state -e cpu-clock ls
> >>
> > "works fine"
> >
> >
> > For Hardware events I get the following error
> >
> >> perf stat -e cycles ls
> >> No permission to collect stats.
> >> Consider tweaking /proc/sys/kernel/perf_event_paranoid
> >
> > I did modify perf_event_paranoid with value of -1 which is supposed to
> take care of any permission issues.
> >
> > So I am not sure if it is an issue with the perf binary that I downloaded or if
> it is due to some other issues accessing the hardware events counter.
> 
> Can you check if your PMU hardware gets registered? You should see some
> messages in your kernel log, and have the corresponding device in your
> device-tree.
> 
[[ss]] I checked my dts file and there is no entry for PMU in it. So I guess it is lacking support for PMU hardware. Can you point me to a dts with PMU support? Please note that I am running on a VExp Fast Model

> 	M.
> --
> Jazz is not dead. It just smells funny...


_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm


[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux