Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Embedded Linux Programming

You're reading from   Mastering Embedded Linux Programming Create fast and reliable embedded solutions with Linux 5.4 and the Yocto Project 3.1 (Dunfell)

Arrow left icon
Product type Paperback
Published in May 2021
Publisher Packt
ISBN-13 9781789530384
Length 758 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Frank Vasquez Frank Vasquez
Author Profile Icon Frank Vasquez
Frank Vasquez
Mr. Chris Simmonds Mr. Chris Simmonds
Author Profile Icon Mr. Chris Simmonds
Mr. Chris Simmonds
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Section 1: Elements of Embedded Linux
2. Chapter 1: Starting Out FREE CHAPTER 3. Chapter 2: Learning about Toolchains 4. Chapter 3: All about Bootloaders 5. Chapter 4: Configuring and Building the Kernel 6. Chapter 5: Building a Root Filesystem 7. Chapter 6: Selecting a Build System 8. Chapter 7: Developing with Yocto 9. Chapter 8: Yocto Under the Hood 10. Section 2: System Architecture and Design Decisions
11. Chapter 9: Creating a Storage Strategy 12. Chapter 10: Updating Software in the Field 13. Chapter 11: Interfacing with Device Drivers 14. Chapter 12: Prototyping with Breakout Boards 15. Chapter 13: Starting Up – The init Program 16. Chapter 14: Starting with BusyBox runit 17. Chapter 15: Managing Power 18. Section 3: Writing Embedded Applications
19. Chapter 16: Packaging Python 20. Chapter 17: Learning about Processes and Threads 21. Chapter 18: Managing Memory 22. Section 4: Debugging and Optimizing Performance
23. Chapter 19: Debugging with GDB 24. Chapter 20: Profiling and Tracing 25. Chapter 21: Real-Time Programming 26. Other Books You May Enjoy

The process memory map

Each running process in user space has a process map that we can inspect. These memory maps tell us how a program's memory is allocated and what shared libraries it is linked to.

You can see the memory map for a process through the proc filesystem. As an example, here is the map for the init process, PID 1:

# cat /proc/1/maps
00008000-0000e000 r-xp 00000000 00:0b 23281745 /sbin/init
00016000-00017000 rwxp 00006000 00:0b 23281745 /sbin/init
00017000-00038000 rwxp 00000000 00:00 0        [heap]
b6ded000-b6f1d000 r-xp 00000000 00:0b 23281695 /lib/libc-2.19.so
b6f1d000-b6f24000 ---p 00130000 00:0b 23281695 /lib/libc-2.19.so
b6f24000-b6f26000 r-xp 0012f000 00:0b 23281695 /lib/libc-2.19.so
b6f26000-b6f27000 rwxp 00131000 00:0b 23281695 /lib/libc-2.19.so
b6f27000-b6f2a000 rwxp 00000000 00:00 0
b6f2a000-b6f49000 r-xp 00000000 00:0b 23281359 /lib/ld-2.19.so
b6f4c000-b6f4e000 rwxp 00000000 00:00 0
b6f4f000-b6f50000 r...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime