Commit a72498ca authored by Adam Wujek's avatar Adam Wujek

tools/wrs_dump_shmem_ppsi: add dump of ppi[]->tmo_cfg

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 03cb82b6
......@@ -297,7 +297,7 @@ struct dump_info ppi_info [] = {
DUMP_FIELD(TimeInterval,timestampCorrectionPortDS.semistaticLatency),
DUMP_FIELD(Enumeration8,externalPortConfigurationPortDS.desiredState),
//DUMP_FIELD(unsigned long timeouts[__PP_TO_ARRAY_SIZE]),
//DUMP_FIELD(unsigned long tmo_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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment