Skip to content

Commit

Permalink
tools: Remove manual KBUILD_MODNAME definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnZhong authored and yonghong-song committed Aug 31, 2023
1 parent 0fcb346 commit a22bd25
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions tools/nfsslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/dcache.h>
#ifndef KBUILD_MODNAME
#define KBUILD_MODNAME "bcc"
#endif
#include <linux/nfs_fs.h>
#define TRACE_READ 0
Expand Down
3 changes: 0 additions & 3 deletions tools/rdmaucma.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@

# define BPF program
bpf_text = """
#ifndef KBUILD_MODNAME
#define KBUILD_MODNAME "bcc"
#endif
#include <linux/bpf.h>
#include <uapi/linux/ptrace.h>
#include <rdma/rdma_cm.h>
Expand Down
3 changes: 0 additions & 3 deletions tools/tcprtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@

# define BPF program
bpf_text = """
#ifndef KBUILD_MODNAME
#define KBUILD_MODNAME "bcc"
#endif
#include <uapi/linux/ptrace.h>
#include <linux/tcp.h>
#include <net/sock.h>
Expand Down
3 changes: 0 additions & 3 deletions tools/virtiostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@

# define BPF program
bpf_text = """
#ifndef KBUILD_MODNAME
#define KBUILD_MODNAME "bcc"
#endif
#include <linux/virtio.h>
#include <bcc/proto.h>
Expand Down

0 comments on commit a22bd25

Please sign in to comment.