Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai-upf-6g
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
OpenXG
oai-upf-6g
Commits
9dd76582
Commit
9dd76582
authored
Oct 21, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-export-ebpf-map-sizes
Merging develop into feature-export-ebpf-map-sizes
parents
29a001bd
31e362c5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
15 deletions
+57
-15
.gitlab/merge_request_templates/description.md
.gitlab/merge_request_templates/description.md
+34
-0
build/scripts/build_upf
build/scripts/build_upf
+5
-0
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+3
-1
docker/Dockerfile.upf.ubuntu
docker/Dockerfile.upf.ubuntu
+7
-3
src/upf_app/bpf/CMakeLists.txt
src/upf_app/bpf/CMakeLists.txt
+5
-0
src/upf_app/bpf/utils/logger.h
src/upf_app/bpf/utils/logger.h
+3
-11
No files found.
.gitlab/merge_request_templates/description.md
0 → 100644
View file @
9dd76582
## Related Issue(s) / Merge Request(s)
<!-- Link to the related issue(s) using GitLab references, e.g., Closes #123, or link to related merge requests. -->
## Description
<!-- Provide a clear and concise summary of the changes introduced in this MR. -->
## Tested Environment (e.g., radios, interfaces, CN)
<!-- Describe the testing environment and steps to validate the changes. -->
## Configuration Updates (e.g., files, parameters)
<!-- List any changes to configuration files, parameters, etc. -->
## Known Issues / Limitations
<!-- Mention any known issues or limitations related to this MR. -->
## Checklist
*
[ ] Code follows project coding standards.
*
[ ] Relevant tests have been added or updated.
*
[ ] Documentation has been updated where necessary.
*
[ ] Configuration changes have been validated in the target environment(s).
## Log files or packet captures (PCAPs)
<!-- Attach or reference any relevant log files or packet captures (PCAPs). -->
## Additional Notes
<!-- Provide any additional information or context that may be helpful for the reviewer. -->
build/scripts/build_upf
View file @
9dd76582
...
...
@@ -143,6 +143,11 @@ function main()
verbose
=
1
shift
;
;;
--bpf-debug
)
echo
"BPF debug logs enabled"
cmake_args
=
"
$cmake_args
-DBPF_DEBUG=ON"
shift
;
;;
-V
|
--Verbose
)
echo
"CMake build process verbose"
verbose
=
1
...
...
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
9dd76582
...
...
@@ -595,7 +595,9 @@ pipeline {
for
(
htmlFile
in
htmlFiles
)
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' ${htmlFile}"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' ${htmlFile}"
def
unsafePattern
=
/[^a-zA-Z0-9",\.\?\-_ %\+\[\]\(\)~]/
def
sanitizedTitle
=
env
.
gitlabMergeRequestTitle
.
replaceAll
(
unsafePattern
,
'-'
)
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${sanitizedTitle}#' ${htmlFile}"
}
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' ${htmlFile}"
archiveArtifacts
artifacts:
htmlFile
...
...
docker/Dockerfile.upf.ubuntu
View file @
9dd76582
...
...
@@ -36,9 +36,11 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
ENV IS_DOCKERFILE=1
ARG ENABLE_LTTNG=false
ARG BPF_DEBUG=false
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
cmake \
psmisc \
git \
&& rm -rf /var/lib/apt/lists/*
...
...
@@ -66,6 +68,7 @@ FROM oai-upf-base AS oai-upf-builder
COPY . /openair-upf
# Building UPF
WORKDIR /openair-upf/build/scripts
ARG BUILD_ARGS=""
RUN if [ "$ENABLE_LTTNG" = "true" ]; then apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
libstdc++-12-dev \
...
...
@@ -73,11 +76,12 @@ RUN if [ "$ENABLE_LTTNG" = "true" ]; then apt-get update && \
liblttng-ust-dev \
lttng-tools && \
ldconfig && \
./build_upf --clean --Verbose --build-type Release --jobs --lttng
; \
BUILD_ARGS="--lttng"
; \
else \
ldconfig && \
./build_upf --clean --Verbose --build-type Release --jobs --jobs; \
ldconfig; \
fi && \
if [ "$BPF_DEBUG" = "true" ]; then BUILD_ARGS="$BUILD_ARGS --bpf-debug"; fi && \
./build_upf --clean --Verbose --build-type Release --jobs ${BUILD_ARGS}; \
ldd /openair-upf/build/upf/build/upf && \
mv /openair-upf/build/upf/build/upf /openair-upf/build/upf/build/oai_upf && \
echo "end of UPF build"
...
...
src/upf_app/bpf/CMakeLists.txt
View file @
9dd76582
...
...
@@ -11,6 +11,11 @@ include_directories(${SRC_TOP_DIR}/${MOUNTED_COMMON}/utils)
add_definitions
(
-DKERNEL_SPACE
)
if
(
DEFINED BPF_DEBUG
)
if
(
BPF_DEBUG
)
add_definitions
(
-DBPF_DEBUG
)
endif
()
endif
()
add_custom_target
(
upf_xdp_all DEPENDS pfcp_session_lookup_xdp
)
# add_custom_target(upf_tc_all DEPENDS qer_tc)
...
...
src/upf_app/bpf/utils/logger.h
View file @
9dd76582
...
...
@@ -6,8 +6,8 @@
#include <bpf_helpers.h>
#define DEBUG 1
#ifdef DEBUG
// #define DEBUG 0
#ifdef
BPF_
DEBUG
/* Only use this for debug output. Notice output from bpf_trace_printk()
* end-up in /sys/kernel/debug/tracing/trace_pipe
*/
...
...
@@ -17,15 +17,7 @@
bpf_trace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \
})
#else
#define bpf_debug(fmt, ...) \
{} \
while (0)
#define bpf_debug(fmt, ...)
#endif
#define bpf_debug2(fmt, ...) \
({ \
char ____fmt[] = fmt; \
bpf_trace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \
})
#else
#endif // __LOGGER_H__
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