Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
732bc497
Commit
732bc497
authored
Jun 28, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reproduce bug, timeout overflow
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
03cb82b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
unix-time.c
time-unix/unix-time.c
+7
-0
wrs_dump_shmem_ppsi.c
tools/wrs_dump_shmem_ppsi.c
+20
-1
No files found.
time-unix/unix-time.c
View file @
732bc497
...
...
@@ -273,10 +273,17 @@ static unsigned long unix_calc_timeout(struct pp_instance *ppi, int millisec)
{
struct
timespec
now
;
uint64_t
now_ms
;
static
uint64_t
extra_offset
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
now
);
now_ms
=
1000LL
*
now
.
tv_sec
+
now
.
tv_nsec
/
1000
/
1000
;
if
(
!
extra_offset
)
{
pp_printf
(
"%s: old now %10ld %10lld
\n
"
,
__func__
,
(
unsigned
long
)
now_ms
,
now_ms
);
extra_offset
=
((
uint64_t
)
1
<<
32
)
-
now_ms
-
1000LL
*
60
*
3
;
// one minute
}
now_ms
+=
extra_offset
;
pp_printf
(
"%s %10ld %10lld
\n
"
,
__func__
,
(
unsigned
long
)
now_ms
,
now_ms
);
return
now_ms
+
millisec
;
}
...
...
tools/wrs_dump_shmem_ppsi.c
View file @
732bc497
...
...
@@ -296,7 +296,26 @@ struct dump_info ppi_info [] = {
DUMP_FIELD
(
TimeInterval
,
timestampCorrectionPortDS
.
messageTimestampPointLatency
),
DUMP_FIELD
(
TimeInterval
,
timestampCorrectionPortDS
.
semistaticLatency
),
DUMP_FIELD
(
Enumeration8
,
externalPortConfigurationPortDS
.
desiredState
),
// timeOutInstCnt_t tmo_cfg[PP_TO_COUNT];
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
0
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
0
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
1
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
1
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
2
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
2
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
3
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
3
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
4
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
4
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
5
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
5
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
6
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
6
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
7
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
7
].
tmo
),
DUMP_FIELD
(
unsigned_long
,
tmo_cfg
[
8
].
tmo
),
DUMP_FIELD
(
int
,
tmo_cfg
[
8
].
tmo
),
//DUMP_FIELD(unsigned long timeouts[__PP_TO_ARRAY_SIZE]),
DUMP_FIELD
(
UInteger16
,
recv_sync_sequence_id
),
//DUMP_FIELD(UInteger16 sent_seq[__PP_NR_MESSAGES_TYPES]),
...
...
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