Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • checkstack.pl
Find file BlameHistoryPermalink
  • Maninder Singh's avatar
    scripts/checkstack.pl: add arm push handling for stack usage · 3311eeeb
    Maninder Singh authored May 08, 2020
    
    
    To count stack usage of push {*, fp, ip, lr, pc} instruction in ARM,
    if FRAME POINTER is enabled.
    e.g. c01f0d48: e92ddff0 push {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
    
    c01f0d50 <Y>:
    c01f0d44:       e1a0c00d        mov     ip, sp
    c01f0d48:       e92ddff0        push    {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
    c01f0d4c:       e24cb004        sub     fp, ip, #4
    c01f0d50:       e24dd094        sub     sp, sp, #448    ; 0x1C0
    
    $ cat dump | scripts/checkstack.pl arm
    0xc01f0d50 Y []:                                        448
    
    added subroutine frame work for this.
    After change:
    0xc01f0d500 Y []:                                       492
    
    Co-developed-by: default avatarVaneet Narang <v.narang@samsung.com>
    Signed-off-by: default avatarVaneet Narang <v.narang@samsung.com>
    Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    3311eeeb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7