Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openinterfaces5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kumar, Sunil Dr (Comp Sci & Elec Eng)
openinterfaces5G
Commits
fc911464
Commit
fc911464
authored
2 years ago
by
Chieh-Chun Chen
Committed by
Kumar, Sunil Dr (Comp Sci & Elec Eng)
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update E2 agent for FlexRIC dev 3a427b40
parent
c55be9d6
Branches
main
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
executables/agent_if/byte_array.h
+1
-0
1 addition, 0 deletions
executables/agent_if/byte_array.h
executables/agent_if/ie/kpm_data_ie.h
+19
-4
19 additions, 4 deletions
executables/agent_if/ie/kpm_data_ie.h
executables/nr-softmodem.c
+1
-1
1 addition, 1 deletion
executables/nr-softmodem.c
with
21 additions
and
5 deletions
executables/agent_if/byte_array.h
+
1
−
0
View file @
fc911464
...
@@ -53,6 +53,7 @@ typedef struct {
...
@@ -53,6 +53,7 @@ typedef struct {
memcpy(ba.buf, octet.buf, octet.size);\
memcpy(ba.buf, octet.buf, octet.size);\
ba.len = octet.size;
ba.len = octet.size;
byte_array_t
copy_byte_array
(
byte_array_t
src
);
byte_array_t
copy_byte_array
(
byte_array_t
src
);
void
free_byte_array
(
byte_array_t
ba
);
void
free_byte_array
(
byte_array_t
ba
);
...
...
This diff is collapsed.
Click to expand it.
executables/agent_if/ie/kpm_data_ie.h
+
19
−
4
View file @
fc911464
...
@@ -109,8 +109,14 @@ typedef struct adapter_LabelInfoItem_t {
...
@@ -109,8 +109,14 @@ typedef struct adapter_LabelInfoItem_t {
void
free_label_info
(
adapter_LabelInfoItem_t
*
l
);
void
free_label_info
(
adapter_LabelInfoItem_t
*
l
);
void
cp_label_info
(
adapter_LabelInfoItem_t
*
dst
,
adapter_LabelInfoItem_t
const
*
src
);
void
cp_label_info
(
adapter_LabelInfoItem_t
*
dst
,
adapter_LabelInfoItem_t
const
*
src
);
typedef
enum
{
KPM_V2_MEASUREMENT_TYPE_NAME
=
1
,
KPM_V2_MEASUREMENT_TYPE_ID
=
2
}
meas_type_e
;
typedef
struct
MeasInfo_t
{
typedef
struct
MeasInfo_t
{
enum
{
MeasurementType_NAME
=
1
,
MeasurementType_ID
=
2
}
meas
T
ype
;
meas_type_e
meas
_t
ype
;
adapter_MeasurementTypeName_t
measName
;
adapter_MeasurementTypeName_t
measName
;
adapter_MeasurementTypeID_t
measID
;
adapter_MeasurementTypeID_t
measID
;
adapter_LabelInfoItem_t
*
labelInfo
;
// list implemented as array having a maximum of 'maxnoofLabelInfo' items
adapter_LabelInfoItem_t
*
labelInfo
;
// list implemented as array having a maximum of 'maxnoofLabelInfo' items
...
@@ -124,6 +130,14 @@ typedef struct kpm_event_trigger_t {
...
@@ -124,6 +130,14 @@ typedef struct kpm_event_trigger_t {
unsigned
long
ms
;
// reporting period in milliseconds
unsigned
long
ms
;
// reporting period in milliseconds
}
kpm_event_trigger_t
;
}
kpm_event_trigger_t
;
typedef
enum
{
KPMV2_CELL_ID_CHOICE_NOTHING
=
0
,
KPMV2_CELL_ID_CHOICE_NR_CGI
,
KPMV2_CELL_ID_CHOICE_EUTRA_CGI
}
cell_global_id_t
;
/*******************************************************
/*******************************************************
* SEC 2. RIC Action Definition as per $8.2.1.2
* SEC 2. RIC Action Definition as per $8.2.1.2
*******************************************************/
*******************************************************/
...
@@ -153,12 +167,13 @@ typedef struct kpm_action_def_t
...
@@ -153,12 +167,13 @@ typedef struct kpm_action_def_t
MeasInfo_t
*
MeasInfo
;
MeasInfo_t
*
MeasInfo
;
// If cellGlobalIDtype == choice_NOTHING, the field 'cellGlobalID' in asn format will be NULL
// If cellGlobalIDtype == choice_NOTHING, the field 'cellGlobalID' in asn format will be NULL
enum
{
choice_NOTHING
,
choice_nR_CGI
,
choice_eUTRA_CGI
}
cell
G
lobal
IDtype
;
cell_global_id_t
cell
_g
lobal
_id
;
adapter_NRCellIdentity_t
nRCellIdentity
;
adapter_NRCellIdentity_t
nRCellIdentity
;
adapter_PLMNIdentity_t
pLMNIdentity
;
adapter_PLMNIdentity_t
pLMNIdentity
;
adapter_EUTRACellIdentity_t
eUTRACellIdentity
;
adapter_EUTRACellIdentity_t
eUTRACellIdentity
;
/*
/*
* XXX-extensions: below add all the info you might find in all the actions types .
* XXX-extensions: below add all the info you might find in all the actions types .
* Still missing some fields for action_def_2, action_def_3, action_def_4, action_def_5.
* Still missing some fields for action_def_2, action_def_3, action_def_4, action_def_5.
...
@@ -279,4 +294,4 @@ void free_kpm_func_def(kpm_func_def_t* src);
...
@@ -279,4 +294,4 @@ void free_kpm_func_def(kpm_func_def_t* src);
}
}
#endif
#endif
#endif
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
executables/nr-softmodem.c
+
1
−
1
View file @
fc911464
...
@@ -1042,7 +1042,7 @@ void read_kpm_sm(kpm_ind_data_t* data)
...
@@ -1042,7 +1042,7 @@ void read_kpm_sm(kpm_ind_data_t* data)
assert
(
msg
->
MeasInfo
!=
NULL
&&
"Memory exhausted"
);
assert
(
msg
->
MeasInfo
!=
NULL
&&
"Memory exhausted"
);
MeasInfo_t
*
info
=
&
msg
->
MeasInfo
[
0
];
MeasInfo_t
*
info
=
&
msg
->
MeasInfo
[
0
];
info
->
meas
T
ype
=
MeasurementType
_NAME
;
info
->
meas
_t
ype
=
KPM_V2_MEASUREMENT_TYPE
_NAME
;
char
*
measName
=
"PrbDlUsage"
;
char
*
measName
=
"PrbDlUsage"
;
info
->
measName
.
len
=
strlen
(
measName
);
info
->
measName
.
len
=
strlen
(
measName
);
info
->
measName
.
buf
=
malloc
(
strlen
(
measName
));
info
->
measName
.
buf
=
malloc
(
strlen
(
measName
));
...
...
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