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
lizhongxiao
OpenXG-RAN
Commits
1b1c8e22
Commit
1b1c8e22
authored
Nov 24, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/t-tracer-isolation' into integration_2023_w47
parents
b704f45d
e98acd7c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
18 deletions
+44
-18
common/utils/T/.gitignore
common/utils/T/.gitignore
+1
-2
common/utils/T/CMakeLists.txt
common/utils/T/CMakeLists.txt
+2
-1
common/utils/T/Makefile
common/utils/T/Makefile
+12
-9
common/utils/T/tracee/Makefile
common/utils/T/tracee/Makefile
+10
-2
common/utils/T/tracee/common/config/config_userapi.h
common/utils/T/tracee/common/config/config_userapi.h
+14
-0
common/utils/T/tracee/tracee.c
common/utils/T/tracee/tracee.c
+2
-1
common/utils/T/tracer/Makefile
common/utils/T/tracer/Makefile
+3
-3
No files found.
common/utils/T/.gitignore
View file @
1b1c8e22
*.o
*.o
*.a
*.a
T_IDs.h
T_messages.txt.h
genids
genids
tracer/enb
tracer/enb
tracer/gnb
tracer/gnb
...
@@ -18,3 +16,4 @@ tracer/extract_output_subframe
...
@@ -18,3 +16,4 @@ tracer/extract_output_subframe
tracer/extract
tracer/extract
tracer/multi
tracer/multi
tracee/tracee
tracee/tracee
incgen
common/utils/T/CMakeLists.txt
View file @
1b1c8e22
...
@@ -8,11 +8,12 @@ else()
...
@@ -8,11 +8,12 @@ else()
endif
()
endif
()
add_custom_command
(
OUTPUT T_IDs.h
add_custom_command
(
OUTPUT T_IDs.h
COMMAND genids
${
CMAKE_CURRENT_SOURCE_DIR
}
/T_messages.txt T_IDs.h
COMMAND genids
${
CMAKE_CURRENT_SOURCE_DIR
}
/T_messages.txt T_IDs.h
DEPENDS genids
DEPENDS genids
T_messages.txt
COMMENT
"Generating T_IDs.h from T_messages.txt"
COMMENT
"Generating T_IDs.h from T_messages.txt"
)
)
add_custom_command
(
OUTPUT T_messages.txt.h
add_custom_command
(
OUTPUT T_messages.txt.h
COMMAND xxd -i T_messages.txt
${
CMAKE_CURRENT_BINARY_DIR
}
/T_messages.txt.h
COMMAND xxd -i T_messages.txt
${
CMAKE_CURRENT_BINARY_DIR
}
/T_messages.txt.h
DEPENDS T_messages.txt
COMMENT
"Generating T_messages.txt.h from T_messages.txt"
COMMENT
"Generating T_messages.txt.h from T_messages.txt"
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
)
...
...
common/utils/T/Makefile
View file @
1b1c8e22
CC
=
gcc
CC
=
gcc
CFLAGS
=
-Wall
-g
CFLAGS
=
-Wall
-g
-Iincgen
GENIDS
=
genids
GENIDS
=
genids
GENIDS_OBJS
=
genids.o
GENIDS_OBJS
=
genids.o
all
:
$(GENIDS)
T_messages.txt.h
T_IDs.h
all
:
$(GENIDS)
incgen/T_messages.txt.h incgen/
T_IDs.h
$(GENIDS)
:
$(GENIDS_OBJS)
$(GENIDS)
:
$(GENIDS_OBJS)
$(CC)
$(CFLAGS)
-o
$(GENIDS)
$(GENIDS_OBJS)
$(CC)
$(CFLAGS)
-o
$(GENIDS)
$(GENIDS_OBJS)
...
@@ -12,21 +12,24 @@ $(GENIDS): $(GENIDS_OBJS)
...
@@ -12,21 +12,24 @@ $(GENIDS): $(GENIDS_OBJS)
%.o
:
%.c
%.o
:
%.c
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(CC)
$(CFLAGS)
-c
-o
$@
$<
T_messages.txt.h
:
T_messages.txt
incgen/T_messages.txt.h
:
T_messages.txt
xxd
-i
T_messages.txt T_messages.txt.h
mkdir
-p
incgen
xxd
-i
T_messages.txt incgen/T_messages.txt.h
T_IDs.h
:
$(GENIDS) T_messages.txt
incgen/T_IDs.h
:
$(GENIDS) T_messages.txt
./
$(GENIDS)
T_messages.txt T_IDs.h
mkdir
-p
incgen
./
$(GENIDS)
T_messages.txt incgen/T_IDs.h
check_vcd
:
T_IDs.h
T_messages.txt.h
check_vcd
:
incgen/T_IDs.h incgen/
T_messages.txt.h
gcc
-Wall
-I
.
-I
..
-I
../itti
-I
../../../openair2/COMMON
-Itracer
-o
_check_vcd check_vcd.c tracer/database.c tracer/utils.c
-lm
-pthread
gcc
-Wall
-I
.
-I
..
-I
../itti
-I
../../../openair2/COMMON
-Itracer
-o
_check_vcd check_vcd.c tracer/database.c tracer/utils.c
-lm
-pthread
./_check_vcd T_messages.txt ../LOG/vcd_signal_dumper.h
||
(
rm
-
f
./_check_vcd ./T_IDs.h ./T_messages.txt.h
&&
false
)
./_check_vcd T_messages.txt ../LOG/vcd_signal_dumper.h
||
(
rm
-
rf
./_check_vcd ./incgen
&&
false
)
rm
-f
./_check_vcd
rm
-f
./_check_vcd
.PHONY
:
check_vcd
.PHONY
:
check_vcd
clean
:
clean
:
rm
-f
*
.o
$(GENIDS)
core T_IDs.h T_messages.txt.h _check_vcd
rm
-f
*
.o
$(GENIDS)
core _check_vcd
rm
-rf
incgen
cleanall
:
clean
cleanall
:
clean
cd
tracer
&&
$(MAKE)
clean
cd
tracer
&&
$(MAKE)
clean
common/utils/T/tracee/Makefile
View file @
1b1c8e22
CC
=
gcc
CC
=
gcc
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
-I
.
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
-I
.
-I
../incgen
PROG
=
tracee
PROG
=
tracee
OBJS
=
tracee.o ../T.o ../local_tracer.o
OBJS
=
tracee.o T.o ../local_tracer.o
all
:
T_dep $(PROG)
$(PROG)
:
$(OBJS)
$(PROG)
:
$(OBJS)
$(CC)
$(CFLAGS)
-o
$(PROG)
$(OBJS)
-lrt
$(CC)
$(CFLAGS)
-o
$(PROG)
$(OBJS)
-lrt
...
@@ -10,5 +12,11 @@ $(PROG): $(OBJS)
...
@@ -10,5 +12,11 @@ $(PROG): $(OBJS)
tracee.o
:
tracee.c
tracee.o
:
tracee.c
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(CC)
$(CFLAGS)
-c
-o
$@
$<
T.o
:
../T.c
$(CC)
$(CFLAGS)
-c
-o
$@
$<
T_dep
:
cd
..
&&
make
clean
:
clean
:
rm
-f
*
.o
$(PROG)
core
rm
-f
*
.o
$(PROG)
core
common/utils/T/tracee/common/config/config_userapi.h
0 → 100644
View file @
1b1c8e22
#ifndef _CONFIG_USERAPI_H_
#define _CONFIG_USERAPI_H_
typedef
int
paramdef_t
;
#ifdef CMDLINE_TTRACEPARAMS_DESC
#undef CMDLINE_TTRACEPARAMS_DESC
#endif
#define CMDLINE_TTRACEPARAMS_DESC {}
#define config_get(dummy, ...) (void)(dummy)
#define config_process_cmdline(...)
/**/
#endif
/* _CONFIG_USERAPI_H_ */
common/utils/T/tracee/tracee.c
View file @
1b1c8e22
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
int
main
(
void
)
int
main
(
void
)
{
{
int
frame
=
0
;
int
frame
=
0
;
T_init
(
2021
,
1
,
0
);
T_init
(
2021
,
1
);
T_stdout
=
0
;
while
(
1
)
{
while
(
1
)
{
getchar
();
getchar
();
T
(
T_ENB_PHY_PUCCH_1AB_IQ
,
T_INT
(
0
),
T_INT
(
0
),
T_INT
(
frame
),
T_INT
(
0
),
T_INT
(
0
),
T_INT
(
0
));
T
(
T_ENB_PHY_PUCCH_1AB_IQ
,
T_INT
(
0
),
T_INT
(
0
),
T_INT
(
frame
),
T_INT
(
0
),
T_INT
(
0
),
T_INT
(
0
));
...
...
common/utils/T/tracer/Makefile
View file @
1b1c8e22
CC
=
gcc
CC
=
gcc
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
-I
.
CFLAGS
=
-Wall
-g
-pthread
-DT_TRACER
-I
.
-I
../incgen
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
...
@@ -66,9 +66,9 @@ gnb: utils.o gnb.o database.o event.o handler.o configuration.o \
...
@@ -66,9 +66,9 @@ gnb: utils.o gnb.o database.o event.o handler.o configuration.o \
filter/filter.a
filter/filter.a
$(CC)
$(CFLAGS)
-o
gnb
$^
$(LIBS)
$(XLIBS)
$(CC)
$(CFLAGS)
-o
gnb
$^
$(LIBS)
$(XLIBS)
multi.o
:
../T_IDs.h
multi.o
:
../
incgen/
T_IDs.h
../
T_IDs.h
:
../
incgen/T_IDs.h
:
../T_messages.txt
cd
..
&&
$(MAKE)
cd
..
&&
$(MAKE)
.PHONY
:
all gui/gui.a view/view.a logger/logger.a filter/filter.a
.PHONY
:
all gui/gui.a view/view.a logger/logger.a filter/filter.a
...
...
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