diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-05-07 15:27:05 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-05-11 15:48:57 -0400 |
commit | b6e717cbf28c8348d34be472f119b0ea82e5e8e7 (patch) | |
tree | fb67c17296f06ee035a85b3683122fe417a8cf20 | |
parent | 8dafcbee41e69add8f166efdc52ca5fa7d1fd8c0 (diff) |
xprtrdma: Prepare RPC/RDMA includes for server-side trace points
Clean up: Move #include <trace/events/rpcrdma.h> into source files,
similar to how it is done with trace/events/sunrpc.h.
Server-side trace points will be part of the rpcrdma subsystem,
just like the client-side trace points.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | net/sunrpc/xprtrdma/backchannel.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/fmr_ops.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/frwr_ops.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/module.c | 4 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 5 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma.c | 2 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/xprt_rdma.h | 2 |
9 files changed, 12 insertions, 6 deletions
diff --git a/net/sunrpc/xprtrdma/backchannel.c b/net/sunrpc/xprtrdma/backchannel.c index 47ebac949769..05c69aca3996 100644 --- a/net/sunrpc/xprtrdma/backchannel.c +++ b/net/sunrpc/xprtrdma/backchannel.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/sunrpc/svc_xprt.h> | 11 | #include <linux/sunrpc/svc_xprt.h> |
12 | 12 | ||
13 | #include "xprt_rdma.h" | 13 | #include "xprt_rdma.h" |
14 | #include <trace/events/rpcrdma.h> | ||
14 | 15 | ||
15 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 16 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
16 | # define RPCDBG_FACILITY RPCDBG_TRANS | 17 | # define RPCDBG_FACILITY RPCDBG_TRANS |
diff --git a/net/sunrpc/xprtrdma/fmr_ops.c b/net/sunrpc/xprtrdma/fmr_ops.c index 5cc68a824f45..08de7dad8abe 100644 --- a/net/sunrpc/xprtrdma/fmr_ops.c +++ b/net/sunrpc/xprtrdma/fmr_ops.c | |||
@@ -21,6 +21,7 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include "xprt_rdma.h" | 23 | #include "xprt_rdma.h" |
24 | #include <trace/events/rpcrdma.h> | ||
24 | 25 | ||
25 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 26 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
26 | # define RPCDBG_FACILITY RPCDBG_TRANS | 27 | # define RPCDBG_FACILITY RPCDBG_TRANS |
diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index c5743a0960be..f8312e30fade 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c | |||
@@ -73,6 +73,7 @@ | |||
73 | #include <linux/sunrpc/rpc_rdma.h> | 73 | #include <linux/sunrpc/rpc_rdma.h> |
74 | 74 | ||
75 | #include "xprt_rdma.h" | 75 | #include "xprt_rdma.h" |
76 | #include <trace/events/rpcrdma.h> | ||
76 | 77 | ||
77 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 78 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
78 | # define RPCDBG_FACILITY RPCDBG_TRANS | 79 | # define RPCDBG_FACILITY RPCDBG_TRANS |
diff --git a/net/sunrpc/xprtrdma/module.c b/net/sunrpc/xprtrdma/module.c index a762d192372b..d95ac0736b7f 100644 --- a/net/sunrpc/xprtrdma/module.c +++ b/net/sunrpc/xprtrdma/module.c | |||
@@ -13,9 +13,11 @@ | |||
13 | 13 | ||
14 | #include <asm/swab.h> | 14 | #include <asm/swab.h> |
15 | 15 | ||
16 | #define CREATE_TRACE_POINTS | ||
17 | #include "xprt_rdma.h" | 16 | #include "xprt_rdma.h" |
18 | 17 | ||
18 | #define CREATE_TRACE_POINTS | ||
19 | #include <trace/events/rpcrdma.h> | ||
20 | |||
19 | MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc."); | 21 | MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc."); |
20 | MODULE_DESCRIPTION("RPC/RDMA Transport"); | 22 | MODULE_DESCRIPTION("RPC/RDMA Transport"); |
21 | MODULE_LICENSE("Dual BSD/GPL"); | 23 | MODULE_LICENSE("Dual BSD/GPL"); |
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index e8adad33d0bb..f358d1e40a57 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c | |||
@@ -46,10 +46,11 @@ | |||
46 | * to the Linux RPC framework lives. | 46 | * to the Linux RPC framework lives. |
47 | */ | 47 | */ |
48 | 48 | ||
49 | #include "xprt_rdma.h" | ||
50 | |||
51 | #include <linux/highmem.h> | 49 | #include <linux/highmem.h> |
52 | 50 | ||
51 | #include "xprt_rdma.h" | ||
52 | #include <trace/events/rpcrdma.h> | ||
53 | |||
53 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 54 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
54 | # define RPCDBG_FACILITY RPCDBG_TRANS | 55 | # define RPCDBG_FACILITY RPCDBG_TRANS |
55 | #endif | 56 | #endif |
diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c index a49053296be4..357ba90c382d 100644 --- a/net/sunrpc/xprtrdma/svc_rdma.c +++ b/net/sunrpc/xprtrdma/svc_rdma.c | |||
@@ -1,5 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause | 1 | // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015-2018 Oracle. All rights reserved. | ||
3 | * Copyright (c) 2005-2006 Network Appliance, Inc. All rights reserved. | 4 | * Copyright (c) 2005-2006 Network Appliance, Inc. All rights reserved. |
4 | * | 5 | * |
5 | * This software is available to you under a choice of one of two | 6 | * This software is available to you under a choice of one of two |
@@ -47,7 +48,6 @@ | |||
47 | #include <linux/sunrpc/clnt.h> | 48 | #include <linux/sunrpc/clnt.h> |
48 | #include <linux/sunrpc/sched.h> | 49 | #include <linux/sunrpc/sched.h> |
49 | #include <linux/sunrpc/svc_rdma.h> | 50 | #include <linux/sunrpc/svc_rdma.h> |
50 | #include "xprt_rdma.h" | ||
51 | 51 | ||
52 | #define RPCDBG_FACILITY RPCDBG_SVCXPRT | 52 | #define RPCDBG_FACILITY RPCDBG_SVCXPRT |
53 | 53 | ||
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index cc1aad325496..3d1b27748aba 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include <linux/sunrpc/addr.h> | 54 | #include <linux/sunrpc/addr.h> |
55 | 55 | ||
56 | #include "xprt_rdma.h" | 56 | #include "xprt_rdma.h" |
57 | #include <trace/events/rpcrdma.h> | ||
57 | 58 | ||
58 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 59 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
59 | # define RPCDBG_FACILITY RPCDBG_TRANS | 60 | # define RPCDBG_FACILITY RPCDBG_TRANS |
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index fe5eaca2d197..a143c59aeb33 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
@@ -59,6 +59,7 @@ | |||
59 | #include <rdma/ib_cm.h> | 59 | #include <rdma/ib_cm.h> |
60 | 60 | ||
61 | #include "xprt_rdma.h" | 61 | #include "xprt_rdma.h" |
62 | #include <trace/events/rpcrdma.h> | ||
62 | 63 | ||
63 | /* | 64 | /* |
64 | * Globals/Macros | 65 | * Globals/Macros |
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h index 3d3b423fa9c1..3f856c71fa6f 100644 --- a/net/sunrpc/xprtrdma/xprt_rdma.h +++ b/net/sunrpc/xprtrdma/xprt_rdma.h | |||
@@ -675,5 +675,3 @@ 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> | ||