Skip to content

Commit

Permalink
XR SHOW CONTROLLERS FABRIC FIA ERRORS INGRESS: Redesign capture groups
Browse files Browse the repository at this point in the history
CHANGES:
- Change variable data to be a list
  * Allows for platforms with additional capacity to still work
  * Changed capture groups:
    `TO_XBAR_UC_CRC_$variable` -> `TO_XBAR_UNICAST_LOCATION` & `TO_XBAR_UNICAST_CRC_COUNT`
    `TO_XBAR_MC_CRC_$variable` -> `TO_XBAR_MULTICAST_LOCATION` & `TO_XBAR_MULTICAST_CRC_COUNT`

TEST FILES:
- Update parsed file to use lists with new capture group names
  • Loading branch information
jmcgill298 committed Jan 27, 2019
1 parent d04e8d3 commit 63d3e25
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
Value FIA (\S+)
Value CATEGORY (\S+)
Value TO_XBAR_UC_CRC_0 (\d+)
Value TO_XBAR_UC_CRC_1 (\d+)
Value TO_XBAR_UC_CRC_2 (\d+)
Value TO_XBAR_UC_CRC_3 (\d+)
Value TO_XBAR_MC_CRC_0 (\d+)
Value TO_XBAR_MC_CRC_1 (\d+)
Value TO_XBAR_MC_CRC_2 (\d+)
Value TO_XBAR_MC_CRC_3 (\d+)
Value List TO_XBAR_UNICAST_LOCATION (\d+)
Value List TO_XBAR_UNICAST_CRC_COUNT (\d+)
Value List TO_XBAR_MULTICAST_LOCATION (\d+)
Value List TO_XBAR_MULTICAST_CRC_COUNT (\d+)
Value NB_PA_READ_DATA_ERR (\d+)
Value PA_HEADER_ERR (\d+)
Value PA_CRC16_ERR (\d+)
Expand All @@ -21,14 +17,8 @@ Start
^\s*\*+\s+\S+ -> Continue.Record
^\s*\*+\s+${FIA}\s+\*+
^Category:\s+${CATEGORY}
^\s+To\s+Xbar\s+Uc\s+Crc-0\s+${TO_XBAR_UC_CRC_0}
^\s+To\s+Xbar\s+Uc\s+Crc-1\s+${TO_XBAR_UC_CRC_1}
^\s+To\s+Xbar\s+Uc\s+Crc-2\s+${TO_XBAR_UC_CRC_2}
^\s+To\s+Xbar\s+Uc\s+Crc-3\s+${TO_XBAR_UC_CRC_3}
^\s+To\s+Xbar\s+Mc\s+Crc-0\s+${TO_XBAR_MC_CRC_0}
^\s+To\s+Xbar\s+Mc\s+Crc-1\s+${TO_XBAR_MC_CRC_1}
^\s+To\s+Xbar\s+Mc\s+Crc-2\s+${TO_XBAR_MC_CRC_2}
^\s+To\s+Xbar\s+Mc\s+Crc-3\s+${TO_XBAR_MC_CRC_3}
^\s+To\s+Xbar\s+Uc\s+Crc-${TO_XBAR_UNICAST_LOCATION}\s+${TO_XBAR_UNICAST_CRC_COUNT}
^\s+To\s+Xbar\s+Mc\s+Crc-${TO_XBAR_MULTICAST_LOCATION}\s+${TO_XBAR_MULTICAST_CRC_COUNT}
^\s+nb\s+pa\s+read\s+data\s+err\s+${NB_PA_READ_DATA_ERR}
^\s+pa\s+header\s+err\s+${PA_HEADER_ERR}
^\s+pa\s+crc16\s+err\s+${PA_CRC16_ERR}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ parsed_sample:
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '99999'
to_xbar_mc_crc_0: '55'
to_xbar_mc_crc_1: '66'
to_xbar_mc_crc_2: '77'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '11'
to_xbar_uc_crc_1: '22'
to_xbar_uc_crc_2: '33'
to_xbar_uc_crc_3: '44'
to_xbar_unicast_location: ['0', '1', '2', '3']
to_xbar_unicast_crc_count: ['11', '22', '33', '44']
to_xbar_multicast_location: ['0', '1', '2', '3']
to_xbar_multicast_crc_count: ['55', '66', '77', '0']
- ab_overflow_req_lost: '0'
category: in_error-1
fia: FIA-1
Expand All @@ -29,14 +25,10 @@ parsed_sample:
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
to_xbar_unicast_location: ['0', '1', '2', '3']
to_xbar_unicast_crc_count: ['0', '0', '0', '0']
to_xbar_multicast_location: ['0', '1', '2', '3']
to_xbar_multicast_crc_count: ['0', '0', '0', '0']
- ab_overflow_req_lost: '0'
category: in_error-2
fia: FIA-2
Expand All @@ -47,14 +39,10 @@ parsed_sample:
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
to_xbar_unicast_location: ['0', '1', '2', '3']
to_xbar_unicast_crc_count: ['0', '0', '0', '0']
to_xbar_multicast_location: ['0', '1', '2', '3']
to_xbar_multicast_crc_count: ['0', '0', '0', '0']
- ab_overflow_req_lost: '0'
category: in_error-3
fia: FIA-3
Expand All @@ -65,11 +53,7 @@ parsed_sample:
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
to_xbar_unicast_location: ['0', '1', '2', '3']
to_xbar_unicast_crc_count: ['0', '0', '0', '0']
to_xbar_multicast_location: ['0', '1', '2', '3']
to_xbar_multicast_crc_count: ['0', '0', '0', '0']

0 comments on commit 63d3e25

Please sign in to comment.