- Mar 04, 2015
-
-
Adam Wujek authored
Update dump_shmem accordingly. Increment HAL_SHMEM_VERSION due to changes in shw_sfp_caldata structure. Still missing matching based on vendor name and part number. Update hal_shmem.h in ppsi Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove spaces from read SFP header -vendor_name -vendor_pn -vendor_serial Don't read SFP header twice at hal_port_insert_sfp in hal_port. Before header was read first in function shw_sfp_read_verify_header, then indirectly by shw_sfp_get_cal_data Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add to snmpd and MIB: -WR-SWITCH-MIB::ppsiDeltaTxM -WR-SWITCH-MIB::ppsiDeltaRxM -WR-SWITCH-MIB::ppsiDeltaTxS -WR-SWITCH-MIB::ppsiDeltaRxS Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update needed because wr_mon uses now shmem to get ppsi status. Note that is still uses ipc for enable/disable tracking. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Since there is no more parsing of wr_mon name field is not needed. All data are read from shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-update snmp do use ppsi's shmem -update WR-SWITCH-MIB.txt -update makefile -removed wr_mon parsing It looks like ppsi's servo state provided in servo_state_name is not current state but previous Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Double values printed by ipc with shmem to verify readings. IPC to be removed soon. No need do update snmp's part of wr_mon since it will be removed (snmp will use shmem directly). Include implementation of shmem locks for read. It was seen that phase setpoint read via shmem sometimes differs from value read via ipc. However it shmem's value is more recent. Assignment of ipc's cur_setpoint in ppsi's servo is done before setting to new value. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
dump_many_fields shall check if pointer to dump is valid. It is simpler than checking if all wrs_shm_follow were successful. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Dump entire struct wr_servo_state_t Add global_ext_data to pp_globals Remove temporary WRS_PPSI_SHMEM_VERSION Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
since this structure is included in ppsi.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Changes include: - lift of ppsi commit - temporarly define WRS_PPSI_SHMEM_VERSION in wrs_dump_shmem.c since dumper requires structure updates Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now by default wrs_dump_shmem prints only valid rtu entries. To dump all use "-a" parameter. Note that rtu has 2048 htab and 4096 vlan entries. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
At the end of pstats and ppsi tables extra item was printed. 0 or null as an output from function netsnmp_extract_iterator_context shall be interpreted as no more elements instead of element 0 as it was so far. Fixed ppsi and pstats tables. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Until now, ipc client was created in HAL to check if another HAL instance is running. It has been changed to use shmem for the same purpose. To prevent error from linker, order of linking libraries had to be changed. Additionally developer manual was updated. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update needed due to moving from rpc calls to shared memory. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Feb 19, 2015
-
-
Adam Wujek authored
Removed unused minipc calls: -check_running -reset_port -calibration_cmd Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Change waiting for shm lock. Until now, after read attempt there was usleep/sleep then check if data was read correctly. Now wait in sleep/usleep only on not consistent data read. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Using not compatible versions of shm data can produce unpredictable results. To be save always check version of shm after opening it. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
After moving from mimipc to shm, function halexp_client_init is not used. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove opening hal's shm in hal_client.c since it is not used further. Only caller of function halexp_client_try_connect (wr_phytool) opens shm anyway. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Read locks needed to have consistent data reads. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Needed to keep consistent reads from shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
In case there are all buckets full, rtu_fd_create_entry function returns error, but also should unload mutex. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove get_fd_list and get_vd_list from rtud's minipc since they're not used anymore. Rtud's clients use now shmem to get the same information. Remove helper functions from rtu_fd.c as not needed: -rtu_fd_lookup_htab_entry -rtu_vlan_entry_get -vlan_entry_rd Additionally following structures were removed as not needed: -rtudexp_fd_entry_t -rtudexp_fd_list_t -rtudexp_vd_entry_t -rtudexp_vd_list_t Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Part of a process to use shmem instead of minipc Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
All global data and most functions was made static. Moved functions' declarations from wrs_vlans.h to wrs_vlans.c. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now, rtu_stat will use rtud's shm to get vlan and htab entries instead of minipc Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 23, 2015
-
-
Adam Wujek authored
Print error when wrs_shm_follow is not successful in wrs_dump_shmem. Avoid segfaults. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
avoid including rtu.h by rtud clients Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
WRS_SHM_MAX_SIZE has to be increased because rtud data is bigger than 256KB vlan_tab is 81920 rtu_htab is 180224 rtud total data: 262,144+shm_header Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Add rtu_shmem_header to keep track of all rtu's data in shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Add "rtu_" to structure names in rtu_shmem.h and change all users. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move definitions of structures used in rtud's shm to rtu_shm.h in libwr. Move few more definitions to rtu_shm.h and update .h files relaying on moved structures/definitions. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-