Skip to content

Commit

Permalink
examples: update cilium/ebpf dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lmb committed Apr 25, 2022
1 parent bfdd945 commit 5627021
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/go.mod
Expand Up @@ -3,6 +3,6 @@ module github.com/cilium/ebpf/examples
go 1.17

require (
github.com/cilium/ebpf v0.8.2-0.20220217141816-62da0a730ab7
github.com/cilium/ebpf v0.8.2-0.20220424153111-6da9518107a8
golang.org/x/sys v0.0.0-20211001092434-39dca1131b70
)
4 changes: 2 additions & 2 deletions examples/go.sum
@@ -1,5 +1,5 @@
github.com/cilium/ebpf v0.8.2-0.20220217141816-62da0a730ab7 h1:E9LSbo1EEbVIJ9w49myVxWmneomxCc2L7orPVXt0HeY=
github.com/cilium/ebpf v0.8.2-0.20220217141816-62da0a730ab7/go.mod h1:f5zLIM0FSNuAkSyLAN7X+Hy6yznlF1mNiWUMfxMtrgk=
github.com/cilium/ebpf v0.8.2-0.20220424153111-6da9518107a8 h1:Dk2SRTjvldJoQS7IuBvVfNswxCdKQNftVxkGYyXi3Cg=
github.com/cilium/ebpf v0.8.2-0.20220424153111-6da9518107a8/go.mod h1:f5zLIM0FSNuAkSyLAN7X+Hy6yznlF1mNiWUMfxMtrgk=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/frankban/quicktest v1.14.0 h1:+cqqvzZV87b4adx/5ayVOaYZ2CrvM4ejQvUdBzPPUss=
github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og=
Expand Down
2 changes: 1 addition & 1 deletion examples/kprobe/main.go
Expand Up @@ -41,7 +41,7 @@ func main() {
// pre-compiled program. Each time the kernel function enters, the program
// will increment the execution counter by 1. The read loop below polls this
// map value once per second.
kp, err := link.Kprobe(fn, objs.KprobeExecve)
kp, err := link.Kprobe(fn, objs.KprobeExecve, nil)
if err != nil {
log.Fatalf("opening kprobe: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/kprobe_percpu/main.go
Expand Up @@ -41,7 +41,7 @@ func main() {
// pre-compiled program. Each time the kernel function enters, the program
// will increment the execution counter by 1. The read loop below polls this
// map value once per second.
kp, err := link.Kprobe(fn, objs.KprobeExecve)
kp, err := link.Kprobe(fn, objs.KprobeExecve, nil)
if err != nil {
log.Fatalf("opening kprobe: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/kprobepin/main.go
Expand Up @@ -59,7 +59,7 @@ func main() {
// pre-compiled program. Each time the kernel function enters, the program
// will increment the execution counter by 1. The read loop below polls this
// map value once per second.
kp, err := link.Kprobe(fn, objs.KprobeExecve)
kp, err := link.Kprobe(fn, objs.KprobeExecve, nil)
if err != nil {
log.Fatalf("opening kprobe: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/ringbuffer/main.go
Expand Up @@ -44,7 +44,7 @@ func main() {
// Open a Kprobe at the entry point of the kernel function and attach the
// pre-compiled program. Each time the kernel function enters, the program
// will emit an event containing pid and command of the execved task.
kp, err := link.Kprobe(fn, objs.KprobeExecve)
kp, err := link.Kprobe(fn, objs.KprobeExecve, nil)
if err != nil {
log.Fatalf("opening kprobe: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tracepoint_in_c/main.go
Expand Up @@ -39,7 +39,7 @@ func main() {
// second.
// The first two arguments are taken from the following pathname:
// /sys/kernel/debug/tracing/events/kmem/mm_page_alloc
kp, err := link.Tracepoint("kmem", "mm_page_alloc", objs.MmPageAlloc)
kp, err := link.Tracepoint("kmem", "mm_page_alloc", objs.MmPageAlloc, nil)
if err != nil {
log.Fatalf("opening tracepoint: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tracepoint_in_go/main.go
Expand Up @@ -99,7 +99,7 @@ func main() {
// Each time a userspace program uses the 'openat()' syscall, the eBPF
// program specified above will be executed and a '123' value will appear
// in the perf ring.
tp, err := link.Tracepoint("syscalls", "sys_enter_openat", prog)
tp, err := link.Tracepoint("syscalls", "sys_enter_openat", prog, nil)
if err != nil {
log.Fatalf("opening tracepoint: %s", err)
}
Expand Down

0 comments on commit 5627021

Please sign in to comment.