Skip to content

Commit

Permalink
bpf: remove unused const PossibleCPUSysfsPath
Browse files Browse the repository at this point in the history
It's unused since switching to use cilium/ebpf functionality to get the
number of possible CPUs in commit 582da32 ("tetragon: Implement
bpf.GetNumPossibleCPUs through cilium/ebpf library").

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser authored and kkourt committed Oct 31, 2024
1 parent 983956e commit af44579
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/bpf/perf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import (
"golang.org/x/sys/unix"
)

const (
PossibleCPUSysfsPath = "/sys/devices/system/cpu/possible"
)

type PerfEventConfig struct {
NumCpus int
NumPages int
Expand Down

0 comments on commit af44579

Please sign in to comment.