Skip to contentSkip to conversation

perf tools[ARM]:Not able to detect [kernel.kallsyms] dso on Qualcomm MSM 8974

DISCUSSION Prankul Garg 2 participants 2 messages Jun 3, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

Qualcomm MSM 8974 is not able to detect [kernel.kallsyms] dso either with Hardware or Tracepoint events while Exynos do.

Corresponding logs are as:

-----------------Qualcomm MSM 8974----------------------------------

./perf record -e cycles cal

# Overhead  Command  Shared Object                         Symbol
# ........  .......  .............  .............................

#

    75.02%      cal  [ks8851]       [k] 0x01114a5c               
     4.58%      cal  libc-2.13.so   [.] 0x000f9fa8               
     4.49%      cal  ld-2.13.so     [.] __udivsi3                
     4.49%      cal  ld-2.13.so     [.] do_lookup_x              
     2.94%      cal  ld-2.13.so     [.] _dl_relocate_object      
     1.50%      cal  ld-2.13.so     [.] _dl_protect_relro        
     1.50%      cal  ld-2.13.so     [.] check_match.8416         
     1.46%      cal  ld-2.13.so     [.] calloc                   
     1.39%      cal  ld-2.13.so     [.] _dl_add_to_namespace_list
     1.39%      cal  ld-2.13.so     [.] memset                   
     1.24%      cal  ld-2.13.so     [.] _dl_new_object     

./perf record -e kmem:kmalloc cal

# Overhead  Command  Shared Object          Symbol
# ........  .......  .............  ..............

#

100.00% cal [ks8851] [k] 0x01151dac

----------------Exynos------------------------------------

./perf record -e cycles cal
# Overhead Command Shared Object
Symbol

# ........  .......  ..........................  
...............................
#
     8.02%      cal  ld-2.13.so                  [.] 0x00001d40                 
     5.47%      cal  [kernel.kallsyms]           [k] cpu_v7_set_pte_ext         
     5.46%      cal  libc-2.13.so                [.] 0x000fbcc8                 
     5.44%      cal  [kernel.kallsyms]           [k] __memzero                  
     5.39%      cal  [kernel.kallsyms]           [k] strcmp                     
     5.29%      cal  [kernel.kallsyms]           [k] copy_page                  
     5.20%      cal  cal                         [.] 0x00000cb0                 
     4.87%      cal  [kernel.kallsyms]           [k] unmap_page_range           
     2.78%      cal  [kernel.kallsyms]           [k] __wake_up_bit              
     2.77%      cal  [kernel.kallsyms]           [k] hrtimer_run_pending        
     2.76%      cal  [kernel.kallsyms]           [k] 
mem_cgroup_uncharge_start  
     2.76%      cal  [kernel.kallsyms]           [k] submit_bio                 
     2.75%      cal  [kernel.kallsyms]           [k] n_tty_write                
     2.73%      cal  [kernel.kallsyms]           [k] strncpy                    
     2.68%      cal  [kernel.kallsyms]           [k] do_page_fault
	[...]     

./perf record -e kmem:kmalloc cal
# Overhead Command Shared Object Symbol

# ........  .......  .................  ..........................
#
    97.37%      cal  [kernel.kallsyms]  [k] kmem_cache_alloc_trace
     2.63%      cal  [kernel.kallsyms]  [k] __kmalloc             
#1 lore raw
Quoted 2 lines · Prankul Garg

Qualcomm MSM 8974 is not able to detect [kernel.kallsyms] dso either with Hardware or Tracepoint events while Exynos do.

Add -v to perf-record and perf-report.

And try:
perf report -D | grep kallsyms

Do you see something like:
0 0 0xd8 [0x58]: PERF_RECORD_MMAP -1/0: [0(0xffffffff9fffffff) @ 0xffffffff81000000]: x [kernel.kallsyms]_text

David