Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PolyORB-HI-C
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
PolyORB-HI-C
Commits
c803b3d3
Unverified
Commit
c803b3d3
authored
Nov 30, 2019
by
Jerome Hugues
Committed by
GitHub
Nov 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34 from bouazizrahma/master
the vcd file has the same name as the process to be executed
parents
dce0a6f3
a5f6dc4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/po_hi_utils.c
src/po_hi_utils.c
+4
-2
No files found.
src/po_hi_utils.c
View file @
c803b3d3
...
...
@@ -75,7 +75,7 @@ pthread_mutexattr_t __po_hi_vcd_mutex_attr;
#if __PO_HI_NB_PORTS > 0
extern
__po_hi_int8_t
*
__po_hi_gqueues_sizes
[
__PO_HI_NB_TASKS
];
extern
__po_hi_uint8_t
*
__po_hi_gqueues_used_size
[
__PO_HI_NB_TASKS
];
extern
__po_hi_
int8_t
__po_hi_gqueues_nb_ports
[
__PO_HI_NB_TASKS
];
extern
__po_hi_
port_id_t
__po_hi_gqueues_nb_ports
[
__PO_HI_NB_TASKS
];
#endif
void
__po_hi_instrumentation_vcd_init
()
...
...
@@ -88,6 +88,7 @@ void __po_hi_instrumentation_vcd_init ()
char
buf
[
1024
];
int
size_to_write
=
0
;
time_t
current_time
;
char
__po_hi_vcd_filename
[
100
];
if
(
VCD_state
==
VCD_UNCHECKED
)
{
VCD_state
=
NULL
==
getenv
(
"VCD_ENABLED"
)
?
VCD_DISABLED
:
VCD_ENABLED
;
...
...
@@ -108,7 +109,8 @@ void __po_hi_instrumentation_vcd_init ()
{
__DEBUGMSG
(
"[POHIC-INSTRUMENTATION] Could not get time
\n
"
);
}
__po_hi_vcd_file
=
open
(
"bench.vcd"
,
O_WRONLY
|
O_CREAT
|
O_SYNC
,
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
|
S_IROTH
);
sprintf
(
__po_hi_vcd_filename
,
"%s.vcd"
,
__PO_HI_MY_NODE_NAME
);
__po_hi_vcd_file
=
open
(
__po_hi_vcd_filename
,
O_WRONLY
|
O_CREAT
|
O_SYNC
,
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
|
S_IROTH
);
if
(
__po_hi_vcd_file
>
0
)
{
write
(
__po_hi_vcd_file
,
"$date
\n
"
,
6
);
...
...
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