Add container_of function
Author: GuppleCreated Jun 12, 2026Updated Jun 12, 2026
Currently, bpftrace doesn't support `container_of`, which is pretty crucial for extracting the containing structure from a field member. It would be nice to offer this out of the box so that this doesn't have to get re-implemented for every script.
Source: bpftrace/bpftrace