Skip to content
Snippets Groups Projects
  1. Jan 09, 2020
  2. Jan 08, 2020
    • Patrick Daly's avatar
      lrdp: iommulib: Find iommu domains via devices_kset · cc96ebf7
      Patrick Daly authored
      Add another method of finding iommu domains. This approach does not require
      any specific debug kconfig options to be enabled. However, it will not be
      able to locate non-active iommu domains.
      
      Change-Id: I84dfde76ae78ccc7cb9aa04eb7535773b9918d08
      cc96ebf7
    • Lingutla Chandrasekhar's avatar
      ldrp-v2: schedinfo: Fix online cpus mask check · b8271792
      Lingutla Chandrasekhar authored
      
      From 4.19 onwards, cpu topology contains only online cpus.
      So use possible sibling cpu mask to get cluster cpus.
      And,
       - for better readability, print cpu numbers instead of bitmask.
       - Verify root and sched domains for online cpus
      
      Change-Id: Ifebf82376a38a12717ebef5b8ef22458a6cace4d
      Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
      b8271792
    • Patrick Daly's avatar
      lrdp: iommulib: Refactor methods to find iommu domains · 5de3c5f0
      Patrick Daly authored
      There are several different methods to find all iommu domains.
      Reorganaize them into different functions.
      
      Stop treating iommu_debug_attachments as a pointer (since
      it is not a pointer but a struct list_head), by replacing:
      
          list_head_attachments = ramdump.read_pointer(
                                                 'iommu_debug_attachments')
          list_head_arm_addr = self.ramdump.read_structure_field(
              list_head_attachments, 'struct list_head', 'prev')
      
      with:
      
          list_head_attachments = ramdump.address_of(
                                                 'iommu_debug_attachments')
      
      Change-Id: I096ba602cf374229a0c2d1090899b91e04852885
      5de3c5f0
  3. Dec 18, 2019
  4. Dec 17, 2019
  5. Dec 06, 2019
  6. Dec 05, 2019
  7. Dec 03, 2019
  8. Nov 28, 2019
  9. Nov 26, 2019
  10. Nov 25, 2019
    • Shivendra Pratap's avatar
      Fix runqueue parser kernel greater than v5.2 · ea7243a2
      Shivendra Pratap authored
      
      From kernel v5.2 task_struct member cpus_allowed is changed
      to cpus_mask. Add a change to read cpus_mask in case kernel
      version is greater than 5.2.
      
      Change-Id: I82e1aa3e6a36d32659cb30554b70cfd06e4f0a2f
      Signed-off-by: default avatarShivendra Pratap <spratap@codeaurora.org>
      ea7243a2
    • Shivendra Pratap's avatar
      Fix kconfig/Tasks parsing for kernel > 5.x · 6833176e
      Shivendra Pratap authored
      
      1. Fix kconfig extraction for kernel > 5.0.0.
      2. Fix task call stack extraction for kernel > 5.2.0
      
      Change-Id: Ic0d450ee6197f6fc7010b50884dea4d4855d5c1a
      Signed-off-by: default avatarShivendra Pratap <spratap@codeaurora.org>
      6833176e
    • Shivendra Pratap's avatar
      lrdp_v2 : Fix VA translations for kernel versions > v4.20 · 10b7d1f5
      Shivendra Pratap authored
      
      Since kernel v5.0, there is a dedicated region of size 128MB
      kept aside for BPF programs(BPF_JIT_REGION) which were
      previously using module region. Also in v5.4, kernel VA space
      was flipped to accomodate support for kasan shadow and 52bit VA.
      Hence we are updating the VA space calculations in parser to make
      it work on newer kernel.
      
      Adding few changes on linux banner read and match for cleanup.
      
      There was an unmonitored variable ramdump.version being used in
      debug_image_v2 cauing version check failure. Adding a change to
      use kernel_version.
      Fix intend in debug_image_v2.
      
      Briefly, the calculations are updated as below:
      
      _PAGE_END(va)		= (-(UL(1) << ((va) - 1))) = 0xffffffc000000000
      KASAN_SHADOW_END	= (_PAGE_END(VA_BITS_MIN)) = 0xffffffc000000000
      BPF_JIT_REGION_START	= (KASAN_SHADOW_END)
      BPF_JIT_REGION_SIZE	= (SZ_128M)
      BPF_JIT_REGION_END	= (BPF_JIT_REGION_START + BPF_JIT_REGION_SIZE) = 0xffffffc000000000 + 0x8000000
      MODULES_VADDR		= (BPF_JIT_REGION_END)
      MODULES_END		= (MODULES_VADDR + MODULES_VSIZE) = 0xffffffc000000000 + 0x8000000 + 0x8000000 = 0xffffffc010000000
      KIMAGE_VADDR		= (MODULES_END) = 0xffffffc010000000
      
      Change-Id: I5a65b327e015970d68c41210fc813105fd6cb4b8
      Signed-off-by: default avatarSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
      Signed-off-by: default avatarShivendra Pratap <spratap@codeaurora.org>
      10b7d1f5
  11. Nov 20, 2019
  12. Nov 19, 2019
  13. Nov 01, 2019
  14. Oct 05, 2019
    • Patrick Daly's avatar
      lrdp: memusage: Print swap use in percent · 322eb191
      Patrick Daly authored
      For each task, display the total swap usage as a percent of total
      memory.
      
      Task name             PID          RSS in kB         SWAP in kB   ADJ
      procrank             4809      133,476(2.3%)            0(0.0%) -1000
      main                  707       50,736(0.9%)       17,552(0.3%) -1000
      
      Change-Id: I583cd219918e3c27a9447a39b6ba459f25c44566
      322eb191
    • Patrick Daly's avatar
      lrdp: memusage: Account for SHMEM in swap · 255696b1
      Patrick Daly authored
      When shmem is swapped out, it is no longer counted in
      enum node_stat_item NR_SHMEM.
      
      Change-Id: Ib52f847b195c71c054af59006b65a31335efc8e0
      255696b1
  15. Oct 04, 2019
    • Patrick Daly's avatar
      lrdp: Add pid information to slabinfo parser · fe9f5741
      Patrick Daly authored
      Display the most frequent process ids for a particular callstack.
      Example output:
      
      ALLOCATED Call stack index:1 frequency: 281
            [<ffffff9b480ef698>] __kmalloc+0x438
            [<ffffff9b47fbc5fc>] cgroup_mkdir+0x104
            [<ffffff9b481c84f0>] kernfs_iop_mkdir+0xd0
            [<ffffff9b4812db7c>] vfs_mkdir2+0xfc
            [<ffffff9b4812dce8>] do_mkdirat+0xa0
            [<ffffff9b4812ddbc>] __arm64_sys_mkdirat+0x24
            [<ffffff9b47e981d0>] el0_svc_common+0xa0
            [<ffffff9b47e98114>] el0_svc_handler+0x7c
            [<ffffff9b47e84688>] el0_svc+0x8
       pid:1 frequency:189
       pid:1987 frequency:2
       pid:2294 frequency:2
       pid:2210 frequency:2
       pid:2981 frequency:2
      
      Change-Id: I7ec0f16e599f8a2c83cea8449d1e71c3cda4eb8e
      fe9f5741
  16. Oct 02, 2019
  17. Oct 01, 2019
  18. Sep 25, 2019
  19. Sep 24, 2019
  20. Sep 15, 2019
  21. Sep 13, 2019
  22. Sep 07, 2019
  23. Sep 05, 2019
  24. Sep 04, 2019
Loading