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
50
Issues
50
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
a72498ca
Commit
a72498ca
authored
Jul 01, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/wrs_dump_shmem_ppsi: add dump of ppi[]->tmo_cfg
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
03cb82b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
wrs_dump_shmem_ppsi.c
tools/wrs_dump_shmem_ppsi.c
+15
-1
No files found.
tools/wrs_dump_shmem_ppsi.c
View file @
a72498ca
...
...
@@ -297,7 +297,7 @@ struct dump_info ppi_info [] = {
DUMP_FIELD
(
TimeInterval
,
timestampCorrectionPortDS
.
semistaticLatency
),
DUMP_FIELD
(
Enumeration8
,
externalPortConfigurationPortDS
.
desiredState
),
//DUMP_FIELD(unsigned long t
imeouts[__PP_TO_ARRAY_SIZE]),
//DUMP_FIELD(unsigned long t
mo_cfg[PP_TO_COUNT]), /* dump separately */
DUMP_FIELD
(
UInteger16
,
recv_sync_sequence_id
),
//DUMP_FIELD(UInteger16 sent_seq[__PP_NR_MESSAGES_TYPES]),
DUMP_FIELD_SIZE
(
bina
,
received_ptp_header
,
sizeof
(
MsgHeader
)),
...
...
@@ -320,6 +320,14 @@ struct dump_info ppi_info [] = {
DUMP_FIELD
(
unsigned_long
,
ptp_rx_count
),
};
#undef DUMP_STRUCT
#define DUMP_STRUCT timeOutInstCnt_t
struct
dump_info
timeouts_info
[]
=
{
DUMP_FIELD
(
int
,
which_rand
),
DUMP_FIELD
(
int
,
initValueMs
),
DUMP_FIELD
(
unsigned_long
,
tmo
),
};
#if CONFIG_HAS_EXT_WR == 1
#undef DUMP_STRUCT
#define DUMP_STRUCT struct wr_dsport
...
...
@@ -428,6 +436,7 @@ int dump_ppsi_mem(struct wrs_shm_head *head)
for
(
i
=
0
;
i
<
ppg
->
nlinks
;
i
++
)
{
struct
pp_instance
*
ppi
=
pp_instances
+
i
;
int
tmo_i
;
sprintf
(
prefix
,
"ppsi.inst.%d.info"
,
i
);
dump_many_fields
(
ppi
,
ppi_info
,
ARRAY_SIZE
(
ppi_info
),
prefix
);
...
...
@@ -442,6 +451,11 @@ int dump_ppsi_mem(struct wrs_shm_head *head)
}
}
for
(
tmo_i
=
0
;
tmo_i
<
PP_TO_COUNT
;
tmo_i
++
)
{
sprintf
(
prefix
,
"ppsi.inst.%d.tmo_cfgx[%d]"
,
i
,
tmo_i
);
dump_many_fields
(
&
ppi
->
tmo_cfg
[
tmo_i
],
timeouts_info
,
ARRAY_SIZE
(
timeouts_info
),
prefix
);
}
#if CONFIG_HAS_EXT_L1SYNC == 1
sprintf
(
prefix
,
"ppsi.inst.%d.l1sync_portDS"
,
i
);
if
(
ppi
->
protocol_extension
==
PPSI_EXT_L1S
)
{
...
...
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