의 명령을 수행하는 것도 이벤트이고, 네트워크 패킷 하나를 받는 것도 이벤트이다. 이 책의 주
제인
BPF
(
Berkeley
Packet
Filter
; 버클리 패킷 필터)는 그러한 새로운 종류의 정보를 조사
하는 능력을 제공하는 커널의 한 하위 시스템(
subsystem
)이다.
BPF
를 이용하면 커널이 임
의의 이벤트를 발생했을 때 안전하게 실행되는 프로그램을 작성할 수 있다. 또한
BPF
는 잘못
된
BPF
프로그램 때문에 시스템이 폭주(
crashing
)하거나 오작동하는 일을 방지하는 안전 보
장 장치도 갖추고 있다.
BPF
덕분에, 컨테이너 기반의 새로운 플랫폼들을 시스템 개발자가 관
찰하고 운영하는 데 도움이 되는 새로운 종류의 도구들을 만들 수 있게 되었다.
이 책은 임의의 컴퓨팅 시스템의 관측 가능성을 높이는 데 도움이 되는
BPF
의 여러 강력한
기능을 제시한다. 또한 다양한 프로그래밍 언어로
BPF
프로그램을 작성하는 방법도 설명한다.
독자의 편의를 위해 이 책의 예제 코드를 모두 이 책을 위한 깃허브
GitHub
저장소(
https
://
oreil
.
ly
/
lbpf
-
repo
)에 올려두었으니 적극 활용하기 바란다.
BPF
의 기술적인 측면으로 들어가기 전에, 이 모든 일이 어떻게 일어났는지부터 살펴보자.
1.1
BPF
의 역사
1992
년에 스티븐 매캔
Steven
McCanne
과 밴 제이컵슨
Van
Jacobson
이 「
The
BSD
Packet
Filter
:
A
New
Architecture
for
User
-
Level ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.