iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

Fix unaligned memory accesses within the perf ring buffer #4819

Closed captain5050 closed 10 months ago

captain5050 commented 10 months ago

As with exitsnoop fixed in: https://github.com/iovisor/bcc/pull/4760/

Fix other instances of unaligned memory accesses by memcpy-ing the event structs.

yonghong-song commented 10 months ago

LGTM. Thanks!