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
e273fea7
Commit
e273fea7
authored
Nov 20, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrs_dump_shmem: print frgn_master list
parent
d39aa5ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
wrs_dump_shmem_ppsi.c
tools/wrs_dump_shmem_ppsi.c
+31
-1
No files found.
tools/wrs_dump_shmem_ppsi.c
View file @
e273fea7
...
...
@@ -63,6 +63,7 @@ struct dump_info dsp_info [] = {
DUMP_FIELD
(
ClockQuality
,
grandmasterClockQuality
),
DUMP_FIELD
(
UInteger8
,
grandmasterPriority1
),
DUMP_FIELD
(
UInteger8
,
grandmasterPriority2
),
DUMP_FIELD
(
UInteger8
,
newGrandmaster
),
};
#undef DUMP_STRUCT
...
...
@@ -199,6 +200,24 @@ struct dump_info portDS_info [] = {
DUMP_FIELD
(
Boolean
,
masterOnly
)
};
#undef DUMP_STRUCT
#define DUMP_STRUCT struct pp_frgn_master
struct
dump_info
dsfm_info
[]
=
{
DUMP_FIELD
(
PortIdentity
,
sourcePortIdentity
),
DUMP_FIELD
(
PortIdentity
,
receivePortIdentity
),
DUMP_FIELD
(
ClockQuality
,
grandmasterClockQuality
),
DUMP_FIELD
(
ClockIdentity
,
grandmasterIdentity
),
DUMP_FIELD
(
UInteger8
,
grandmasterPriority1
),
DUMP_FIELD
(
UInteger8
,
grandmasterPriority2
),
DUMP_FIELD_SIZE
(
UInteger8
,
flagField
,
2
),
DUMP_FIELD
(
Enumeration8
,
timeSource
),
DUMP_FIELD
(
UInteger16
,
sequenceId
),
DUMP_FIELD
(
UInteger16
,
stepsRemoved
),
DUMP_FIELD
(
Integer16
,
currentUtcOffset
),
DUMP_FIELD
(
Boolean
,
qualified
),
DUMP_FIELD
(
unsigned_long
,
lastAnnounceMsgMs
),
};
#undef DUMP_STRUCT
#define DUMP_STRUCT struct pp_instance
struct
dump_info
ppi_info
[]
=
{
...
...
@@ -259,7 +278,7 @@ struct dump_info ppi_info [] = {
DUMP_FIELD
(
time
,
last_snt_time
),
DUMP_FIELD
(
UInteger16
,
frgn_rec_num
),
DUMP_FIELD
(
Integer16
,
frgn_rec_best
),
//DUMP_FIELD(struct pp_frgn_master frgn_master[PP_NR_FOREIGN_RECORDS]
),
DUMP_FIELD
(
pointer
,
frgn_master
),
DUMP_FIELD
(
pointer
,
portDS
),
DUMP_FIELD
(
Boolean
,
asymmetryCorrectionPortDS
.
enable
),
DUMP_FIELD
(
TimeInterval
,
asymmetryCorrectionPortDS
.
constantAsymmetry
),
...
...
@@ -399,6 +418,17 @@ int dump_ppsi_mem(struct wrs_shm_head *head)
sprintf
(
prefix
,
"ppsi.inst.%d.info"
,
i
);
dump_many_fields
(
ppi
,
ppi_info
,
ARRAY_SIZE
(
ppi_info
),
prefix
);
// Print foreign master list
if
(
ppi
->
frgn_rec_num
>
0
)
{
int
fm
;
for
(
fm
=
0
;
fm
<
ppi
->
frgn_rec_num
&&
fm
<
PP_NR_FOREIGN_RECORDS
;
fm
++
)
{
sprintf
(
prefix
,
"ppsi.inst.%d.frgn_master[%d]"
,
i
,
fm
);
dump_many_fields
(
&
ppi
->
frgn_master
[
fm
],
dsfm_info
,
ARRAY_SIZE
(
dsfm_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