Skip to content

Commit

Permalink
fixup: handle kallsyms
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Oct 25, 2024
1 parent 7313c33 commit 93960e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tracer/ebpf_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (

"go.opentelemetry.io/ebpf-profiler/host"
"go.opentelemetry.io/ebpf-profiler/libpf"
"go.opentelemetry.io/ebpf-profiler/proc"
"go.opentelemetry.io/ebpf-profiler/reporter"
"go.opentelemetry.io/ebpf-profiler/rlimit"
"go.opentelemetry.io/ebpf-profiler/support"
Expand Down Expand Up @@ -250,6 +251,10 @@ func TestAllTracers(t *testing.T) {
coll, err := support.LoadCollectionSpec(false)
require.NoError(t, err)

_, _, err = initializeMapsAndPrograms(coll, tracertypes.AllTracers(), nil, false, 1, false, 0)
kernelSymbols, err := proc.GetKallsyms("/proc/kallsyms")
require.NoError(t, err)

_, _, err = initializeMapsAndPrograms(coll, tracertypes.AllTracers(), kernelSymbols,
false, 1, false, 0)
require.NoError(t, err)
}

0 comments on commit 93960e5

Please sign in to comment.