dumping queue state

Steve Wise
2017-12-20T15:53:33Z

Hey,

I have a need to provide tools for customers to gather runtime state for an
rdma device. Say, when an application is stuck waiting for some completion
or other rdma event. This includes hw/fw state of course, and equally as
important, rdma object sw state. Is debugfs the correct way to export this
sw state? The data is quite large potentially; each QP, its structures, the
dma queue memory, etc. Ditto for CQs. Also MR state, etc etc. It seems
that would be overloading debugfs to me. Currently the hw/fw state is being
gathered via ethtool dump commands (--get-dump, --register-dump,
--eeprom-dump). I am considering using the ethtool --get-dump method for
the low level driver to also include dumping the rdma queue state for the
device. Is that a reasonable approach?

Any thoughts/suggestions?

Thanks in advance,

Steve.

---
This email has been checked for viruses by AVG.