Skip to content
Snippets Groups Projects
  1. Nov 26, 2019
  2. 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
      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
  3. Nov 20, 2019
  4. Nov 19, 2019
  5. Nov 01, 2019
  6. 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
  7. 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
  8. Oct 02, 2019
  9. Oct 01, 2019
  10. Sep 25, 2019
  11. Sep 24, 2019
  12. Sep 15, 2019
  13. Sep 13, 2019
  14. Sep 07, 2019
  15. Sep 05, 2019
  16. Sep 04, 2019
  17. Sep 03, 2019
  18. Sep 01, 2019
  19. Aug 30, 2019
  20. Aug 26, 2019
  21. Aug 22, 2019
  22. Aug 21, 2019
    • wadesong's avatar
      lrdp-v2: Change the cmd used to enable MMU · 9c6c65fb
      wadesong authored
      With some newer versions of Trace32, cmd PER.S.F cannot be used
      to setup the MMU related registers.
      
      Use PER.S.simple instead when enabling MMU support on 32-bit
      ARM platforms.
      
      Change-Id: I692ce4a2edaf1ff575e1df247ae51ab332d74166
      9c6c65fb
  23. Aug 19, 2019
    • wadesong's avatar
      lrdp-v2: Fix a corner case for kernel module symbol parsing · 74e69847
      wadesong authored
      When parsing kernel module symbols retrieved from kallsyms
      nodes, lrdp-v2 will unconditionally add address 0x0 when seeing
      it, which causes task stack unwinding showing a particular
      module's name for address 0x0.
      
      Add symbol address checking when parsing info retrieved from
      module specific kallsyms nodes, to avoid adding address 0x0 as
      undefined symbol for a particular module.
      
      Change-Id: I36cc8e6a3ffa3b76bf24fd881f26845983059472
      74e69847
  24. Aug 09, 2019
  25. Aug 08, 2019
  26. Aug 06, 2019
  27. Aug 01, 2019
  28. Jul 25, 2019
  29. Jul 22, 2019
    • wadesong's avatar
      lrdp-v2: Add support for symbol retrieving from kallsyms · e3c3f38c
      wadesong authored
      Add code to retrieve module specific symbol info from per-module
      kallsyms nodes when CONFIG_KALLSYMS is defined. Symbols retrieved
      from kallsyms nodes will be more accurate because relocation
      has already been done when the per-module kallsyms nodes are
      formed.
      
      Add the following options to control how the symbol info will
      be recorded in lrdp-v2 output files:
      
      --dump_mod_sym_tbl: dump per-module symbol info retrieved from
                          module specific symbol files.
      --dump_krnl_sym_tbl: dump Linux kernel symbol info retrieved
                           from the kernel symbol file.
      --dump_mod_kallsyms: dump per-module symbol info retrieved from
                           per-module kallsyms node.
      --dump_glb_sym_tbl: dump everything in the global symbol lookup
                          table.
      
      Change-Id: Ic137eaf64a5e1f7203946d323efcd7527e3f1968
      e3c3f38c
Loading