diff options
author | Alexander Lobakin <aleksander.lobakin@intel.com> | 2024-06-20 15:53:36 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2024-07-10 10:29:53 -0700 |
commit | 62c884256ea1f898b00f20729a306a4eeb1840b1 (patch) | |
tree | 69044ada726fdf209c9d4017a21c3d41062df779 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 39daa09d34ada1bc7227d68def63e0a2105b5496 (diff) |
libeth: add cacheline / struct layout assertion helpers
Add helpers to assert struct field layout, a bit more crazy and
networking-specific than in <linux/cache.h>. They assume you have
3 CL-aligned groups (read-mostly, read-write, cold) in a struct
you want to assert, and nothing besides them.
For 64-bit with 64-byte cachelines, the assertions are as strict
as possible, as the size can then be easily predicted.
For the rest, make sure they don't cross the specified bound.
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions