RDMA/efa: Count mmap failures
Add a new stat that counts mmap failures, which might help when debugging different issues. Link: https://lore.kernel.org/r/20200420062213.44577-3-galpress@amazon.com Reviewed-by: Firas JahJah <firasj@amazon.com> Reviewed-by: Yossi Leybovich <sleybo@amazon.com> Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
b2ea69b3b4
commit
eca5757f80
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
|
||||
/*
|
||||
* Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All rights reserved.
|
||||
* Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _EFA_H_
|
||||
@@ -40,6 +40,7 @@ struct efa_sw_stats {
|
||||
atomic64_t reg_mr_err;
|
||||
atomic64_t alloc_ucontext_err;
|
||||
atomic64_t create_ah_err;
|
||||
atomic64_t mmap_err;
|
||||
};
|
||||
|
||||
/* Don't use anything other than atomic64 */
|
||||
|
Reference in New Issue
Block a user