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
d2bd09bb
Commit
d2bd09bb
authored
Jun 22, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function framelog_set_update_only_at_sf9 and update code about it
parent
8c328e00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
common/utils/T/tracer/logger/framelog.c
common/utils/T/tracer/logger/framelog.c
+10
-1
common/utils/T/tracer/logger/logger.h
common/utils/T/tracer/logger/logger.h
+1
-0
No files found.
common/utils/T/tracer/logger/framelog.c
View file @
d2bd09bb
...
@@ -21,6 +21,7 @@ struct framelog {
...
@@ -21,6 +21,7 @@ struct framelog {
*/
*/
int
skip_current
;
/* internal data for the skip mechanism */
int
skip_current
;
/* internal data for the skip mechanism */
int
skip_on
;
/* internal data for the skip mechanism */
int
skip_on
;
/* internal data for the skip mechanism */
int
update_only_at_sf9
;
};
};
static
void
_event
(
void
*
p
,
event
e
)
static
void
_event
(
void
*
p
,
event
e
)
...
@@ -76,7 +77,7 @@ static void _event(void *p, event e)
...
@@ -76,7 +77,7 @@ static void _event(void *p, event e)
l
->
buffer
[
subframe
*
nsamples
+
i
]
=
10
*
log10
(
1
.
0
+
(
float
)(
I
*
I
+
Q
*
Q
));
l
->
buffer
[
subframe
*
nsamples
+
i
]
=
10
*
log10
(
1
.
0
+
(
float
)(
I
*
I
+
Q
*
Q
));
}
}
if
(
subframe
==
9
)
if
(
l
->
update_only_at_sf9
==
0
||
subframe
==
9
)
for
(
i
=
0
;
i
<
l
->
common
.
vsize
;
i
++
)
for
(
i
=
0
;
i
<
l
->
common
.
vsize
;
i
++
)
l
->
common
.
v
[
i
]
->
append
(
l
->
common
.
v
[
i
],
l
->
x
,
l
->
buffer
,
l
->
blength
);
l
->
common
.
v
[
i
]
->
append
(
l
->
common
.
v
[
i
],
l
->
x
,
l
->
buffer
,
l
->
blength
);
}
}
...
@@ -91,6 +92,8 @@ logger *new_framelog(event_handler *h, void *database,
...
@@ -91,6 +92,8 @@ logger *new_framelog(event_handler *h, void *database,
ret
=
calloc
(
1
,
sizeof
(
struct
framelog
));
if
(
ret
==
NULL
)
abort
();
ret
=
calloc
(
1
,
sizeof
(
struct
framelog
));
if
(
ret
==
NULL
)
abort
();
ret
->
update_only_at_sf9
=
1
;
ret
->
common
.
event_name
=
strdup
(
event_name
);
ret
->
common
.
event_name
=
strdup
(
event_name
);
if
(
ret
->
common
.
event_name
==
NULL
)
abort
();
if
(
ret
->
common
.
event_name
==
NULL
)
abort
();
ret
->
database
=
database
;
ret
->
database
=
database
;
...
@@ -144,3 +147,9 @@ void framelog_set_skip(logger *_this, int skip_delay)
...
@@ -144,3 +147,9 @@ void framelog_set_skip(logger *_this, int skip_delay)
l
->
skip_current
=
0
;
l
->
skip_current
=
0
;
l
->
skip_on
=
0
;
l
->
skip_on
=
0
;
}
}
void
framelog_set_update_only_at_sf9
(
logger
*
_this
,
int
update_only_at_sf9
)
{
struct
framelog
*
l
=
_this
;
l
->
update_only_at_sf9
=
update_only_at_sf9
;
}
common/utils/T/tracer/logger/logger.h
View file @
d2bd09bb
...
@@ -15,6 +15,7 @@ logger *new_ticklog(void *event_handler, void *database,
...
@@ -15,6 +15,7 @@ logger *new_ticklog(void *event_handler, void *database,
char
*
event_name
,
char
*
frame_name
,
char
*
subframe_name
);
char
*
event_name
,
char
*
frame_name
,
char
*
subframe_name
);
void
framelog_set_skip
(
logger
*
_this
,
int
skip_delay
);
void
framelog_set_skip
(
logger
*
_this
,
int
skip_delay
);
void
framelog_set_update_only_at_sf9
(
logger
*
_this
,
int
update_only_at_sf9
);
#include "view/view.h"
#include "view/view.h"
...
...
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