DORSETRIGS
Home

ebpf (25 post)


posts by category not found!

Testing XDP vs DPDK

XDP vs DPDK Which Networking Performance Booster is Right for You High performance networking is crucial for modern applications Two popular technologies XDP e

2 min read 06-10-2024 52
Testing XDP vs DPDK
Testing XDP vs DPDK

Different byte order in BPF program

Endianness Headaches Understanding Byte Order in BPF Programs The world of programming is full of subtle details that can lead to frustrating bugs if overlooked

2 min read 05-10-2024 37
Different byte order in BPF program
Different byte order in BPF program

Can an eBPF/XDP thread be preempted?

Can an e BPF XDP Thread Be Preempted In modern Linux networking e BPF extended Berkeley Packet Filter and XDP Express Data Path have emerged as powerful tools f

3 min read 29-09-2024 53
Can an eBPF/XDP thread be preempted?
Can an eBPF/XDP thread be preempted?

Loading large BPF program fails with "Argument list too long" and "processed 0 insns"

Understanding BPF Program Loading Failures Argument List Too Long and Processed 0 Insns When working with e BPF Extended Berkeley Packet Filter programs you mig

3 min read 28-09-2024 46
Loading large BPF program fails with "Argument list too long" and "processed 0 insns"
Loading large BPF program fails with "Argument list too long" and "processed 0 insns"

Forward declaration of structure in C in bpf program

Forward Declaration of Structures in C for BPF Programs In C programming especially when dealing with complex structures in different files or modules a forward

2 min read 25-09-2024 56
Forward declaration of structure in C in bpf program
Forward declaration of structure in C in bpf program

bpf_prog_test_run_opts error 524 when running an XDP program

Understanding the bpf prog test run opts Error 524 When Running an XDP Program When working with e BPF Extended Berkeley Packet Filter and XDP Express Data Path

3 min read 21-09-2024 53
bpf_prog_test_run_opts error 524 when running an XDP program
bpf_prog_test_run_opts error 524 when running an XDP program

When bprm->file is fetched using ebpf-lsm, the different bprm's fetched point to the same strange file pointer

Understanding the Issue with bprm file Fetched Using e BPF LSM When working with e BPF Extended Berkeley Packet Filter and LSM Linux Security Modules a common p

2 min read 20-09-2024 46
When bprm->file is fetched using ebpf-lsm, the different bprm's fetched point to the same strange file pointer
When bprm->file is fetched using ebpf-lsm, the different bprm's fetched point to the same strange file pointer

KLEE_RUN_TEST_ERROR: object name mismatch. Requesting "output_port" but returning "user_buf"

Understanding KLEE RUN TEST ERROR Object Name Mismatch When working with KLEE a powerful symbolic execution engine for C programs developers may encounter an er

2 min read 20-09-2024 65
KLEE_RUN_TEST_ERROR: object name mismatch. Requesting "output_port" but returning "user_buf"
KLEE_RUN_TEST_ERROR: object name mismatch. Requesting "output_port" but returning "user_buf"

How to bpf_prog_test_run_opts to a program that extends xdp_dispatcher

How to Use bpf prog test run opts in an XDP Dispatcher Program In the realm of high performance networking the e BPF Extended Berkeley Packet Filter technology

3 min read 17-09-2024 65
How to bpf_prog_test_run_opts to a program that extends xdp_dispatcher
How to bpf_prog_test_run_opts to a program that extends xdp_dispatcher

Finding the real origin of block I/O (submit_bio) using eBPF

Finding the Real Origin of Block I O submit bio Using e BPF Introduction In the world of Linux kernel development and system performance tuning understanding th

3 min read 16-09-2024 54
Finding the real origin of block I/O (submit_bio) using eBPF
Finding the real origin of block I/O (submit_bio) using eBPF

TC eBPF: packets disappear after manipulating destination IP

Understanding the TC e BPF Why Packets Disappear After Manipulating the Destination IP Introduction In the world of networking the Transparent Control TC with e

3 min read 16-09-2024 46
TC eBPF: packets disappear after manipulating destination IP
TC eBPF: packets disappear after manipulating destination IP

Why is the eBPF compiler behaving differently when not using bpf_map_update_element()

Understanding e BPF Compiler Behavior The Role of bpf map update element In the world of Linux kernel programming the extended Berkeley Packet Filter e BPF tech

3 min read 14-09-2024 67
Why is the eBPF compiler behaving differently when not using bpf_map_update_element()
Why is the eBPF compiler behaving differently when not using bpf_map_update_element()

eBPF map type array for storing the timestamps of packets

