Skip to content
#

ebpf

Here are 249 public repositories matching this topic...

martinvonwittich
martinvonwittich commented Aug 25, 2021

Is your feature request related to a problem? Please describe.

I fiddled around with bpftrace to write internal documentation for my colleagues on how to use it. I chose tracepoint:syscalls:sys_enter_mkdir as a suitable tracepoint for a simple demo, and wrote this code:

bpftrace -e 'tracepoint:syscalls:sys_enter_mkdir { printf("mkdir %s %o\n", str(args->pathname), args->mode); }
p-e-w
p-e-w commented May 23, 2021

It appears that the RedBPF toolchain imposes currently undocumented restrictions on map value types that go beyond those expressed by the generic constraints:

  • All variants of an enum must have the same size in memory.
  • Struct fields are (mostly?) required to be aligned to multiples of 32 bits, though sometimes 64-bit alignment is required, and some structs don't work at all despite their fi

Improve this page

Add a description, image, and links to the ebpf topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ebpf topic, visit your repo's landing page and select "manage topics."

Learn more