RDMA/restrack: Introduce statistic counter
Introduce statistic counter as a new resource. It allows a user to monitor specific objects (e.g., QPs) by binding to a counter. In some cases a user counter resource is created with task other then "current", because its creation is done as part of rdmatool call. Signed-off-by: Mark Zhang <markz@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
5600a410ea
commit
7ade1ff96c
@@ -42,6 +42,10 @@ enum rdma_restrack_type {
|
||||
* @RDMA_RESTRACK_CTX: Verbs contexts (CTX)
|
||||
*/
|
||||
RDMA_RESTRACK_CTX,
|
||||
/**
|
||||
* @RDMA_RESTRACK_COUNTER: Statistic Counter
|
||||
*/
|
||||
RDMA_RESTRACK_COUNTER,
|
||||
/**
|
||||
* @RDMA_RESTRACK_MAX: Last entry, used for array dclarations
|
||||
*/
|
||||
|
Reference in New Issue
Block a user