Skip to content

Commit a77e0ce

Browse files
committed
examples: remove unnecessary -type flags to bpf2go invocations
These have been unnecessary since perf/ringbuf value types started being generated by bpf2go in 60405bb. Signed-off-by: Timo Beckers <[email protected]>
1 parent ae10986 commit a77e0ce

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/fentry/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/cilium/ebpf/rlimit"
3030
)
3131

32-
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -type event bpf fentry.c -- -I../headers
32+
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux bpf fentry.c -- -I../headers
3333

3434
func main() {
3535
stopper := make(chan os.Signal, 1)

examples/ringbuffer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/cilium/ebpf/rlimit"
1919
)
2020

21-
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -type event bpf ringbuffer.c -- -I../headers
21+
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux bpf ringbuffer.c -- -I../headers
2222

2323
func main() {
2424
// Name of the kernel function to trace.

examples/tcprtt/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/cilium/ebpf/rlimit"
3131
)
3232

33-
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -type event bpf tcprtt.c -- -I../headers
33+
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux bpf tcprtt.c -- -I../headers
3434

3535
func main() {
3636
stopper := make(chan os.Signal, 1)

examples/tcprtt_sockops/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"golang.org/x/sys/unix"
4040
)
4141

42-
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -tags "linux" -type rtt_event bpf tcprtt_sockops.c -- -I../headers
42+
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -tags "linux" bpf tcprtt_sockops.c -- -I../headers
4343

4444
func main() {
4545
stopper := make(chan os.Signal, 1)

examples/uretprobe/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/cilium/ebpf/rlimit"
2323
)
2424

25-
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -target amd64 -type event bpf uretprobe.c -- -I../headers
25+
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -tags linux -target amd64 bpf uretprobe.c -- -I../headers
2626

2727
const (
2828
// The path to the ELF binary containing the function to trace.

0 commit comments

Comments
 (0)