
DS-5 Workshop: Linux Kernel and Application Debug, Trace and Profile on Snowball Copyright 2010-2013 ARM Ltd. All rights reserved. This workshop demonstrates the features of the DS-5 Debugger by debugging and tracing U-Boot, the Linux kernel and a game called Gnometris that is an ARM Linux application running on the target. It also demonstrates the ARM Streamline profiler using an application called Xaos. It will introduce the views of DS-5 Debugger and ARM Streamline and demonstrate their features. Some of the features are used in explicit instructions that you are expected to follow and are marked with this symbol . Other features are only mentioned and are not critical to the flow of the workshop. You don't have to use them, but you are generally encouraged to try them out anyway. We will use a Snowball board as the target, but DS-5 can also be used with any ARM Linux target that has networking or the Real Time System Models that come with DS-5. The Gnometris and Xaos applications that we will be using are supplied as examples with DS-5. (version 31 January 2013; v5.13 d1622; HW; HWCortex-A9; DSTREAM; DSTREAMLinaro; DSTREAMSnowball; Snowball) Contents DS-5 Workshop: Linux Kernel and Application Debug, Trace and Profile on Snowball ................................................... 1 Preparation ..................................................................................................................................................................................... 2 Host Setup ................................................................................................................................................................................. 2 Target Setup .............................................................................................................................................................................. 2 Starting Eclipse .......................................................................................................................................................................... 2 Installing a DS-5 License ........................................................................................................................................................... 2 Bare-metal Debug and Trace (U-Boot) ........................................................................................................................................... 4 Setting up your own target: Download, build and setup U-Boot ................................................................................................. 4 Connect the hardware................................................................................................................................................................ 4 Debugging U-Boot on the target ................................................................................................................................................ 5 Quick tour of the debugger ...................................................................................................................................................... 10 Trace view ............................................................................................................................................................................... 12 Registers view ......................................................................................................................................................................... 15 Watchpoints ............................................................................................................................................................................. 15 Functions view ......................................................................................................................................................................... 16 Kernel and module debug ............................................................................................................................................................. 20 Setting up your own target: Download the Linux kernel symbols and sources ........................................................................ 20 Debugging the kernel before the MMU is on ............................................................................................................................ 20 Debugging the kernel initialisation after the MMU is on ........................................................................................................... 22 Peripheral Registers ................................................................................................................................................................ 28 Application debug ......................................................................................................................................................................... 33 Starting the X server on the Host ............................................................................................................................................. 33 Importing Gnometris ................................................................................................................................................................ 34 Connecting to the Target ......................................................................................................................................................... 34 Debugging Gnometris on the Target ........................................................................................................................................ 36 Detailed Debugging ................................................................................................................................................................. 40 Functions view ......................................................................................................................................................................... 40 Breakpoints .............................................................................................................................................................................. 41 Source and Disassembly views ............................................................................................................................................... 43 Variables view .......................................................................................................................................................................... 44 Stepping ................................................................................................................................................................................... 48 Registers view ......................................................................................................................................................................... 49 Debug Control view ................................................................................................................................................................. 50 Call Stack ................................................................................................................................................................................. 50 Play the game .......................................................................................................................................................................... 51 Gaming the game .................................................................................................................................................................... 52 Expressions view ..................................................................................................................................................................... 52 Expression Inspector view ....................................................................................................................................................... 53 Memory view ............................................................................................................................................................................ 53 Commands and History views ................................................................................................................................................. 56 Scripts view .............................................................................................................................................................................. 57 Breakpoint scripts .................................................................................................................................................................... 57 Show off your skills .................................................................................................................................................................. 58 Advanced Breakpoints ............................................................................................................................................................. 58 More features in Source and Disassembly views .................................................................................................................... 58 Shared Libraries and Modules view ......................................................................................................................................... 60 Change of topic ...........................................................................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages101 Page
-
File Size-