Storing Packet Timestamps with e BPF A Deep Dive into Per CPU Arrays e BPF programs are increasingly used for network monitoring and analysis One common task is

3 min read 03-09-2024 63
eBPF map type array for storing the timestamps of packets
eBPF map type array for storing the timestamps of packets

how to use kernel macro funcions in bpftrace?

Understanding Kernel Macro Functions in bpftrace A Deep Dive into Using ip hdr Introduction bpftrace is a powerful tracing tool for Linux that leverages the ext

2 min read 03-09-2024 56
how to use kernel macro funcions in bpftrace?
how to use kernel macro funcions in bpftrace?

What is the performance impact added to eBPF via kprobe and uprobe

The Performance Impact of e BPF via kprobes and uprobes Extended Berkeley Packet Filter e BPF has emerged as a powerful tool in the Linux kernel allowing for ef

3 min read 02-09-2024 60
What is the performance impact added to eBPF via kprobe and uprobe
What is the performance impact added to eBPF via kprobe and uprobe

Directing Packets further in the Network Stack from UMEM

Understanding Packet Drops in AF XDP UMEM A Guide to Efficient Packet Handling This article explores the common issue of packet drops when using the User Memory

2 min read 01-09-2024 54
Directing Packets further in the Network Stack from UMEM
Directing Packets further in the Network Stack from UMEM

BCC lib PT_REGS_PARM1 return value is not "this" pointer when uprobing C++ class function

Understanding the this Pointer and Parameter Order in C with BCC This article will explore a common issue encountered when using BCC BPF Compiler Collection to

2 min read 30-08-2024 48
BCC lib PT_REGS_PARM1 return value is not "this" pointer when uprobing C++ class function
BCC lib PT_REGS_PARM1 return value is not "this" pointer when uprobing C++ class function

Why does the verifier detect an infinite loop in this code?

Unveiling the Infinite Loop A Deep Dive into BPF Program Verification This article explores a common issue faced by BPF Berkeley Packet Filter program developer

2 min read 30-08-2024 58
Why does the verifier detect an infinite loop in this code?
Why does the verifier detect an infinite loop in this code?

How does mmap'ed eBPF map shared between processes synchronizes operations?

Demystifying Shared e BPF Map Synchronization A Deep Dive into mmap ed Array Maps e BPF Extended Berkeley Packet Filter has become a powerful tool for user spac

2 min read 29-08-2024 64
How does mmap'ed eBPF map shared between processes synchronizes operations?
How does mmap'ed eBPF map shared between processes synchronizes operations?

How eBPF stack works

Demystifying the e BPF Stack A Deep Dive into Function Calls and Stack Size Limitations e BPF Extended Berkeley Packet Filter is a powerful technology for exten

3 min read 29-08-2024 54
How eBPF stack works
How eBPF stack works

eBPF: The sequence of 8193 jumps is too complex

e BPF Decoding the The sequence of 8193 jumps is too complex Error You re encountering a common issue with e BPF programs that involve loops the verifiers compl

2 min read 29-08-2024 77
eBPF: The sequence of 8193 jumps is too complex
eBPF: The sequence of 8193 jumps is too complex

ebpf how to check the syscalls available

Unmasking the System Calls A Guide to Finding Available Syscalls for e BPF e BPF Extended Berkeley Packet Filter is a powerful technology for writing programs t

4 min read 29-08-2024 45
ebpf how to check the syscalls available
ebpf how to check the syscalls available

eBPF Program Hooked to sys_read Traces Negative File Descriptor Values

Understanding Negative File Descriptor Values in e BPF Programs This article dives into a common issue encountered when tracing the sys read system call using e

2 min read 28-08-2024 65
eBPF Program Hooked to sys_read Traces Negative File Descriptor Values
eBPF Program Hooked to sys_read Traces Negative File Descriptor Values

libbpf: Error loading .BTF into kernel: -22. Error: failed to open object file, vlen != 0

libbpf Error loading BTF into kernel 22 Error failed to open object file vlen 0 A Debugging Guide This error often surfaces when loading BPF programs into the L

2 min read 28-08-2024 39
libbpf: Error loading .BTF into kernel: -22. Error: failed to open object file, vlen != 0
libbpf: Error loading .BTF into kernel: -22. Error: failed to open object file, vlen != 0

How to refuse/reject a tcp connection in eBPF?

How to Refuse Reject a TCP Connection in e BPF This article explores how to refuse or reject a TCP connection using e BPF focusing on limiting the number of con

2 min read 28-08-2024 52
How to refuse/reject a tcp connection in eBPF?
How to refuse/reject a tcp connection in eBPF?