-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "lib/libbpf"] | ||
path = lib/libbpf | ||
url = https://github.com/libbpf/libbpf.git | ||
[submodule "lib/bpftool"] | ||
path = lib/bpftool | ||
url = https://github.com/libbpf/bpftool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Start from the latest Ubuntu image | ||
FROM ubuntu:latest | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
clang \ | ||
llvm \ | ||
libelf-dev \ | ||
zlib1g-dev \ | ||
gcc \ | ||
build-essential \ | ||
pkgconf | ||
|
||
# Copy your source code into the image | ||
COPY . /src | ||
|
||
# Set the working directory | ||
WORKDIR /src | ||
|
||
# Set up libbpf | ||
RUN make -C lib/libbpf/src && make -C lib/libbpf/src install | ||
|
||
# bpftool | ||
RUN make -C lib/bpftool/src && make -C lib/bpftool/src install | ||
|
||
|
||
# Compile the project | ||
RUN make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef __VMLINUX_H | ||
#define __VMLINUX_H | ||
#include <vmlinux.h> | ||
#include "vmlinux.h" | ||
#endif | ||
|
||
#ifndef __MAPS_BPF_H | ||
|