Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
493e215a
Commit
493e215a
authored
Jun 19, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile xdp kern with clang as a BPF target
parent
84e35f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
packet-exchange/build/Makefile
packet-exchange/build/Makefile
+9
-1
No files found.
packet-exchange/build/Makefile
View file @
493e215a
...
...
@@ -6,7 +6,6 @@ SERVER_SRCS = server.c
SERVER_SRCS
+=
recv_packet.c
SERVER_SRCS
+=
send_packet.c
SERVER_SRCS
+=
utilities.c
SERVER_SRCS
+=
xdp_kern.c
CLIENT_SRCS
=
client.c
CLIENT_SRCS
+=
recv_packet.c
...
...
@@ -36,8 +35,17 @@ endif
vpath
%.c
$(SRCDIR)
xdp_kern.o
:
clang
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll xdp_kern.c
llc
-march
=
bpf
-filetype
=
obj
-o
xdp_kern.o xdp_kern.ll
ifneq
($(WITH_XDP),)
$(SERVER_PROG)
:
$(SERVER_OBJS)
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
else
$(SERVER_PROG)
:
$(SERVER_OBJS)
,
xdp_kern.o
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
endif
$(CLIENT_PROG)
:
$(CLIENT_OBJS)
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment