Skip to content

Commit

Permalink
fix(ebpf): 32bit syscall numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Nov 22, 2023
1 parent 33622a1 commit 0dbc8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ebpf/tracee.go
Expand Up @@ -1031,9 +1031,9 @@ func (t *Tracee) populateBPFMaps() error {
if err != nil {
return errfmt.WrapError(err)
}
for eventDefID, eventDefinition := range events.Core.GetDefinitions() {
for _, eventDefinition := range events.Core.GetDefinitions() {
id32BitU32 := uint32(eventDefinition.GetID32Bit()) // ID32Bit is int32
idU32 := uint32(eventDefID) // ID is int32
idU32 := uint32(eventDefinition.GetID()) // ID is int32
err := sys32to64BPFMap.Update(unsafe.Pointer(&id32BitU32), unsafe.Pointer(&idU32))
if err != nil {
return errfmt.WrapError(err)
Expand Down

0 comments on commit 0dbc8e4

Please sign in to comment.