Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
spbro
OpenXG-RAN
Commits
4a0bdd16
Commit
4a0bdd16
authored
Aug 04, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-regression-asn1c-debug' into integration_2023_w31
parents
1eb683f6
31f9dff9
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
63 additions
and
57 deletions
+63
-57
CMakeLists.txt
CMakeLists.txt
+5
-8
cmake_targets/build_oai
cmake_targets/build_oai
+6
-0
common/utils/T/T_messages.txt
common/utils/T/T_messages.txt
+15
-15
common/utils/T/tracer/CMakeLists.txt
common/utils/T/tracer/CMakeLists.txt
+1
-1
common/utils/T/tracer/Makefile
common/utils/T/tracer/Makefile
+12
-12
common/utils/T/tracer/configuration.c
common/utils/T/tracer/configuration.c
+1
-1
common/utils/T/tracer/configuration.h
common/utils/T/tracer/configuration.h
+0
-0
common/utils/T/tracer/enb.c
common/utils/T/tracer/enb.c
+1
-1
common/utils/T/tracer/event.c
common/utils/T/tracer/event.c
+1
-1
common/utils/T/tracer/extract.c
common/utils/T/tracer/extract.c
+1
-1
common/utils/T/tracer/extract_input_subframe.c
common/utils/T/tracer/extract_input_subframe.c
+1
-1
common/utils/T/tracer/extract_output_subframe.c
common/utils/T/tracer/extract_output_subframe.c
+1
-1
common/utils/T/tracer/gnb.c
common/utils/T/tracer/gnb.c
+1
-1
common/utils/T/tracer/hacks/Makefile
common/utils/T/tracer/hacks/Makefile
+3
-3
common/utils/T/tracer/macpdu2wireshark.c
common/utils/T/tracer/macpdu2wireshark.c
+1
-1
common/utils/T/tracer/multi.c
common/utils/T/tracer/multi.c
+1
-1
common/utils/T/tracer/record.c
common/utils/T/tracer/record.c
+1
-1
common/utils/T/tracer/textlog.c
common/utils/T/tracer/textlog.c
+1
-1
common/utils/T/tracer/to_vcd.c
common/utils/T/tracer/to_vcd.c
+1
-1
common/utils/T/tracer/ue.c
common/utils/T/tracer/ue.c
+1
-1
common/utils/T/tracer/vcd.c
common/utils/T/tracer/vcd.c
+1
-1
common/utils/config.h
common/utils/config.h
+7
-4
No files found.
CMakeLists.txt
View file @
4a0bdd16
...
...
@@ -256,8 +256,11 @@ add_definitions("-DPACKAGE_BUGREPORT=\"openair4g-devel@lists.eurecom.fr\"")
# Debug related options
#########################################
add_boolean_option
(
DEBUG_ASN1 False
"ASN1 coder/decoder Debug"
OFF
)
#add_boolean_option(DEBUG_MAC_INTERFACE False "print MAC-RLC PDU exchange to stdout") # if true, make sure that global and PDCP log levels are trace, not found in code, commented out, to be removed
add_boolean_option
(
DEBUG_ASN1 False
"Enable ASN1 debug logs"
OFF
)
# asn1c skeletons have hardcoded this flag to make customized debug logs
# OAI uses this feature to re-use OAI LOG_I(ASN1, ...)
# see common/utils/config.h
add_boolean_option
(
TRACE_ASN1C_ENC_DEC OFF
"Enable ASN1 encoder/decoder debug traces via OAI logging system"
ON
)
add_boolean_option
(
T_TRACER True
"Activate the T tracer, a debugging/monitoring framework"
ON
)
add_boolean_option
(
UE_AUTOTEST_TRACE False
"Activate UE autotest specific logs"
ON
)
add_boolean_option
(
UE_DEBUG_TRACE False
"Activate UE debug trace"
ON
)
...
...
@@ -267,12 +270,6 @@ set (OCP_ITTI ${OPENAIR_DIR}/common/utils/ocp_itti)
add_library
(
ITTI
${
OCP_ITTI
}
/intertask_interface.cpp
)
target_link_libraries
(
ITTI PRIVATE asn1_lte_rrc_hdrs asn1_nr_rrc_hdrs
)
# asn1c skeletons have hardcoded this flag to make customized debug logs
# OAI uses this feature to re-use OAI LOG_I(ASN1, ...)
if
(
DEBUG_ASN1C
)
add_definitions
(
-DHAVE_CONFIG_H
)
endif
()
# asn1c skeletons need this
add_definitions
(
-DHAVE_NETINET_IN_H
)
...
...
cmake_targets/build_oai
View file @
4a0bdd16
...
...
@@ -120,6 +120,8 @@ Options:
Builds Coverity-Scan objects for upload
--disable-deadline
Disables deadline scheduler of Linux kernel (>=3.14.x).
--trace-asn1c-enc-dec
Output asn1c logging traces via OAI logging system.
--enable-deadline
Enable deadline scheduler of Linux kernel (>=3.14.x).
--disable-cpu-affinity
...
...
@@ -416,6 +418,10 @@ function main() {
sleep
2
CMAKE_CMD
=
"
$CMAKE_CMD
-DSANITIZE_MEMORY=ON -DSANITIZE_ADDRESS=OFF -DSANITIZE_UNDEFINED=OFF"
shift
;;
--trace-asn1c-enc-dec
)
CMAKE_CMD
=
"
$CMAKE_CMD
-DTRACE_ASN1C_ENC_DEC=ON"
echo_info
"Enabling asn1c internal traces via OAI logging system"
shift
1
;;
-h
|
--help
)
print_help
exit
1
;;
...
...
common/utils/T/T_messages.txt
View file @
4a0bdd16
...
...
@@ -969,25 +969,25 @@ ID = LEGACY_OSA_TRACE
GROUP = ALL:LEGACY_OSA:LEGACY_GROUP_TRACE:LEGACY
FORMAT = string,log
ID = LEGACY_ASN_INFO
DESC = ASN legacy logs - info level
GROUP = ALL:LEGACY_ASN:LEGACY_GROUP_INFO:LEGACY
ID = LEGACY_ASN
1
_INFO
DESC = ASN
1
legacy logs - info level
GROUP = ALL:LEGACY_ASN
1
:LEGACY_GROUP_INFO:LEGACY
FORMAT = string,log
ID = LEGACY_ASN_ERROR
DESC = ASN legacy logs - error level
GROUP = ALL:LEGACY_ASN:LEGACY_GROUP_ERROR:LEGACY
ID = LEGACY_ASN
1
_ERROR
DESC = ASN
1
legacy logs - error level
GROUP = ALL:LEGACY_ASN
1
:LEGACY_GROUP_ERROR:LEGACY
FORMAT = string,log
ID = LEGACY_ASN_WARNING
DESC = ASN legacy logs - warning level
GROUP = ALL:LEGACY_ASN:LEGACY_GROUP_WARNING:LEGACY
ID = LEGACY_ASN
1
_WARNING
DESC = ASN
1
legacy logs - warning level
GROUP = ALL:LEGACY_ASN
1
:LEGACY_GROUP_WARNING:LEGACY
FORMAT = string,log
ID = LEGACY_ASN_DEBUG
DESC = ASN legacy logs - debug level
GROUP = ALL:LEGACY_ASN:LEGACY_GROUP_DEBUG:LEGACY
ID = LEGACY_ASN
1
_DEBUG
DESC = ASN
1
legacy logs - debug level
GROUP = ALL:LEGACY_ASN
1
:LEGACY_GROUP_DEBUG:LEGACY
FORMAT = string,log
ID = LEGACY_ASN_TRACE
DESC = ASN legacy logs - trace level
GROUP = ALL:LEGACY_ASN:LEGACY_GROUP_TRACE:LEGACY
ID = LEGACY_ASN
1
_TRACE
DESC = ASN
1
legacy logs - trace level
GROUP = ALL:LEGACY_ASN
1
:LEGACY_GROUP_TRACE:LEGACY
FORMAT = string,log
ID = LEGACY_SIM_INFO
...
...
common/utils/T/tracer/CMakeLists.txt
View file @
4a0bdd16
add_library
(
tracer_utils OBJECT config.c database.c event.c handler.c utils.c
)
add_library
(
tracer_utils OBJECT config
uration
.c database.c event.c handler.c utils.c
)
target_link_libraries
(
tracer_utils PUBLIC m pthread
)
add_library
(
tracer_events OBJECT event_selector.c
)
...
...
common/utils/T/tracer/Makefile
View file @
4a0bdd16
...
...
@@ -10,7 +10,7 @@ all: record replay extract_config textlog enb ue vcd macpdu2wireshark \
extract_input_subframe extract_output_subframe to_vcd extract multi
\
gnb
record
:
utils.o record.o database.o config.o
record
:
utils.o record.o database.o config
uration
.o
$(CC)
$(CFLAGS)
-o
record
$^
$(LIBS)
replay
:
utils.o replay.o
...
...
@@ -20,48 +20,48 @@ extract_config: extract_config.o
$(CC)
$(CFLAGS)
-o
extract_config
$^
$(LIBS)
extract_input_subframe
:
extract_input_subframe.o database.o event.o utils.o
\
config.o
config
uration
.o
$(CC)
$(CFLAGS)
-o
$@
$^
$(LIBS)
extract_output_subframe
:
extract_output_subframe.o database.o event.o utils.o
\
config.o
config
uration
.o
$(CC)
$(CFLAGS)
-o
$@
$^
$(LIBS)
extract
:
extract.o database.o event.o utils.o config.o
extract
:
extract.o database.o event.o utils.o config
uration
.o
$(CC)
$(CFLAGS)
-o
$@
$^
$(LIBS)
textlog
:
utils.o textlog.o database.o event.o handler.o config.o
\
textlog
:
utils.o textlog.o database.o event.o handler.o config
uration
.o
\
event_selector.o view/view.a gui/gui.a logger/logger.a
\
filter/filter.a
$(CC)
$(CFLAGS)
-o
textlog
$^
$(LIBS)
$(XLIBS)
enb
:
utils.o enb.o database.o event.o handler.o config.o
\
enb
:
utils.o enb.o database.o event.o handler.o config
uration
.o
\
event_selector.o view/view.a gui/gui.a logger/logger.a
\
filter/filter.a
$(CC)
$(CFLAGS)
-o
enb
$^
$(LIBS)
$(XLIBS)
ue
:
utils.o ue.o database.o event.o handler.o config.o
\
ue
:
utils.o ue.o database.o event.o handler.o config
uration
.o
\
event_selector.o view/view.a gui/gui.a logger/logger.a
\
filter/filter.a
$(CC)
$(CFLAGS)
-o
ue
$^
$(LIBS)
$(XLIBS)
vcd
:
utils.o vcd.o database.o event.o handler.o config.o
\
vcd
:
utils.o vcd.o database.o event.o handler.o config
uration
.o
\
event_selector.o view/view.a gui/gui.a logger/logger.a
\
filter/filter.a
$(CC)
$(CFLAGS)
-o
vcd
$^
$(LIBS)
$(XLIBS)
to_vcd
:
to_vcd.o database.o event.o handler.o utils.o config.o
\
to_vcd
:
to_vcd.o database.o event.o handler.o utils.o config
uration
.o
\
logger/logger.a filter/filter.a
$(CC)
$(CFLAGS)
-o
to_vcd
$^
$(LIBS)
macpdu2wireshark
:
macpdu2wireshark.o database.o utils.o handler.o event.o
\
config.o
config
uration
.o
$(CC)
$(CFLAGS)
-o
$@
$^
$(LIBS)
multi
:
multi.o utils.o database.o config.o
multi
:
multi.o utils.o database.o config
uration
.o
$(CC)
$(CFLAGS)
-o
multi
$^
$(LIBS)
gnb
:
utils.o gnb.o database.o event.o handler.o config.o
\
gnb
:
utils.o gnb.o database.o event.o handler.o config
uration
.o
\
view/view.a gui/gui.a logger/logger.a
\
filter/filter.a
$(CC)
$(CFLAGS)
-o
gnb
$^
$(LIBS)
$(XLIBS)
...
...
common/utils/T/tracer/config.c
→
common/utils/T/tracer/config
uration
.c
View file @
4a0bdd16
#include "config.h"
#include "config
uration
.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
common/utils/T/tracer/config.h
→
common/utils/T/tracer/config
uration
.h
View file @
4a0bdd16
File moved
common/utils/T/tracer/enb.c
View file @
4a0bdd16
...
...
@@ -14,7 +14,7 @@
#include "utils.h"
#include "event_selector.h"
#include "openair_logo.h"
#include "config.h"
#include "config
uration
.h"
/****************************************************************************/
/* conversion from rnti to "ue_id" (which does not really exists) */
...
...
common/utils/T/tracer/event.c
View file @
4a0bdd16
#include "event.h"
#include "database.h"
#include "utils.h"
#include "config.h"
#include "config
uration
.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
common/utils/T/tracer/extract.c
View file @
4a0bdd16
...
...
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include "database.h"
#include "event.h"
#include "config.h"
#include "config
uration
.h"
void
usage
(
void
)
{
...
...
common/utils/T/tracer/extract_input_subframe.c
View file @
4a0bdd16
...
...
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include "database.h"
#include "event.h"
#include "config.h"
#include "config
uration
.h"
void
usage
(
void
)
{
...
...
common/utils/T/tracer/extract_output_subframe.c
View file @
4a0bdd16
...
...
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include "database.h"
#include "event.h"
#include "config.h"
#include "config
uration
.h"
void
usage
(
void
)
{
...
...
common/utils/T/tracer/gnb.c
View file @
4a0bdd16
...
...
@@ -6,7 +6,7 @@
#include "database.h"
#include "event.h"
#include "handler.h"
#include "config.h"
#include "config
uration
.h"
#include "logger/logger.h"
#include "gui/gui.h"
#include "utils.h"
...
...
common/utils/T/tracer/hacks/Makefile
View file @
4a0bdd16
...
...
@@ -5,18 +5,18 @@ LIBS=-lX11 -lm -lpng -lXft
all
:
dump_nack_signal time_meas timeplot multi-rru-clean
dump_nack_signal
:
../utils.o ../database.o ../config.o ../event.o
\
dump_nack_signal
:
../utils.o ../database.o ../config
uration
.o ../event.o
\
dump_nack_signal.o
$(CC)
$(CFLAGS)
-o
dump_nack_signal
$^
$(LIBS)
time_meas
:
../utils.o ../database.o ../config.o ../event.o
\
time_meas
:
../utils.o ../database.o ../config
uration
.o ../event.o
\
time_meas.o
$(CC)
$(CFLAGS)
-o
time_meas
$^
$(LIBS)
timplot
:
timeplot.o
$(CC)
$(CFLAGS)
-o
timeplot
$^
$(LIBS)
multi-rru-clean
:
../utils.o ../database.o ../event.o ../config.o multi-rru-clean.o
multi-rru-clean
:
../utils.o ../database.o ../event.o ../config
uration
.o multi-rru-clean.o
$(CC)
$(CFLAGS)
-o
$@
$^
$(LIBS)
.PHONY
:
all
...
...
common/utils/T/tracer/macpdu2wireshark.c
View file @
4a0bdd16
...
...
@@ -7,7 +7,7 @@
#include "database.h"
#include "event.h"
#include "handler.h"
#include "config.h"
#include "config
uration
.h"
#include "utils.h"
#include "packet-mac-lte.h"
...
...
common/utils/T/tracer/multi.c
View file @
4a0bdd16
...
...
@@ -8,7 +8,7 @@
#include "database.h"
#include "utils.h"
#include "../T.h"
#include "config.h"
#include "config
uration
.h"
#define DEFAULT_LOCAL_PORT 2022
...
...
common/utils/T/tracer/record.c
View file @
4a0bdd16
...
...
@@ -6,7 +6,7 @@
#include "database.h"
#include "utils.h"
#include "../T_defs.h"
#include "config.h"
#include "config
uration
.h"
void
usage
(
void
)
{
...
...
common/utils/T/tracer/textlog.c
View file @
4a0bdd16
...
...
@@ -11,7 +11,7 @@
#include "gui/gui.h"
#include "utils.h"
#include "event_selector.h"
#include "config.h"
#include "config
uration
.h"
typedef
struct
{
int
socket
;
...
...
common/utils/T/tracer/to_vcd.c
View file @
4a0bdd16
...
...
@@ -8,7 +8,7 @@
#include "database.h"
#include "utils.h"
#include "handler.h"
#include "config.h"
#include "config
uration
.h"
#include "logger/logger.h"
#include "view/view.h"
...
...
common/utils/T/tracer/ue.c
View file @
4a0bdd16
...
...
@@ -14,7 +14,7 @@
#include "utils.h"
#include "event_selector.h"
#include "openair_logo.h"
#include "config.h"
#include "config
uration
.h"
typedef
struct
{
view
*
phyview
;
...
...
common/utils/T/tracer/vcd.c
View file @
4a0bdd16
...
...
@@ -11,7 +11,7 @@
#include "gui/gui.h"
#include "utils.h"
#include "event_selector.h"
#include "config.h"
#include "config
uration
.h"
typedef
struct
{
int
socket
;
...
...
common/utils/config.h
View file @
4a0bdd16
...
...
@@ -22,12 +22,15 @@
#ifndef UTILS_CONFIG_H_ASN1
#define UTILS_CONFIG_H_ASN1
// This is hard coded file name "config.h"
and HAVE_CONFIG_H_
in asn1c skeletons
// This is hard coded file name "config.h" in asn1c skeletons
/*
* This file "config.h" will be used by asn1c if HAVE_CONFIG_H_ is defined and
* included. This logs asn1c encoder and decoder traces at execution time using
* the regular OAI logging system, i.e., LOG_I(ASN1...);
* included (this is the case for OAI).
* This allows to trace the asn1c encoder and decoder at execution time using
* the regular OAI logging system, i.e., LOG_I(ASN1, ...);
*
* to enable it, at compilation time, see ./build_oai --enable-asn1c-debug
*
* As it is very verbose, note that you can change the log level per module in
* source or in gdb, e.g., to only activate it for a short time.
...
...
@@ -47,7 +50,7 @@
*/
#include "common/utils/LOG/log.h"
#if
DEBUG_ASN1
C
#if
TRACE_ASN1C_ENC_DE
C
#define ASN_DEBUG(x...) do{ LOG_I(ASN1,x);LOG_I(ASN1,"\n"); } while(false)
#else
#define ASN_DEBUG(x...)
...
...
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