Skip to content

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

Merged
cfc4n merged 4 commits into
masterfrom
rodata-map-not-supported
Apr 21, 2022
Merged

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

Conversation

@cfc4n
Copy link
Copy Markdown
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 added 3 commits April 21, 2022 19:06
…fault.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
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