diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-01-20 11:16:34 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-01-23 09:44:25 -0500 |
commit | e48f083e19c9082352a07d0aef6a4ea0dc72dde0 (patch) | |
tree | 6728fe910eb7e137880bdf8add3c075cab7b72a2 | |
parent | 6b3a60ae7b531dc45c737579d91452b4ebda14a8 (diff) |
rpcrdma: infrastructure for static trace points in rpcrdma.ko
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | include/trace/events/rpcrdma.h | 16 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/module.c | 12 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 2 |
3 files changed, 25 insertions, 5 deletions
diff --git a/include/trace/events/rpcrdma.h b/include/trace/events/rpcrdma.h new file mode 100644 index 000000000000..8536d90bd286 --- /dev/null +++ b/include/trace/events/rpcrdma.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /* | ||
3 | * Copyright (c) 2017 Oracle. All rights reserved. | ||
4 | */ | ||
5 | #undef TRACE_SYSTEM | ||
6 | #define TRACE_SYSTEM rpcrdma | ||
7 | |||
8 | #if !defined(_TRACE_RPCRDMA_H) || defined(TRACE_HEADER_MULTI_READ) | ||
9 | #define _TRACE_RPCRDMA_H | ||
10 | |||
11 | #include <linux/tracepoint.h> | ||
12 | #include <trace/events/rdma.h> | ||
13 | |||
14 | #endif /* _TRACE_RPCRDMA_H */ | ||
15 | |||
16 | #include <trace/define_trace.h> | ||
diff --git a/net/sunrpc/xprtrdma/module.c b/net/sunrpc/xprtrdma/module.c index 560712bd9fa2..a762d192372b 100644 --- a/net/sunrpc/xprtrdma/module.c +++ b/net/sunrpc/xprtrdma/module.c | |||
@@ -1,18 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2015 Oracle. All rights reserved. | 2 | * Copyright (c) 2015, 2017 Oracle. All rights reserved. |
3 | */ | 3 | */ |
4 | 4 | ||
5 | /* rpcrdma.ko module initialization | 5 | /* rpcrdma.ko module initialization |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <linux/types.h> | ||
9 | #include <linux/compiler.h> | ||
8 | #include <linux/module.h> | 10 | #include <linux/module.h> |
9 | #include <linux/init.h> | 11 | #include <linux/init.h> |
10 | #include <linux/sunrpc/svc_rdma.h> | 12 | #include <linux/sunrpc/svc_rdma.h> |
11 | #include "xprt_rdma.h" | ||
12 | 13 | ||
13 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 14 | #include <asm/swab.h> |
14 | # define RPCDBG_FACILITY RPCDBG_TRANS | 15 | |
15 | #endif | 16 | #define CREATE_TRACE_POINTS |
17 | #include "xprt_rdma.h" | ||
16 | 18 | ||
17 | MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc."); | 19 | MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc."); |
18 | MODULE_DESCRIPTION("RPC/RDMA Transport"); | 20 | MODULE_DESCRIPTION("RPC/RDMA Transport"); |
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 28ae1fb1e2f3..a1ca1b638123 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h | |||
@@ -675,3 +675,5 @@ void xprt_rdma_bc_destroy(struct rpc_xprt *, unsigned int); | |||
675 | extern struct xprt_class xprt_rdma_bc; | 675 | extern struct xprt_class xprt_rdma_bc; |
676 | 676 | ||
677 | #endif /* _LINUX_SUNRPC_XPRT_RDMA_H */ | 677 | #endif /* _LINUX_SUNRPC_XPRT_RDMA_H */ |
678 | |||
679 | #include <trace/events/rpcrdma.h> | ||