Comment 10 for bug 1675949

Revision history for this message
Paolo Pisati (p-pisati) wrote :

On a fresh Xenial/arm64 installation:

$ uname -r
4.4.0-141-generic
$ uname -m
aarch64

$ dpkg -S $(which perf)
linux-tools-common: /usr/bin/perf

$ dpkg --get-selections | grep linux-tools
linux-tools-4.4.0-141 install
linux-tools-4.4.0-141-generic install
linux-tools-common install
linux-tools-generic install

$ sudo perf record -a -- sleep 10
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.131 MB perf.data (626 samples) ]

followed by:

$ sudo perf report

i see the captured samples:

  42.22% swapper [kernel.kallsyms] [k] arch_cpu_idle ▒
   5.10% tmux [kernel.kallsyms] [k] copy_page ◆
   1.37% tmux libc-2.23.so [.] 0x000000000006e680 ▒
   1.37% tmux tmux [.] 0x0000000000028684 ▒
   1.37% tmux libc-2.23.so [.] strcmp ▒
   1.35% swapper [kernel.kallsyms] [k] tick_nohz_idle_enter ▒
   1.23% tmux tmux [.] 0x00000000000355dc ▒
   1.05% sh [kernel.kallsyms] [k] handle_mm_fault ▒
   1.01% tmux [kernel.kallsyms] [k] filemap_map_pages ▒
   1.01% swapper [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore ▒
   0.96% tmux libc-2.23.so [.] free

but when i try to inspect a kernel function:

Annotate filemap_map_pages ◆
Zoom into sh(5304) thread ▒
Zoom into [kernel.kallsyms] DSO ▒Annotate filemap_map_pages ◆
Zoom into sh(5304) thread ▒
Zoom into [kernel.kallsyms] DSO ▒
Browse map details ▒
Zoom into Processor Socket 0 ▒
Run scripts for samples of thread [sh] ▒
Run scripts for samples of symbol [filemap_map_pages] ▒
Run scripts for all samples ▒
Switch to another data file in PWD ▒
Exit
Browse map details ▒
Zoom into Processor Socket 0 ▒
Run scripts for samples of thread [sh] ▒
Run scripts for samples of symbol [filemap_map_pages] ▒
Run scripts for all samples ▒
Switch to another data file in PWD ▒
Exit

i then select the Annotate option, and i get an empty screen - while on x86, i correctly see the assembly of the queried function.

Same happens on Bionic/arm64.