Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: include bpf_helpers.h from common.h #614

Merged
merged 1 commit into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/cgroup_skb/cgroup_skb.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ignore

#include "bpf_helpers.h"
#include "common.h"

char __license[] SEC("license") = "Dual MIT/GPL";

Expand Down
Binary file modified examples/fentry/bpf_bpfeb.o
Binary file not shown.
Binary file modified examples/fentry/bpf_bpfel.o
Binary file not shown.
1 change: 0 additions & 1 deletion examples/fentry/fentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "common.h"

#include "bpf_endian.h"
#include "bpf_helpers.h"
#include "bpf_tracing.h"

#define AF_INET 2
Expand Down
1 change: 0 additions & 1 deletion examples/headers/bpf_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* in advance since bpf_helper_defs.h uses such types
* as __u64.
*/
#include "common.h"
#include "bpf_helper_defs.h"

#define __uint(name, val) int (*name)[val]
Expand Down
2 changes: 2 additions & 0 deletions examples/headers/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ typedef __u32 __be32;
typedef __u64 __be64;
typedef __u32 __wsum;

#include "bpf_helpers.h"

enum bpf_map_type {
BPF_MAP_TYPE_UNSPEC = 0,
BPF_MAP_TYPE_HASH = 1,
Expand Down
2 changes: 1 addition & 1 deletion examples/kprobe/kprobe.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ignore

#include "bpf_helpers.h"
#include "common.h"

char __license[] SEC("license") = "Dual MIT/GPL";

Expand Down
Binary file modified examples/kprobe_percpu/bpf_bpfeb.o
Binary file not shown.
Binary file modified examples/kprobe_percpu/bpf_bpfel.o
Binary file not shown.
2 changes: 0 additions & 2 deletions examples/kprobe_percpu/kprobe_percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "common.h"

#include "bpf_helpers.h"

char __license[] SEC("license") = "Dual MIT/GPL";

struct bpf_map_def SEC("maps") kprobe_map = {
Expand Down
2 changes: 1 addition & 1 deletion examples/kprobepin/kprobe_pin.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build ignore

#include "bpf_helpers.h"
#include "common.h"

char __license[] SEC("license") = "Dual MIT/GPL";

Expand Down
Binary file modified examples/ringbuffer/bpf_bpfeb.o
Binary file not shown.
Binary file modified examples/ringbuffer/bpf_bpfel.o
Binary file not shown.
2 changes: 0 additions & 2 deletions examples/ringbuffer/ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "common.h"

#include "bpf_helpers.h"

char __license[] SEC("license") = "Dual MIT/GPL";

struct event {
Expand Down
Binary file modified examples/tracepoint_in_c/bpf_bpfeb.o
Binary file not shown.
Binary file modified examples/tracepoint_in_c/bpf_bpfel.o
Binary file not shown.
2 changes: 0 additions & 2 deletions examples/tracepoint_in_c/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "common.h"

#include "bpf_helpers.h"

char __license[] SEC("license") = "Dual MIT/GPL";

struct bpf_map_def SEC("maps") counting_map = {
Expand Down
Binary file modified examples/uretprobe/bpf_bpfel_x86.o
Binary file not shown.
1 change: 0 additions & 1 deletion examples/uretprobe/uretprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "common.h"

#include "bpf_helpers.h"
#include "bpf_tracing.h"

char __license[] SEC("license") = "Dual MIT/GPL";
Expand Down