Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saftbus: count dropped signals #121

Merged
merged 1 commit into from
Jul 24, 2024
Merged

saftbus: count dropped signals #121

merged 1 commit into from
Jul 24, 2024

Conversation

miree
Copy link
Collaborator

@miree miree commented Jul 23, 2024

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

and display them in saftbus-ctl -s

signals are dropped if the file descriptor for the signal socketpair is not ready to take data
@alyxazon alyxazon merged commit 5be903d into master Jul 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants