Compare commits

...

3 Commits

Author SHA1 Message Date
e928dd898b add go.mod 2022-11-17 14:33:22 +01:00
51fc5ed28d fix loop variable usage 2022-11-17 14:33:09 +01:00
0b3920af52 fix url 2022-11-17 14:32:57 +01:00
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,3 @@
module kesim.org/ebpf-challenge/GetRuntimeAddresses
go 1.19

View File

@ -6,8 +6,8 @@ import (
"os" "os"
"time" "time"
"github.com/optimyze-interviews/OezguerKesim/GetRuntimeAddresses/ebpf" "kesim.org/ebpf-challenge/GetRuntimeAddresses/ebpf"
"github.com/optimyze-interviews/OezguerKesim/GetRuntimeAddresses/symbolyze" "kesim.org/ebpf-challenge/GetRuntimeAddresses/symbolyze"
) )
var ( var (

View File

@ -202,6 +202,7 @@ func (S *Scanner) Run() error {
wg.Add(len(S.observers)) // Wait for this many goroutines wg.Add(len(S.observers)) // Wait for this many goroutines
go func() { go func() {
for n, observer := range S.observers { for n, observer := range S.observers {
observer := observer
go func() { go func() {
err = observer(pid, offset) err = observer(pid, offset)
if err != nil { if err != nil {