GSI-CS-CO / saftlib

GSI Timing Service
GNU Lesser General Public License v3.0
5 stars 6 forks source link

saftbus: count dropped signals #121

Closed miree closed 3 months ago

miree commented 3 months ago

saftbusd drops signals are if the file descriptor for the signal (socketpair) is not ready to take data

This commit allows to see the number of dropped signals with "saftbus-ctl -s" for each saftbus service-object

$ saftbus-ctl -s
services:
  object-path                                   ID [owner] sig-fd/use-count/dropped-signals interface-names
  /de/gsi/saftlib                               2 [-1]d 11/1/0 13/1/0 SAFTd 
  /de/gsi/saftlib/tr0                           3 [-1]d 11/1/0 13/1/0 TimingReceiver BuildIdRom ECA ECA_Event ECA_TLU LM32Cluster Mailbox OpenDevice Reset TempSensor Watchdog WhiteRabbit 
  /de/gsi/saftlib/tr0/software/_1               4 [10]D 11/1/419 SoftwareActionSink ActionSink Owned 
  /de/gsi/saftlib/tr0/software/_1/_1025202362   5 [10]D 11/1/132 SoftwareCondition Condition Owned 
  /de/gsi/saftlib/tr0/software/_294             298 [12]D 13/1/0 SoftwareActionSink ActionSink Owned 
  /de/gsi/saftlib/tr0/software/_294/_1366405247 299 [12]D 13/1/0 SoftwareCondition Condition Owned 
  /saftbus                                      1 [-1]  15/1/0 Container 

for example here, 419 dropped signals: /de/gsi/saftlib/tr0/software/_1 4 [10]D 11/1/419 SoftwareActionSink ActionSink Owned zero dropped signals here: /de/gsi/saftlib/tr0/software/_294 298 [12]D 13/1/0 SoftwareActionSink ActionSink Owned