Skip to content

Commit 8283c3a

Browse files
committed
ebpf: align fault_val to 8 bytes both sides (BTF warning fix)
1 parent c5a37e8 commit 8283c3a

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎packaging/arch/PKGBUILD‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ provides=('memflux')
1515
conflicts=('memflux-git')
1616
backup=('etc/memflux.conf')
1717
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18-
sha256sums=('cc23c26143e62f24913ec0853ed1fee2e80abbcc7e0abe7075c80b4d3b67e7cd')
18+
# NOTE: GitHub release tarballs embed mtimes and are not byte-reproducible;
19+
# update this checksum on each version bump (makepkg prints the mismatch).
20+
sha256sums=('6938b43616ec5e451d2544c31493def3b7df0e6e4f9c6b587bbf85f859f30d92')
1921
install=memflux.install
2022

2123
prepare() {

‎src/kern/ebpf.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void unload(){
6666
bool loaded(){ return g.obj != nullptr; }
6767

6868
struct fault_key { __u32 pid; };
69-
struct fault_val { __u64 minor; __u32 pad; };
69+
struct fault_val { __u64 minor; };
7070

7171
std::map<pid_t, uint64_t> drain_faults(){
7272
std::map<pid_t, uint64_t> out;

‎src/kern/ebpf_access.bpf.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ struct fault_key { __u32 pid; };
1313

1414
struct fault_val {
1515
__u64 minor; // minor faults (page Fault sur address)
16-
__u32 pad;
1716
};
1817

1918
struct {

0 commit comments

Comments
 (0)