Re:eBPF – Adding functionality to OS at runtime to achieve p...
by IceWreck on Sunday November 06, 2022 @12:18PM
(#33494839)
What is the advantage of eBPF hooks over the ptrace system call ? Can't I do most of the same stuff with it ?
[ Parent
| on HN ]
Re:eBPF – Adding functionality to OS at runtime to achieve p...
by carom on Sunday November 06, 2022 @02:07PM
(#33495925)
Safety. Kernel level targeting rather than process.
Re:eBPF – Adding functionality to OS at runtime to achieve p...
by Matthias247 on Sunday November 06, 2022 @05:19PM
(#33498057)
Tracing is just one area where eBPF can be used. However there are lot of other applications.
E.g. you can do a lot of low level networking (forward packets to another host before they go into the kernel for building a router or load balancer, drop packets for a firewall) using the XDP eBPF hooks. You can have some on-host TCP policies - e.g. which thread handles a new incoming connection - expressed as eBPF hooks. And there's more.
Re:eBPF – Adding functionality to OS at runtime to achieve p...
by alexgartrell on Sunday November 06, 2022 @06:38PM
(#33498878)
eBPF is also a lot more efficient than ptrace