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
promise
OpenXG-RAN
Commits
69f14c37
Commit
69f14c37
authored
May 12, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timelog
parent
944dad4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
common/utils/T/tracer/logger/Makefile
common/utils/T/tracer/logger/Makefile
+1
-1
common/utils/T/tracer/logger/logger.h
common/utils/T/tracer/logger/logger.h
+1
-0
common/utils/T/tracer/logger/timelog.c
common/utils/T/tracer/logger/timelog.c
+37
-0
No files found.
common/utils/T/tracer/logger/Makefile
View file @
69f14c37
CC
=
gcc
CC
=
gcc
CFLAGS
=
-Wall
-g
-pthread
-I
..
CFLAGS
=
-Wall
-g
-pthread
-I
..
OBJS
=
logger.o textlog.o framelog.o ttilog.o
OBJS
=
logger.o textlog.o framelog.o ttilog.o
timelog.o
logger.a
:
$(OBJS)
logger.a
:
$(OBJS)
ar cr logger.a
$(OBJS)
ar cr logger.a
$(OBJS)
...
...
common/utils/T/tracer/logger/logger.h
View file @
69f14c37
...
@@ -10,6 +10,7 @@ logger *new_textlog(void *event_handler, void *database,
...
@@ -10,6 +10,7 @@ logger *new_textlog(void *event_handler, void *database,
logger
*
new_ttilog
(
void
*
event_handler
,
void
*
database
,
logger
*
new_ttilog
(
void
*
event_handler
,
void
*
database
,
char
*
event_name
,
char
*
frame_varname
,
char
*
subframe_varname
,
char
*
event_name
,
char
*
frame_varname
,
char
*
subframe_varname
,
char
*
data_varname
,
int
convert_to_dB
);
char
*
data_varname
,
int
convert_to_dB
);
logger
*
new_timelog
(
void
*
event_handler
,
void
*
database
,
char
*
event_name
);
#include "view/view.h"
#include "view/view.h"
...
...
common/utils/T/tracer/logger/timelog.c
0 → 100644
View file @
69f14c37
#include "logger.h"
#include "logger_defs.h"
#include "event.h"
#include "database.h"
#include "handler.h"
#include <stdlib.h>
#include <string.h>
struct
timelog
{
struct
logger
common
;
};
static
void
_event
(
void
*
p
,
event
e
)
{
struct
timelog
*
l
=
p
;
int
i
;
for
(
i
=
0
;
i
<
l
->
common
.
vsize
;
i
++
)
l
->
common
.
v
[
i
]
->
append
(
l
->
common
.
v
[
i
],
e
.
sending_time
);
}
logger
*
new_timelog
(
event_handler
*
h
,
void
*
database
,
char
*
event_name
)
{
struct
timelog
*
ret
;
int
event_id
;
ret
=
calloc
(
1
,
sizeof
(
struct
timelog
));
if
(
ret
==
NULL
)
abort
();
ret
->
common
.
event_name
=
strdup
(
event_name
);
if
(
ret
->
common
.
event_name
==
NULL
)
abort
();
event_id
=
event_id_from_name
(
database
,
event_name
);
ret
->
common
.
handler_id
=
register_handler_function
(
h
,
event_id
,
_event
,
ret
);
return
ret
;
}
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