diff options
author | Santosh Pradhan <santosh.pradhan@ionos.com> | 2022-08-18 12:52:40 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2022-08-21 11:04:58 +0200 |
commit | c16762b7bf54d37ee441885279c4cd49e412ec5b (patch) | |
tree | 0afcf137d0ee3b8a80d92b4e8fcfc585ac19d601 /drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c | |
parent | RDMA/rtrs-clt: Add event tracing support (diff) | |
download | linux-c16762b7bf54d37ee441885279c4cd49e412ec5b.tar.xz linux-c16762b7bf54d37ee441885279c4cd49e412ec5b.zip |
RDMA/rtrs-srv: Add event tracing support
Add event tracing mechanism for following routines:
- send_io_resp_imm()
How to use:
1. Load the rtrs_server module
2. cd /sys/kernel/debug/tracing
3. If all the events need to be enabled:
echo 1 > events/rtrs_srv/enable
4. OR only speific routine/event needs to be enabled e.g.
echo 1 > events/rtrs_srv/send_io_resp_imm/enable
5. cat trace
6. Run some I/O workload which can trigger send_io_resp_imm()
Link: https://lore.kernel.org/r/20220818105240.110234-3-haris.iqbal@ionos.com
Signed-off-by: Santosh Pradhan <santosh.pradhan@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c')
-rw-r--r-- | drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c b/drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c new file mode 100644 index 000000000000..29ca59ceb0dd --- /dev/null +++ b/drivers/infiniband/ulp/rtrs/rtrs-srv-trace.c @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * RDMA Network Block Driver + * + * Copyright (c) 2022 1&1 IONOS SE. All rights reserved. + */ +#include "rtrs.h" +#include "rtrs-pri.h" +#include "rtrs-srv.h" + +/* + * We include this last to have the helpers above available for the trace + * event implementations. + */ +#define CREATE_TRACE_POINTS +#include "rtrs-srv-trace.h" |