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

[Xen-users] perf hardware event on ARM64



Hi,

I'm working on ARM64 (AppliedMicroâ X-Gene).
I wanted to run perf to collect some hardware events, but I got some trouble.
Basically I have two questions.

1.Â
I found that pmu is not registered in the device tree,
while it is registered on native linux (installed on the same type of machine) .
Can I just modify device tree at booting time to make it look like native linux?
Will it work?
Additional information is at the bottom.

2.Â
I found that running perf on Xen 4.5.0 resulted in segmentation fault (or system crash),
however it runs well on the latest Xen on git server.
Can somebody point the patch that makes this change?
I eventually run perf on Xen 4.5.0.


Some additional information is,

1.ÂCONFIG_HW_PERF_EVENTS=y in both of Xen and native.

2. Native linux shows this line at booting,
hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 5 counters available
while Xen Dom0 shows this line.
hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 1 counters available

3. perf list command shows nothing on Xen Dom0,
but it shows quite a lot on native.
 cpu-cycles OR cycles                [Hardware event]
 instructions                    [Hardware event]
 cache-references                  [Hardware event]
 cache-misses                    [Hardware event]
 branch-misses                   Â[Hardware event]
 ref-cycles                     [Hardware event]

 L1-dcache-loads                  Â[Hardware cache event]
 L1-dcache-load-misses               Â[Hardware cache event]
 L1-dcache-stores                  [Hardware cache event]
 L1-dcache-store-misses               [Hardware cache event]
 branch-loads                    [Hardware cache event]
 branch-load-misses                 [Hardware cache event]


Thanks,
Jintack
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.