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
055487d6
Commit
055487d6
authored
Mar 16, 2021
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make global makefile
parent
3b0c4fa5
Changes
52
Show whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
77 additions
and
15 deletions
+77
-15
.gitignore
.gitignore
+15
-10
Makefile
Makefile
+16
-0
src/clockres/build/Makefile
src/clockres/build/Makefile
+8
-1
src/clockres/src/clockres.c
src/clockres/src/clockres.c
+0
-0
src/clockres/src/tracer.c
src/clockres/src/tracer.c
+0
-0
src/clockres/src/tracer.h
src/clockres/src/tracer.h
+0
-0
src/gettime/build/Makefile
src/gettime/build/Makefile
+8
-1
src/gettime/src/gettime.c
src/gettime/src/gettime.c
+0
-0
src/packet-exchange/build/Makefile
src/packet-exchange/build/Makefile
+11
-1
src/packet-exchange/src/bpf_endian.h
src/packet-exchange/src/bpf_endian.h
+0
-0
src/packet-exchange/src/bpf_helpers.h
src/packet-exchange/src/bpf_helpers.h
+0
-0
src/packet-exchange/src/client.c
src/packet-exchange/src/client.c
+0
-0
src/packet-exchange/src/common.c
src/packet-exchange/src/common.c
+0
-0
src/packet-exchange/src/common.h
src/packet-exchange/src/common.h
+0
-0
src/packet-exchange/src/gpio.c
src/packet-exchange/src/gpio.c
+0
-0
src/packet-exchange/src/gpio.h
src/packet-exchange/src/gpio.h
+0
-0
src/packet-exchange/src/parsing_helpers.h
src/packet-exchange/src/parsing_helpers.h
+0
-0
src/packet-exchange/src/recv_packet.c
src/packet-exchange/src/recv_packet.c
+0
-0
src/packet-exchange/src/recv_packet.h
src/packet-exchange/src/recv_packet.h
+0
-0
src/packet-exchange/src/send_packet.c
src/packet-exchange/src/send_packet.c
+0
-0
src/packet-exchange/src/send_packet.h
src/packet-exchange/src/send_packet.h
+0
-0
src/packet-exchange/src/server.c
src/packet-exchange/src/server.c
+0
-0
src/packet-exchange/src/tracer.c
src/packet-exchange/src/tracer.c
+0
-0
src/packet-exchange/src/tracer.h
src/packet-exchange/src/tracer.h
+0
-0
src/packet-exchange/src/xdp_kern.c
src/packet-exchange/src/xdp_kern.c
+0
-0
src/software-pulse/build/Makefile
src/software-pulse/build/Makefile
+8
-1
src/software-pulse/src/common.c
src/software-pulse/src/common.c
+0
-0
src/software-pulse/src/common.h
src/software-pulse/src/common.h
+0
-0
src/software-pulse/src/gpio.c
src/software-pulse/src/gpio.c
+0
-0
src/software-pulse/src/gpio.h
src/software-pulse/src/gpio.h
+0
-0
src/software-pulse/src/pulse.c
src/software-pulse/src/pulse.c
+0
-0
src/software-pulse/src/pulse.h
src/software-pulse/src/pulse.h
+0
-0
src/software-pulse/src/software-pulse.c
src/software-pulse/src/software-pulse.c
+0
-0
src/test-ptp/build/Makefile
src/test-ptp/build/Makefile
+11
-1
src/test-ptp/src/bpf_helpers.h
src/test-ptp/src/bpf_helpers.h
+0
-0
src/test-ptp/src/client.c
src/test-ptp/src/client.c
+0
-0
src/test-ptp/src/common.c
src/test-ptp/src/common.c
+0
-0
src/test-ptp/src/common.h
src/test-ptp/src/common.h
+0
-0
src/test-ptp/src/gpio.c
src/test-ptp/src/gpio.c
+0
-0
src/test-ptp/src/gpio.h
src/test-ptp/src/gpio.h
+0
-0
src/test-ptp/src/recv_packet.c
src/test-ptp/src/recv_packet.c
+0
-0
src/test-ptp/src/recv_packet.h
src/test-ptp/src/recv_packet.h
+0
-0
src/test-ptp/src/send_packet.c
src/test-ptp/src/send_packet.c
+0
-0
src/test-ptp/src/send_packet.h
src/test-ptp/src/send_packet.h
+0
-0
src/test-ptp/src/server.c
src/test-ptp/src/server.c
+0
-0
src/test-ptp/src/tracer.c
src/test-ptp/src/tracer.c
+0
-0
src/test-ptp/src/tracer.h
src/test-ptp/src/tracer.h
+0
-0
src/test-ptp/src/xdp_kern.c
src/test-ptp/src/xdp_kern.c
+0
-0
src/xdp-testing/Makefile
src/xdp-testing/Makefile
+0
-0
src/xdp-testing/bpf_helpers.h
src/xdp-testing/bpf_helpers.h
+0
-0
src/xdp-testing/xdp_kern.c
src/xdp-testing/xdp_kern.c
+0
-0
src/xdp-testing/xdp_pass_kern.c
src/xdp-testing/xdp_pass_kern.c
+0
-0
No files found.
.gitignore
View file @
055487d6
*.o
*.o
*.ll
*.ll
*.d
*.d
latency-measure/build/main
latency-measure/build/main
bin
clockres/build/clockres
clockres/build/clockres_arm
src/clockres/build/*
packet-exchange/build/server
!src/clockres/build/Makefile
packet-exchange/build/client
src/gettime/build/*
gettime/build/gettime
!src/gettime/build/Makefile
software-pulse/build/software-pulse
src/packet-exchange/build/*
test-ptp/build/server
!src/packet-exchange/build/Makefile
test-ptp/build/client
src/software-pulse/build/*
!src/software-pulse/build/Makefile
src/test-ptp/build/*
!src/test-ptp/build/Makefile
src/xdp-testing/build/*
!src/xdp-testing/build/Makefile
scripts/packet-histogram_stop-options*
scripts/packet-histogram_stop-options*
Makefile
0 → 100644
View file @
055487d6
SUBPROGS
=
packet-exchange clockres gettime software-pulse
CLEANPROGS
=
$(SUBPROGS:%=clean%)
all
:
$(SUBPROGS)
$(SUBPROGS)
:
cd
src/
$@
/build
&&
$(MAKE)
cd
../../..
mkdir
-p
bin
ln
-fs
$(
realpath
src
)
/
$@
/build/bin/
*
bin/
clean
:
$(CLEANPROGS)
$(RM)
-rf
bin
$(CLEANPROGS)
:
cd
src/
$
(
@:clean%
=
%
)
/build
&&
$(MAKE)
clean
clockres/build/Makefile
→
src/
clockres/build/Makefile
View file @
055487d6
...
@@ -20,12 +20,19 @@ LDFLAGS = -pthread
...
@@ -20,12 +20,19 @@ LDFLAGS = -pthread
vpath
%.c
$(SRCDIR)
vpath
%.c
$(SRCDIR)
all
:
links
links
:
bin/$(PROG)
bin/$(PROG)
:
$(PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(PROG)
)
bin/
$(PROG)
$(PROG)
:
$(OBJS)
$(PROG)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$^
-o
$@
$(CC)
$(LDFLAGS)
$^
-o
$@
-include
$(subst .c,.d,$(SRCS))
-include
$(subst .c,.d,$(SRCS))
clean
:
clean
:
$(RM)
-rf
bin
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean
.PHONY
:
clean
all links
clockres/src/clockres.c
→
src/
clockres/src/clockres.c
View file @
055487d6
File moved
clockres/src/tracer.c
→
src/
clockres/src/tracer.c
View file @
055487d6
File moved
clockres/src/tracer.h
→
src/
clockres/src/tracer.h
View file @
055487d6
File moved
gettime/build/Makefile
→
src/
gettime/build/Makefile
View file @
055487d6
...
@@ -19,12 +19,19 @@ LLIBS = -pthread
...
@@ -19,12 +19,19 @@ LLIBS = -pthread
vpath
%.c
$(SRCDIR)
vpath
%.c
$(SRCDIR)
all
:
links
links
:
bin/$(PROG)
bin/$(PROG)
:
$(PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(PROG)
)
bin/
$(PROG)
$(PROG)
:
$(OBJS)
$(PROG)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
-include
$(subst .c,.d,$(SRCS))
-include
$(subst .c,.d,$(SRCS))
clean
:
clean
:
$(RM)
-rf
bin
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean
.PHONY
:
clean
all links
gettime/src/gettime.c
→
src/
gettime/src/gettime.c
View file @
055487d6
File moved
packet-exchange/build/Makefile
→
src/
packet-exchange/build/Makefile
View file @
055487d6
...
@@ -42,6 +42,15 @@ endif
...
@@ -42,6 +42,15 @@ endif
vpath
%.c
$(SRCDIR)
vpath
%.c
$(SRCDIR)
all
:
links
links
:
bin/$(SERVER_PROG) bin/$(CLIENT_PROG)
bin/$(SERVER_PROG)
:
$(SERVER_PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(SERVER_PROG)
)
$@
bin/$(CLIENT_PROG)
:
$(CLIENT_PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(CLIENT_PROG)
)
$@
xdp_kern.o
:
xdp_kern.c
xdp_kern.o
:
xdp_kern.c
clang
$(IFLAGS)
-isystem
/usr/include/arm-linux-gnueabihf
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
clang
$(IFLAGS)
-isystem
/usr/include/arm-linux-gnueabihf
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
llc
-march
=
bpf
-filetype
=
obj
-o
$@
xdp_kern.ll
llc
-march
=
bpf
-filetype
=
obj
-o
$@
xdp_kern.ll
...
@@ -62,7 +71,8 @@ $(CLIENT_PROG): $(CLIENT_OBJS)
...
@@ -62,7 +71,8 @@ $(CLIENT_PROG): $(CLIENT_OBJS)
-include
$(subst .c,.d,$(CLIENT_SRCS))
-include
$(subst .c,.d,$(CLIENT_SRCS))
clean
:
clean
:
$(RM)
-rf
bin
$(RM)
$(SERVER_OBJS)
$(SERVER_PROG)
$(
subst
.c,.d,
$(SERVER_SRCS)
)
$(RM)
$(SERVER_OBJS)
$(SERVER_PROG)
$(
subst
.c,.d,
$(SERVER_SRCS)
)
$(RM)
$(CLIENT_OBJS)
$(CLIENT_PROG)
$(
subst
.c,.d,
$(CLIENT_SRCS)
)
$(RM)
$(CLIENT_OBJS)
$(CLIENT_PROG)
$(
subst
.c,.d,
$(CLIENT_SRCS)
)
.PHONY
:
clean
.PHONY
:
clean
all links
packet-exchange/src/bpf_endian.h
→
src/
packet-exchange/src/bpf_endian.h
View file @
055487d6
File moved
packet-exchange/src/bpf_helpers.h
→
src/
packet-exchange/src/bpf_helpers.h
View file @
055487d6
File moved
packet-exchange/src/client.c
→
src/
packet-exchange/src/client.c
View file @
055487d6
File moved
packet-exchange/src/common.c
→
src/
packet-exchange/src/common.c
View file @
055487d6
File moved
packet-exchange/src/common.h
→
src/
packet-exchange/src/common.h
View file @
055487d6
File moved
packet-exchange/src/gpio.c
→
src/
packet-exchange/src/gpio.c
View file @
055487d6
File moved
packet-exchange/src/gpio.h
→
src/
packet-exchange/src/gpio.h
View file @
055487d6
File moved
packet-exchange/src/parsing_helpers.h
→
src/
packet-exchange/src/parsing_helpers.h
View file @
055487d6
File moved
packet-exchange/src/recv_packet.c
→
src/
packet-exchange/src/recv_packet.c
View file @
055487d6
File moved
packet-exchange/src/recv_packet.h
→
src/
packet-exchange/src/recv_packet.h
View file @
055487d6
File moved
packet-exchange/src/send_packet.c
→
src/
packet-exchange/src/send_packet.c
View file @
055487d6
File moved
packet-exchange/src/send_packet.h
→
src/
packet-exchange/src/send_packet.h
View file @
055487d6
File moved
packet-exchange/src/server.c
→
src/
packet-exchange/src/server.c
View file @
055487d6
File moved
packet-exchange/src/tracer.c
→
src/
packet-exchange/src/tracer.c
View file @
055487d6
File moved
packet-exchange/src/tracer.h
→
src/
packet-exchange/src/tracer.h
View file @
055487d6
File moved
packet-exchange/src/xdp_kern.c
→
src/
packet-exchange/src/xdp_kern.c
View file @
055487d6
File moved
software-pulse/build/Makefile
→
s
rc/s
oftware-pulse/build/Makefile
View file @
055487d6
...
@@ -22,12 +22,19 @@ LLIBS = -pthread
...
@@ -22,12 +22,19 @@ LLIBS = -pthread
vpath
%.c
$(SRCDIR)
vpath
%.c
$(SRCDIR)
all
:
links
links
:
bin/$(PROG)
bin/$(PROG)
:
$(PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(PROG)
)
bin/
$(PROG)
$(PROG)
:
$(OBJS)
$(PROG)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
$(CC)
$(LDFLAGS)
$(LDIRS)
$^
$(LLIBS)
-o
$@
-include
$(subst .c,.d,$(SRCS))
-include
$(subst .c,.d,$(SRCS))
clean
:
clean
:
$(RM)
-rf
bin
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
$(RM)
$(OBJS)
$(PROG)
$(
subst
.c,.d,
$(SRCS)
)
.PHONY
:
clean
.PHONY
:
clean
all links
software-pulse/src/common.c
→
s
rc/s
oftware-pulse/src/common.c
View file @
055487d6
File moved
software-pulse/src/common.h
→
s
rc/s
oftware-pulse/src/common.h
View file @
055487d6
File moved
software-pulse/src/gpio.c
→
s
rc/s
oftware-pulse/src/gpio.c
View file @
055487d6
File moved
software-pulse/src/gpio.h
→
s
rc/s
oftware-pulse/src/gpio.h
View file @
055487d6
File moved
software-pulse/src/pulse.c
→
s
rc/s
oftware-pulse/src/pulse.c
View file @
055487d6
File moved
software-pulse/src/pulse.h
→
s
rc/s
oftware-pulse/src/pulse.h
View file @
055487d6
File moved
software-pulse/src/software-pulse.c
→
s
rc/s
oftware-pulse/src/software-pulse.c
View file @
055487d6
File moved
test-ptp/build/Makefile
→
src/
test-ptp/build/Makefile
View file @
055487d6
...
@@ -42,6 +42,15 @@ endif
...
@@ -42,6 +42,15 @@ endif
vpath
%.c
$(SRCDIR)
vpath
%.c
$(SRCDIR)
all
:
links
links
:
bin/$(SERVER_PROG) bin/$(CLIENT_PROG)
bin/$(SERVER_PROG)
:
$(SERVER_PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(SERVER_PROG)
)
$@
bin/$(CLIENT_PROG)
:
$(CLIENT_PROG)
mkdir
-p
bin
ln
-fs
$(
realpath
$(CLIENT_PROG)
)
$@
xdp_kern.o
:
xdp_kern.c
xdp_kern.o
:
xdp_kern.c
clang
$(IFLAGS)
-isystem
/usr/include/arm-linux-gnueabihf
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
clang
$(IFLAGS)
-isystem
/usr/include/arm-linux-gnueabihf
-S
-target
bpf
-D
__BPF_TRACING__
-Wall
-O2
-emit-llvm
-c
-g
-o
xdp_kern.ll
$^
llc
-march
=
bpf
-filetype
=
obj
-o
$@
xdp_kern.ll
llc
-march
=
bpf
-filetype
=
obj
-o
$@
xdp_kern.ll
...
@@ -62,7 +71,8 @@ $(CLIENT_PROG): $(CLIENT_OBJS)
...
@@ -62,7 +71,8 @@ $(CLIENT_PROG): $(CLIENT_OBJS)
-include
$(subst .c,.d,$(CLIENT_SRCS))
-include
$(subst .c,.d,$(CLIENT_SRCS))
clean
:
clean
:
$(RM)
-rf
bin
$(RM)
$(SERVER_OBJS)
$(SERVER_PROG)
$(
subst
.c,.d,
$(SERVER_SRCS)
)
$(RM)
$(SERVER_OBJS)
$(SERVER_PROG)
$(
subst
.c,.d,
$(SERVER_SRCS)
)
$(RM)
$(CLIENT_OBJS)
$(CLIENT_PROG)
$(
subst
.c,.d,
$(CLIENT_SRCS)
)
$(RM)
$(CLIENT_OBJS)
$(CLIENT_PROG)
$(
subst
.c,.d,
$(CLIENT_SRCS)
)
.PHONY
:
clean
.PHONY
:
clean
all links
test-ptp/src/bpf_helpers.h
→
src/
test-ptp/src/bpf_helpers.h
View file @
055487d6
File moved
test-ptp/src/client.c
→
src/
test-ptp/src/client.c
View file @
055487d6
File moved
test-ptp/src/common.c
→
src/
test-ptp/src/common.c
View file @
055487d6
File moved
test-ptp/src/common.h
→
src/
test-ptp/src/common.h
View file @
055487d6
File moved
test-ptp/src/gpio.c
→
src/
test-ptp/src/gpio.c
View file @
055487d6
File moved
test-ptp/src/gpio.h
→
src/
test-ptp/src/gpio.h
View file @
055487d6
File moved
test-ptp/src/recv_packet.c
→
src/
test-ptp/src/recv_packet.c
View file @
055487d6
File moved
test-ptp/src/recv_packet.h
→
src/
test-ptp/src/recv_packet.h
View file @
055487d6
File moved
test-ptp/src/send_packet.c
→
src/
test-ptp/src/send_packet.c
View file @
055487d6
File moved
test-ptp/src/send_packet.h
→
src/
test-ptp/src/send_packet.h
View file @
055487d6
File moved
test-ptp/src/server.c
→
src/
test-ptp/src/server.c
View file @
055487d6
File moved
test-ptp/src/tracer.c
→
src/
test-ptp/src/tracer.c
View file @
055487d6
File moved
test-ptp/src/tracer.h
→
src/
test-ptp/src/tracer.h
View file @
055487d6
File moved
test-ptp/src/xdp_kern.c
→
src/
test-ptp/src/xdp_kern.c
View file @
055487d6
File moved
xdp-testing/Makefile
→
src/
xdp-testing/Makefile
View file @
055487d6
File moved
xdp-testing/bpf_helpers.h
→
src/
xdp-testing/bpf_helpers.h
View file @
055487d6
File moved
xdp-testing/xdp_kern.c
→
src/
xdp-testing/xdp_kern.c
View file @
055487d6
File moved
xdp-testing/xdp_pass_kern.c
→
src/
xdp-testing/xdp_pass_kern.c
View file @
055487d6
File moved
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