Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
syscall-eval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
syscall-eval
Commits
c23dbf46
Commit
c23dbf46
authored
3 years ago
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
add docker tooling
parent
5868607e
No related branches found
No related tags found
No related merge requests found
Pipeline
#66425
passed
3 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+4
-1
4 additions, 1 deletion
Makefile
docker.sh
+16
-0
16 additions, 0 deletions
docker.sh
tools/docker-prepare
+19
-0
19 additions, 0 deletions
tools/docker-prepare
with
39 additions
and
1 deletion
Makefile
+
4
−
1
View file @
c23dbf46
...
@@ -8,11 +8,14 @@ LDFLAGS := -luring -pthread -lrt
...
@@ -8,11 +8,14 @@ LDFLAGS := -luring -pthread -lrt
# CFLAGS := -Werror -Wall -g -O3
# CFLAGS := -Werror -Wall -g -O3
CFLAGS
:=
-Werror
-Wall
-g
-O0
CFLAGS
:=
-Werror
-Wall
-g
-O0
.PHONY
:
all clean eval
.PHONY
:
all clean eval
docker-eval
eval
:
all
eval
:
all
@
for
syscall
in
$(
SYSCALLS
);
do
echo
-n
"
$$
syscall "
;
./bench-
$$
syscall
;
done
@
for
syscall
in
$(
SYSCALLS
);
do
echo
-n
"
$$
syscall "
;
./bench-
$$
syscall
;
done
docker-eval
:
./docker.sh make
eval
all
:
$(OBJ)
all
:
$(OBJ)
define
generateTargets
define
generateTargets
...
...
This diff is collapsed.
Click to expand it.
docker.sh
0 → 100755
+
16
−
0
View file @
c23dbf46
#!/usr/bin/env bash
# The directory of this script is also the project's root directory.
ROOT
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
"
IMAGE
=
$(
sed
--regexp-extended
--quiet
's;^image: "([^"]*)"$;\1;p'
"
${
ROOT
}
/.gitlab-ci.yml"
)
docker run
\
--volume
=
"
${
ROOT
}
:
${
ROOT
}
"
\
--interactive
\
--tty
\
--security-opt
seccomp
=
.docker-seccomp-profile.json
\
--env
USER_ID
=
"
${
UID
}
"
\
--env
GROUP_ID
=
"
$(
id
-g
${
USER
}
)
"
\
"
${
IMAGE
}
"
\
"
${
ROOT
}
/tools/docker-prepare"
"
${
ROOT
}
"
$@
This diff is collapsed.
Click to expand it.
tools/docker-prepare
0 → 100755
+
19
−
0
View file @
c23dbf46
#!/usr/bin/env bash
set
-euo
pipefail
useradd
-u
"
${
USER_ID
}
"
-o
-m
user
groupmod
-g
"
${
GROUP_ID
}
"
user
if
[[
!
-f
"/usr/lib/libomp.so"
]]
&&
[[
-f
/usr/lib/llvm-12/lib/libomp.so
]]
;
then
ln
-s
/usr/lib/llvm-12/lib/libomp.so /usr/lib
fi
ln
-s
/usr/bin/perf_5.10 /usr/bin/perf
OUTSIDE_ROOT
=
"
${
1
}
"
shift
cd
"
${
OUTSIDE_ROOT
}
"
# shellcheck disable=SC2068
exec sudo
-u
user
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment