Learning eBPF

Programming the Linux Kernel for Enhanced Observability, Networking, and Security

Paperback Engels 2023 1e druk 9781098135126
€ 64,98
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

What is eBPF? With this revolutionary technology, you can write custom code that dynamically changes the way the kernel behaves. It's an extraordinary platform for building a whole new generation of security, observability, and networking tools.

This practical book is ideal for developers, system administrators, operators, and students who are curious about eBPF and want to know how it works. Author Liz Rice, chief open source officer with cloud native networking and security specialists Isovalent, also provides a foundation for those who want to explore writing eBPF programs themselves.

With this book, you will:
- Learn why eBPF has become so important in the past couple of years
- Write basic eBPF code, and manipulate eBPF programs and attach them to events
- Explore how eBPF components interact with Linux to dynamically change the operating system's behavior
- Learn how tools based on eBPF can instrument applications without changes to the apps or their configuration
- Discover how this technology enables new tools for observability, security, and networking

Specificaties

ISBN13:9781098135126
Taal:Engels
Bindwijze:paperback
Aantal pagina's:150
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:21-3-2023
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Who This Book Is For
What This Book Covers
Prerequisite Knowledge
Example Code and Exercises
Is eBPF Only for Linux?
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. What Is eBPF, and Why Is It Important?
eBPF’s Roots: The Berkeley Packet Filter
From BPF to eBPF
The Evolution of eBPF to Production Systems
Naming Is Hard
The Linux Kernel
Adding New Functionality to the Kernel
Kernel Modules
Dynamic Loading of eBPF Programs
High Performance of eBPF Programs
eBPF in Cloud Native Environments
Summary

2. eBPF’s “Hello World”
BCC’s “Hello World”
Running “Hello World”
BPF Maps
Hash Table Map
Perf and Ring Buffer Maps
Function Calls
Tail Calls
Summary
Exercises

3. Anatomy of an eBPF Program
The eBPF Virtual Machine
eBPF Registers
eBPF Instructions
eBPF “Hello World” for a Network Interface
Compiling an eBPF Object File
Inspecting an eBPF Object File
Loading the Program into the Kernel
Inspecting the Loaded Program
The BPF Program Tag
The Translated Bytecode
The JIT-Compiled Machine Code
Attaching to an Event
Global Variables
Detaching the Program
Unloading the Program
BPF to BPF Calls
Summary
Exercises

4. The bpf() System Call
Loading BTF Data
Creating Maps
Loading a Program
Afgekapt op 60 regels

Managementboek Top 100

€ 64,98
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Learning eBPF