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
0174ee10
Commit
0174ee10
authored
Jun 02, 2021
by
Adam Wujek
Committed by
Adam Wujek
Sep 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: add dump of rt_opts from pp_globals
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
b065e222
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
dump_mem_ppsi_wrpc.c
tools/dump_mem_ppsi_wrpc.c
+34
-0
No files found.
tools/dump_mem_ppsi_wrpc.c
View file @
0174ee10
...
...
@@ -34,6 +34,33 @@ struct dump_info dump_ppsi_info[] = {
DUMP_FIELD
(
pointer
,
global_ext_data
),
#undef DUMP_STRUCT
#define DUMP_STRUCT struct pp_runtime_opts
/* Horrible typedef */
DUMP_HEADER
(
"pp_runtime_opts"
),
DUMP_FIELD
(
uint32_t
,
updated_fields_mask
),
DUMP_FIELD
(
int
,
clock_quality_clockClass
),
// ClockQuality.clockClass
DUMP_FIELD
(
int
,
clock_quality_clockAccuracy
),
// ClockQuality.clockAccuracy
DUMP_FIELD
(
int
,
clock_quality_offsetScaledLogVariance
),
// ClockQuality.offsetScaledLogVariance
DUMP_FIELD
(
int
,
timeSource
),
// timePropertiesDS_t.timeSource
DUMP_FIELD
(
yes_no_Boolean
,
ptpTimeScale
),
// timePropertiesDS_t.timeScale
DUMP_FIELD
(
yes_no_Boolean
,
frequencyTraceable
),
// timePropertiesDS_t.frequencyTraceable
DUMP_FIELD
(
yes_no_Boolean
,
timeTraceable
),
// timePropertiesDS_t.timeTraceable
DUMP_FIELD
(
Integer32
,
ttl
),
DUMP_FIELD
(
int
,
flags
),
/* see below */
DUMP_FIELD
(
Integer16
,
ap
),
DUMP_FIELD
(
Integer16
,
ai
),
DUMP_FIELD
(
Integer16
,
s
),
DUMP_FIELD
(
int
,
priority1
),
DUMP_FIELD
(
int
,
priority2
),
DUMP_FIELD
(
int
,
domainNumber
),
DUMP_FIELD
(
int
,
ptpPpsThresholdMs
),
DUMP_FIELD
(
int
,
gmDelayToGenPpsSec
),
DUMP_FIELD
(
yes_no_Boolean
,
externalPortConfigurationEnabled
),
DUMP_FIELD
(
yes_no_Boolean
,
slaveOnly
),
DUMP_FIELD
(
yes_no_Boolean
,
forcePpsGen
),
DUMP_FIELD
(
yes_no_Boolean
,
ptpFallbackPpsGen
),
DUMP_FIELD
(
pointer
,
arch_opts
),
#undef DUMP_STRUCT
#define DUMP_STRUCT defaultDS_t
/* Horrible typedef */
...
...
@@ -382,6 +409,13 @@ void dump_mem_ppsi_wrpc(void *mapaddr, unsigned long ppg_off)
ds_off
=
ppg_off
;
/* dump global data sets */
tmp_off
=
wrpc_get_pointer
(
mapaddr
+
ds_off
,
"pp_globals"
,
"rt_opts"
);
if
(
tmp_off
)
{
prefix
=
"ppsi.rt_opts"
;
printf
(
"%s at 0x%lx
\n
"
,
prefix
,
tmp_off
);
dump_many_fields
(
mapaddr
+
tmp_off
,
"pp_runtime_opts"
,
prefix
);
}
tmp_off
=
wrpc_get_pointer
(
mapaddr
+
ds_off
,
"pp_globals"
,
"defaultDS"
);
if
(
tmp_off
)
{
prefix
=
"ppsi.defaultDS"
;
...
...
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