Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* : Fix #39 .rodata: map create: read- and write-only maps not supported (requires >= v5.2) #40

Merged
merged 4 commits into from
Apr 21, 2022

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented Apr 20, 2022

1,global variable declaration will compile to .rodata/.bss section in ELF file.
2, haveMapMutabilityModifiers variable will create ARRAY type ebpf map with BPF_F_RDONLY_PROG flag to detect system supported in syscalls.go .
3. so need to remove global variable on kernel version less than 5.2 via haveMapMutabilityModifiers in cilium/ebpf/syscalls.go
4. more info cilium/ebpf@f5942f5

Signed-off-by: CFC4N cfc4n.cs@gmail.com

…ted (requires >= v5.2)

1,global variable declaration will compile to .rodata/.bss section in ELF file.
2, haveMapMutabilityModifiers function will create ARRAY type ebpf map with BPF_F_RDONLY_PROG flag to detect system support in syscalls.go .
3. so need to remove global variable on kernel version less than 5.2 via haveMapMutabilityModifiers in cilium/ebpf/syscalls.go
4. more info cilium/ebpf@f5942f5

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n merged commit 347a0cd into master Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.rodata: map create: read- and write-only maps not supported (requires >= v5.2)
1 participant