Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
274e75f9
Commit
274e75f9
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
msc traces
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7238
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
20a0126b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/tools/run_epc
+48
-14
48 additions, 14 deletions
cmake_targets/tools/run_epc
with
48 additions
and
14 deletions
cmake_targets/tools/run_epc
+
48
−
14
View file @
274e75f9
...
...
@@ -45,20 +45,21 @@ set_openair_env
function
help
()
{
echo_error
" "
echo_error
"Usage: run_epc [OPTION]..."
echo_error
"Run the EPC executable (MME+SGW-LITE)."
echo_error
" "
echo_error
"Options:"
echo_error
"Mandatory arguments to long options are mandatory for short options too."
echo_error
" -g, --gdb Run with GDB."
echo_error
" -h, --help Print this help."
echo_error
" -K, --itti-dump-file ITTI dump file containing all ITTI events occuring during EPC runtime."
echo_error
" -l, --local-enb EPC run on the same eNB host."
echo_error
" -v, --verbosity-level Verbosity level (0,1,2)."
echo_error
" 0 -> ASN1 XER printf off"
echo_error
" 1 -> ASN1 XER printf on and ASN1 debug off"
echo_error
" 2 -> ASN1 XER printf on and ASN1 debug on"
echo_error
" "
echo_error
"Usage: run_epc [OPTION]..."
echo_error
"Run the EPC executable (MME+SGW-LITE)."
echo_error
" "
echo_error
"Options:"
echo_error
"Mandatory arguments to long options are mandatory for short options too."
echo_error
" -g, --gdb Run with GDB."
echo_error
" -h, --help Print this help."
echo_error
" -K, --itti-dump-file ITTI dump file containing all ITTI events occuring during EPC runtime."
echo_error
" -l, --local-enb EPC run on the same eNB host."
echo_error
" -m, --mscgen directory Generate mscgen output files in a directory"
echo_error
" -v, --verbosity-level Verbosity level (0,1,2)."
echo_error
" 0 -> ASN1 XER printf off"
echo_error
" 1 -> ASN1 XER printf on and ASN1 debug off"
echo_error
" 2 -> ASN1 XER printf on and ASN1 debug on"
}
...
...
@@ -70,6 +71,7 @@ function main()
local
-i
epc_local
=
0
local
-r
epc_default_config_file
=
"
$OPENAIR_TARGETS
/bin/epc.conf"
local
epc_config_file
=
$epc_default_config_file
local
MSC_DIR
=
"/tmp"
until
[
-z
"
$1
"
]
do
...
...
@@ -99,6 +101,19 @@ function main()
epc_local
=
1
shift
;
;;
-m
|
--mscgen
)
MSC_DIR
=
$2
# can omit file name if last arg on the line
if
[
-d
"
$MSC_DIR
"
]
;
then
echo
"setting mscgen log files to dir:
$MSC_DIR
"
run_mscgen
=
1
exe_arguments
=
"-m
$exe_arguments
"
shift
2
;
else
echo_error
"Mscgen log dir does not exist"
exit
-1
fi
;;
-v
|
--verbosity-level
)
local
verbosity_level
=
$2
echo
"setting verbosity level to:
$verbosity_level
"
...
...
@@ -125,6 +140,10 @@ function main()
epc_config_file
=
"
$OPENAIR_DIR
/targets/bin/epc.local.enb.conf"
fi
if
[
$run_mscgen
-eq
1
]
;
then
$SUDO
rm
-f
/tmp/openair.msc.
*
fi
exe_arguments
=
"-O
$epc_config_file
$exe_arguments
"
if
[
$run_gdb
-eq
0
]
;
then
...
...
@@ -138,6 +157,21 @@ function main()
cat
~/.gdb_mme_gw
gdb
-n
-x
~/.gdb_mme_gw
fi
if
[
$run_mscgen
-eq
1
]
;
then
cd
$MSC_DIR
last_created_file
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
$OPENAIR_DIR
/targets/SCRIPTS/msc_gen.py
sync
last_created_file2
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
if
[
x
"
$last_created_file
"
!=
x
"
$last_created_file2
"
]
;
then
if
[
-f
./
$last_created_file2
/oai_mscgen_page_0.png
]
;
then
command
-v
eog 2>/dev/null
&&
eog ./
$last_created_file2
/oai_mscgen_page_0.png
fi
fi
fi
}
...
...
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