Skip to content

Commit

Permalink
Delete existing kbuild_modname definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
willfindlay authored and yonghong-song committed Jun 18, 2020
1 parent 68abb51 commit 1c843e2
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion examples/networking/xdp/xdp_drop_count.py
Expand Up @@ -52,7 +52,6 @@ def usage():

# load BPF program
b = BPF(text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/bpf.h>
#include <linux/in.h>
#include <linux/if_ether.h>
Expand Down
1 change: 0 additions & 1 deletion examples/networking/xdp/xdp_macswap_count.py
Expand Up @@ -50,7 +50,6 @@ def usage():

# load BPF program
b = BPF(text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/bpf.h>
#include <linux/in.h>
#include <linux/if_ether.h>
Expand Down
1 change: 0 additions & 1 deletion examples/networking/xdp/xdp_redirect_cpu.py
Expand Up @@ -30,7 +30,6 @@ def usage():

# load BPF program
b = BPF(text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/bpf.h>
#include <linux/in.h>
#include <linux/if_ether.h>
Expand Down
1 change: 0 additions & 1 deletion examples/networking/xdp/xdp_redirect_map.py
Expand Up @@ -29,7 +29,6 @@ def usage():

# load BPF program
b = BPF(text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/bpf.h>
#include <linux/in.h>
#include <linux/if_ether.h>
Expand Down
1 change: 0 additions & 1 deletion examples/tracing/nflatency.py
Expand Up @@ -12,7 +12,6 @@
from bcc import BPF

BPF_SRC = """
#define KBUILD_MODNAME "bpf_hook_nflatency"
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/tcp.h>
Expand Down
8 changes: 0 additions & 8 deletions tests/python/test_clang.py
Expand Up @@ -78,7 +78,6 @@ def test_probe_read2(self):

def test_probe_read3(self):
text = """
#define KBUILD_MODNAME "foo"
#include <net/tcp.h>
#define _(P) ({typeof(P) val = 0; bpf_probe_read_kernel(&val, sizeof(val), &P); val;})
int count_tcp(struct pt_regs *ctx, struct sk_buff *skb) {
Expand All @@ -90,7 +89,6 @@ def test_probe_read3(self):

def test_probe_read4(self):
text = """
#define KBUILD_MODNAME "foo"
#include <net/tcp.h>
#define _(P) ({typeof(P) val = 0; bpf_probe_read_kernel(&val, sizeof(val), &P); val;})
int test(struct pt_regs *ctx, struct sk_buff *skb) {
Expand All @@ -102,7 +100,6 @@ def test_probe_read4(self):

def test_probe_read_whitelist1(self):
text = """
#define KBUILD_MODNAME "foo"
#include <net/tcp.h>
int count_tcp(struct pt_regs *ctx, struct sk_buff *skb) {
// The below define is in net/tcp.h:
Expand All @@ -120,7 +117,6 @@ def test_probe_read_whitelist1(self):

def test_probe_read_whitelist2(self):
text = """
#define KBUILD_MODNAME "foo"
#include <net/tcp.h>
int count_tcp(struct pt_regs *ctx, struct sk_buff *skb) {
// The below define is in net/tcp.h:
Expand Down Expand Up @@ -1084,7 +1080,6 @@ def test_probe_read_tc_ctx(self):

def test_probe_read_return(self):
text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/ptrace.h>
#include <linux/tcp.h>
static inline unsigned char *my_skb_transport_header(struct sk_buff *skb) {
Expand All @@ -1100,7 +1095,6 @@ def test_probe_read_return(self):

def test_probe_read_multiple_return(self):
text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/ptrace.h>
#include <linux/tcp.h>
static inline u64 error_function() {
Expand All @@ -1121,7 +1115,6 @@ def test_probe_read_multiple_return(self):

def test_probe_read_return_expr(self):
text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/ptrace.h>
#include <linux/tcp.h>
static inline unsigned char *my_skb_transport_header(struct sk_buff *skb) {
Expand All @@ -1137,7 +1130,6 @@ def test_probe_read_return_expr(self):

def test_probe_read_return_call(self):
text = """
#define KBUILD_MODNAME "foo"
#include <uapi/linux/ptrace.h>
#include <linux/tcp.h>
static inline struct tcphdr *my_skb_transport_header(struct sk_buff *skb) {
Expand Down
1 change: 0 additions & 1 deletion tools/tcplife.lua
Expand Up @@ -25,7 +25,6 @@ uint16_t ntohs(uint16_t netshort);

local program = [[
#include <uapi/linux/ptrace.h>
#define KBUILD_MODNAME "foo"
#include <linux/tcp.h>
#include <net/sock.h>
#include <bcc/proto.h>
Expand Down
1 change: 0 additions & 1 deletion tools/tcplife.py
Expand Up @@ -66,7 +66,6 @@
# define BPF program
bpf_text = """
#include <uapi/linux/ptrace.h>
#define KBUILD_MODNAME "foo"
#include <linux/tcp.h>
#include <net/sock.h>
#include <bcc/proto.h>
Expand Down
1 change: 0 additions & 1 deletion tools/tcpstates.py
Expand Up @@ -61,7 +61,6 @@
# define BPF program
bpf_header = """
#include <uapi/linux/ptrace.h>
#define KBUILD_MODNAME "foo"
#include <linux/tcp.h>
#include <net/sock.h>
#include <bcc/proto.h>
Expand Down

0 comments on commit 1c843e2

Please sign in to comment.