lsfd: add 'm' flag representing "multiplexed by epoll_wait(2)" to XMODE column#2371
Merged
karelzak merged 3 commits intoutil-linux:masterfrom Jul 11, 2023
Merged
Conversation
…lumn Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…DE column
An example output:
$ ./lsfd -p 3101482 -Q '(FD > 2)'
COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME
test_mkfds 3101482 yamato 3 rw---- eventpoll anon_inodefs 15 106 tfds=4,5
test_mkfds 3101482 yamato 4 r----m CHR mem:8 23 8 /dev/random
test_mkfds 3101482 yamato 5 -w---m CHR mem:8 23 8 /dev/random
The fd 4 and 5 is multiplexed by 3, an evetpoll fd.
Therefore 'm' flags in XMODE column for fd 4 and 5 are set.
Just one character but 'm' may help users to understand the "IO structure"
of a process.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
95d9116 to
25729a3
Compare
Collaborator
|
What about also adding a MULTI column and printing the number of the multiplexing FD there? ;-) |
Member
Author
Thank you. Added the idea to #1418 (comment). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An example output:
The fd 4 and 5 is multiplexed by 3, an evetpoll fd.
Therefore 'm' flags in XMODE column for fd 4 and 5 are set.
Just one character but 'm' may help users to understand the "IO structure"
of a process.