Open lezsakdomi opened 4 months ago
Thanks for the suggestion.
I have some doubts about how useful that would be compared to the complexity of the implementation.
Note that implementation wise, it would also require changes in the interactive process select dialog (hot key F)
BTW. Did you try to achieve your goal by the regexp search option?
regexp search option?
I see no such option in the --batch
mode.
A workaround might be to run multiple iotop -p
instances, one for each TID, though that would tax the CPU.
Possibility to specify -p multiple times would be really nice.
I see on https://github.com/Tomas-M/iotop/blob/dd2dbd1c1b62b29d6f3ee67c2958e64e8fb23794/src/main.c#L303, that it just stores the passed PID, and on https://github.com/Tomas-M/iotop/blob/dd2dbd1c1b62b29d6f3ee67c2958e64e8fb23794/src/views.c#L367 that it makes a single comparison.
I'd like if this tool would store all the occurrences of -p, and store it in a linked list or in an array, and walk that array/ll in the filter1 function.