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
35802ac0
Commit
35802ac0
authored
Sep 08, 2022
by
Sagar Parsawar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional changes to extract_prs_dump script
parent
f0692c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
common/utils/T/tracer/extract_prs_dumps.sh
common/utils/T/tracer/extract_prs_dumps.sh
+18
-10
No files found.
common/utils/T/tracer/extract_prs_dumps.sh
View file @
35802ac0
#!/bin/bash
:
${
1
?
"Usage:
$0
[-g num_gnb] [-n num_rsc] [-f filename]"
}
:
${
1
?
"Usage:
$0
[-g num_gnb] [-n num_rsc] [-f filename]
[-c count]
"
}
# Usage info
show_help
()
{
echo
"
Usage with script arguments: [-g num_gnb] [-n num_rsc] [-f filename]
Usage of script with arguments: [-g num_gnb] [-n num_rsc] [-f filename] [-c count]
-g num_gnb Number of active gNBs
-n num_rsc Number of PRS resources
-f filename T tracer recorded .raw filename
-g num_gnb Number of active gNBs
-n num_rsc Number of PRS resources
-f filename T tracer recorded .raw filename
-c count Number of dump instances to be extacted
For Example: ./extract_prs_dumps.sh -g 1 -n 8 -f fr2_64_prbs.raw
For Example: ./extract_prs_dumps.sh -g 1 -n 8 -f fr2_64_prbs.raw -c 100
-h
Help
-h
Help
"
exit
0
}
while
getopts
g:n:f:h flag
while
getopts
g:n:f:
c:
h flag
do
case
"
${
flag
}
"
in
g
)
num_gnb
=
${
OPTARG
}
;;
n
)
num_rsc
=
${
OPTARG
}
;;
f
)
file
=
${
OPTARG
}
;;
c
)
count
=
${
OPTARG
}
;;
h
)
show_help
;;
*
)
exit
-1
;;
esac
...
...
@@ -31,6 +33,7 @@ done
echo
"num_gnb:
$num_gnb
"
;
echo
"num_rsc:
$num_rsc
"
;
echo
"filename:
$file
"
;
echo
"count:
$count
"
;
for
((
i
=
0
;
i <
$num_gnb
;
i++
))
do
...
...
@@ -38,9 +41,14 @@ do
do
name
=
chF_gnb
${
i
}
_
${
j
}
.raw
echo
"Extracting
$name
"
./extract
-d
../T_messages.txt
$file
UE_PHY_DL_CHANNEL_ESTIMATE_FREQ chestF_t
-f
eNB_ID
$i
-f
rsc_id
$j
-o
$name
-count
100
./extract
-d
../T_messages.txt
$file
UE_PHY_DL_CHANNEL_ESTIMATE_FREQ chestF_t
-f
eNB_ID
$i
-f
rsc_id
$j
-o
$name
-count
$count
name
=
chT_gnb
${
i
}
_
${
j
}
.raw
echo
"Extracting
$name
"
./extract
-d
../T_messages.txt
$file
UE_PHY_DL_CHANNEL_ESTIMATE chest_t
-f
eNB_ID
$i
-f
rsc_id
$j
-o
$name
-count
100
./extract
-d
../T_messages.txt
$file
UE_PHY_DL_CHANNEL_ESTIMATE chest_t
-f
eNB_ID
$i
-f
rsc_id
$j
-o
$name
-count
$count
done
done
# zip the extracted dumps
name
=
prs_dumps.tgz
tar
cvzf
$name
chF_gnb
*
chT_gnb
*
echo
"created a zip file
$name
"
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