IB/mad: Add kernel trace to umad/mad
Subsystems (2)
cover IB/mad: Add kernel trace to umad/mad
From: Ira Weiny <[email protected]>
This has mild testing and still has some FIXMEs etc. I'm submitting to help decide if we wish to remove the MAD snooping infrastructure.
I believe this to be a more efficient debugging mechanism as it is most always available (if debugfs is available) and should have limited performance impact when off.
Ira Weiny (5):
IB/MAD: add send path trace points
IB/MAD: add recv path trace point
IB/MAD Add agent trace points
IB/mad: Add umad trace points
IB/mad: Add SMP tracing
drivers/infiniband/core/mad.c | 72 +++++++ drivers/infiniband/core/user_mad.c | 5 + include/trace/events/ib_mad.h | 385 +++++++++++++++++++++++++++++++++++++ include/trace/events/ib_umad.h | 312 ++++++++++++++++++++++++++++++ 4 files changed, 774 insertions(+) create mode 100644 include/trace/events/ib_mad.h create mode 100644 include/trace/events/ib_umad.h
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 1/5 IB/MAD: add send path trace points
In reply to a message not in the archiveFrom: Ira Weiny <[email protected]>
--- drivers/infiniband/core/mad.c | 51 +++++++++++ include/trace/events/ib_mad.h | 191 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 include/trace/events/ib_mad.h
drivers/infiniband/core/mad.c +51 -0
@@ -48,6 +48,31 @@#include "opa_smi.h" #include "agent.h" +struct ib_mad_addr { +u16 dlid; +u8 sl; +u16 pkey; +u32 rqpn; +u32 rqkey; +}; +static void trace_create_mad_addr (struct ib_device *dev,u8 pnum, +struct ib_send_wr *wr, +struct ib_mad_addr *addr) +{ +struct ib_ah_attr attr; + +memset (&attr,0 ,sizeof (attr)); +ib_query_ah (wr->wr.ud.ah, &attr); + + addr->dlid = attr.dlid; + addr->sl = attr.sl; +ib_query_pkey (dev, pnum, wr->wr.ud.pkey_index, &addr->pkey); + addr->rqpn = wr->wr.ud.remote_qpn; + addr->rqkey = wr->wr.ud.remote_qkey; +} +#define CREATE_TRACE_POINTS +#include <trace/events/ib_mad.h> +MODULE_LICENSE ("Dual BSD/GPL" );MODULE_DESCRIPTION ("kernel IB MAD API" );MODULE_AUTHOR ("Hal Rosenstock" );
@@ -982,6 +1007,14 @@ int ib_send_mad(struct ib_mad_send_wr_private *mad_send_wr)spin_lock_irqsave (&qp_info->send_queue.lock, flags);if (qp_info->send_queue.count < qp_info->send_queue.max_active) { +if (trace_ib_mad_ib_send_mad_enabled ()) { +struct ib_mad_addr addr; + +trace_create_mad_addr (qp_info->port_priv->device, + qp_info->port_priv->port_num, + &mad_send_wr->send_wr, &addr); +trace_ib_mad_ib_send_mad (mad_send_wr, &addr); + } ret =ib_post_send (mad_agent->qp, &mad_send_wr->send_wr, &bad_send_wr); list = &qp_info->send_queue.list;
@@ -2226,6 +2259,8 @@ static void ib_mad_send_done_handler(struct ib_mad_port_private *port_priv, send_queue = mad_list->mad_queue; qp_info = send_queue->qp_info; +trace_ib_mad_send_done_handler (mad_send_wr, wc); + retry: ib_dma_unmap_single(mad_send_wr->send_buf.mad_agent->device, mad_send_wr->header_mapping,
@@ -2254,6 +2289,14 @@ retry:ib_mad_complete_send_wr (mad_send_wr, &mad_send_wc);if (queued_send_wr) { +if (trace_ib_mad_send_done_resend_enabled ()) { +struct ib_mad_addr addr; + +trace_create_mad_addr (qp_info->port_priv->device, + qp_info->port_priv->port_num, + &mad_send_wr->send_wr, &addr); +trace_ib_mad_send_done_resend (queued_send_wr, &addr); + } ret =ib_post_send (qp_info->qp, &queued_send_wr->send_wr, &bad_send_wr);if (ret) {
@@ -2312,6 +2355,14 @@ static void mad_error_handler(struct ib_mad_port_private *port_priv,struct ib_send_wr *bad_send_wr; mad_send_wr->retry =0 ; +if (trace_ib_mad_mad_error_handler_enabled ()) { +struct ib_mad_addr addr; + +trace_create_mad_addr (qp_info->port_priv->device, + qp_info->port_priv->port_num, + &mad_send_wr->send_wr, &addr); +trace_ib_mad_mad_error_handler (mad_send_wr, &addr); + } ret =ib_post_send (qp_info->qp, &mad_send_wr->send_wr, &bad_send_wr);if (ret)
include/trace/events/ib_mad.h new file +191 -0
191 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 2/5 IB/MAD: add recv path trace point
In reply to a message not in the archiveFrom: Ira Weiny <[email protected]>
--- drivers/infiniband/core/mad.c | 10 +++++++ include/trace/events/ib_mad.h | 63 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+)
drivers/infiniband/core/mad.c +10 -0
@@ -2051,6 +2051,16 @@ static void ib_mad_recv_done_handler(struct ib_mad_port_private *port_priv,if (!validate_mad ((const struct ib_mad_hdr *)recv->mad, qp_info, opa)) goto out; +if (trace_ib_mad_recv_done_handler_enabled ()) { +u16 pkey; + +ib_query_pkey (qp_info->port_priv->device, qp_info->port_priv->port_num, + wc->pkey_index, &pkey); + +trace_ib_mad_recv_done_handler (qp_info, wc, (struct ib_mad_hdr *)recv->mad, + pkey); + } + mad_size = recv->mad_size; response =alloc_mad_private (mad_size,GFP_KERNEL );if (!response) {
include/trace/events/ib_mad.h +63 -0
69 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 3/5 IB/MAD Add agent trace points
In reply to a message not in the archiveFrom: Ira Weiny <[email protected]>
--- drivers/infiniband/core/mad.c | 3 +++ include/trace/events/ib_mad.h | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+)
drivers/infiniband/core/mad.c +3 -0
@@ -441,6 +441,7 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device,list_add_tail (&mad_agent_priv->agent_list, &port_priv->agent_list);spin_unlock_irqrestore (&port_priv->reg_lock, flags); +trace_ib_mad_create_agent (mad_agent_priv);return &mad_agent_priv->agent; error4:
@@ -465,6 +466,7 @@ static void unregister_mad_agent(struct ib_mad_agent_private *mad_agent_priv)unsigned long flags;/* Note that we could still be handling received MADs */ +trace_ib_mad_unregister_agent (mad_agent_priv);/* * Canceling all sends results in dropping received response
@@ -2112,6 +2114,7 @@ static void ib_mad_recv_done_handler(struct ib_mad_port_private *port_priv, mad_agent =find_mad_agent (port_priv, (const struct ib_mad_hdr *)recv->mad);if (mad_agent) { +trace_ib_mad_recv_done_agent (mad_agent);ib_mad_complete_recv (mad_agent, &recv->header.recv_wc);/* * recv is freed up in error cases in ib_mad_complete_recv
include/trace/events/ib_mad.h +41 -0
47 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 4/5 IB/mad: Add umad trace points
In reply to a message not in the archiveFrom: Ira Weiny <[email protected]>
This could potentially benefit from a read trace point.
--- drivers/infiniband/core/user_mad.c | 5 + include/trace/events/ib_umad.h | 312 +++++++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+) create mode 100644 include/trace/events/ib_umad.h
drivers/infiniband/core/user_mad.c +5 -0
@@ -125,6 +125,9 @@ struct ib_umad_packet {struct ib_user_mad mad; }; +#define CREATE_TRACE_POINTS +#include <trace/events/ib_umad.h> +static struct class *umad_class;static const dev_t base_dev =MKDEV (IB_UMAD_MAJOR ,IB_UMAD_MINOR_BASE );
@@ -481,6 +484,8 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,mutex_lock (&file->mutex); +trace_ib_umad_write (file, &packet->mad); + agent =__get_agent (file, packet->mad.hdr.id);if (!agent) { ret = -EINVAL ;
include/trace/events/ib_umad.h new file +312 -0
312 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 5/5 IB/mad: Add SMP tracing
In reply to a message not in the archiveFrom: Ira Weiny <[email protected]>
--- drivers/infiniband/core/mad.c | 8 ++++ include/trace/events/ib_mad.h | 90 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+)
drivers/infiniband/core/mad.c +8 -0
@@ -604,6 +604,8 @@ static int handle_outgoing_dr_smp(struct ib_mad_agent_private *mad_agent_priv,if (opa && smp->class_version ==OPA_SMP_CLASS_VERSION ) {u32 opa_drslid; +trace_ib_mad_handle_out_opa_smi (opa_smp); + if ((opa_get_smp_direction(opa_smp) ? opa_smp->route.dr.dr_dlid : opa_smp->route.dr.dr_slid) == OPA_LID_PERMISSIVE &&
@@ -629,6 +631,8 @@ static int handle_outgoing_dr_smp(struct ib_mad_agent_private *mad_agent_priv, opa_smi_check_local_returning_smp(opa_smp, device) == IB_SMI_DISCARD) goto out; } else { +trace_ib_mad_handle_out_ib_smi (smp ); + if ((ib_get_smp_direction(smp) ? smp->dr_dlid : smp->dr_slid) == IB_LID_PERMISSIVE && smi_handle_dr_smp_send(smp, rdma_cap_ib_switch(device), port_num) ==
@@ -1858,6 +1862,8 @@ static enum smi_action handle_ib_smi(const struct ib_mad_port_private *port_privenum smi_forward_action retsmi;struct ib_smp *smp = (struct ib_smp *)recv->mad; +trace_ib_mad_handle_ib_smi (smp); + if (smi_handle_dr_smp_recv(smp, rdma_cap_ib_switch(port_priv->device), port_num,
@@ -1943,6 +1949,8 @@ handle_opa_smi(struct ib_mad_port_private *port_priv,enum smi_forward_action retsmi;struct opa_smp *smp = (struct opa_smp *)recv->mad; +trace_ib_mad_handle_opa_smi (smp); + if (opa_smi_handle_dr_smp_recv(smp, rdma_cap_ib_switch(port_priv->device), port_num,
include/trace/events/ib_mad.h +90 -0
96 lines not on this page · raw message
Signature · 6 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
kbuild test robot
build botRe: [PATCH 4/5 RFC] IB/mad: Add umad trace points
In reply to a message not in the archivereproduce:
Hi Ira,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__sparse warnings: (new ones prefixed by >>)
>> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be64 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be16 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: cast to restricted __be32 >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] qpn include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] qpn >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] qkey include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] qkey >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] lid include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] lid >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] flow_label include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] flow_label >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] mad_status include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] status >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] class_specific include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] class_specific >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned long long [unsigned] [usertype] tid include/trace/events/ib_umad.h:42:1: got restricted __be64 [usertype] tid >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] attr_id include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] attr_id >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] attr_mod include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] attr_mod >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] qpn include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] qpn >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] qkey include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] qkey >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] lid include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] lid >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] flow_label include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] flow_label >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] mad_status include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] status >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] class_specific include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] class_specific >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned long long [unsigned] [usertype] tid include/trace/events/ib_umad.h:42:1: got restricted __be64 [usertype] tid >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_umad.h:42:1: expected unsigned short [unsigned] [usertype] attr_id include/trace/events/ib_umad.h:42:1: got restricted __be16 [usertype] attr_id >> include/trace/events/ib_umad.h:42:1: sparse: incorrect type in assignment (different base types)
include/trace/events/ib_umad.h:42:1: expected unsigned int [unsigned] [usertype] attr_mod
include/trace/events/ib_umad.h:42:1: got restricted __be32 [usertype] attr_mod
vim +42 include/trace/events/ib_umad.h
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 *
32 */
33
34 #undef TRACE_SYSTEM
35 #define TRACE_SYSTEM ib_umad
36
37 #if !defined(_TRACE_IB_UMAD_H) || defined(TRACE_HEADER_MULTI_READ)
38 #define _TRACE_IB_UMAD_H
39
40 #include <linux/tracepoint.h>
41
> 42 DECLARE_EVENT_CLASS(ib_umad_write_template,
43 TP_PROTO(struct ib_umad_file *file, struct ib_user_mad *mad),
44 TP_ARGS(file, mad),
45
46 TP_STRUCT__entry(
47 __array(char, dev_name, IB_DEVICE_NAME_MAX )
48 __field(u8, port_num )
49
50 __field(u32, id )---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
kbuild test robot
build botRe: [PATCH 1/5 RFC] IB/MAD: add send path trace points
In reply to a message not in the archivereproduce:
Hi Ira,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__sparse warnings: (new ones prefixed by >>)
>> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be64 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be32 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: cast to restricted __be16 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be64 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be16 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be16 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be16 include/trace/events/ib_mad.h:131:1: sparse: cast to restricted __be16 >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] status include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] status >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] class_specific include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] class_specific >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned long long [unsigned] [usertype] tid include/trace/events/ib_mad.h:43:1: got restricted __be64 [usertype] tid >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] attr_id include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] attr_id >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned int [unsigned] [usertype] attr_mod include/trace/events/ib_mad.h:43:1: got restricted __be32 [usertype] attr_mod >> include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:131:1: expected unsigned long long [unsigned] [usertype] atid include/trace/events/ib_mad.h:131:1: got restricted __be64 [usertype] tid include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:131:1: expected unsigned short [unsigned] [usertype] status include/trace/events/ib_mad.h:131:1: got restricted __be16 [usertype] status >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] status include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] status >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] class_specific include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] class_specific >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned long long [unsigned] [usertype] tid include/trace/events/ib_mad.h:43:1: got restricted __be64 [usertype] tid >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned] [usertype] attr_id include/trace/events/ib_mad.h:43:1: got restricted __be16 [usertype] attr_id >> include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment (different base types) include/trace/events/ib_mad.h:43:1: expected unsigned int [unsigned] [usertype] attr_mod include/trace/events/ib_mad.h:43:1: got restricted __be32 [usertype] attr_mod >> include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment (different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned long long [unsigned] [usertype] atid
include/trace/events/ib_mad.h:131:1: got restricted __be64 [usertype] tid
include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment (different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned short [unsigned] [usertype] status
include/trace/events/ib_mad.h:131:1: got restricted __be16 [usertype] status
vim +43 include/trace/events/ib_mad.h
37 #if !defined(_TRACE_IB_MAD_H) || defined(TRACE_HEADER_MULTI_READ)
38 #define _TRACE_IB_MAD_H
39
40 #include <linux/tracepoint.h>
41 #include <rdma/ib_mad.h>
42
> 43 DECLARE_EVENT_CLASS(ib_mad_send_template,
44 TP_PROTO(struct ib_mad_send_wr_private *wr, struct ib_mad_addr *addr),
45 TP_ARGS(wr, addr),
46
47 TP_STRUCT__entry(
48 __array(char, dev_name, IB_DEVICE_NAME_MAX )
49 __field(u8, port_num )
50 __field(u32, qp_num )
51 __field(void *, agent_priv )
52 __field(u64, atid )
53 __field(int, retries_left )
54 __field(int, max_retries )
55 __field(int, retry )
56 __field(unsigned long, timeout )
57 __field(u32, length )
58 __field(u8, base_version )
59 __field(u8, mgmt_class )
60 __field(u8, class_version )
61 __field(u8, method )
62 __field(u16, status )
63 __field(u16, class_specific )
64 __field(u64, tid )
65 __field(u16, attr_id )
66 __field(u32, attr_mod )
67 __field(u16, dlid )
68 __field(u8, sl )
69 __field(u16, pkey )
70 __field(u32, rqpn )
71 __field(u32, rqkey )
72 ),
73
74 TP_fast_assign(
75 memcpy(__entry->dev_name, wr->mad_agent_priv->agent.device->name, IB_DEVICE_NAME_MAX);
76 __entry->port_num = wr->mad_agent_priv->agent.port_num;
77 __entry->qp_num = wr->mad_agent_priv->qp_info->qp->qp_num;
78 __entry->agent_priv = wr->mad_agent_priv;
79 __entry->atid = be64_to_cpu(wr->tid);
80 __entry->max_retries = wr->max_retries;
81 __entry->retries_left = wr->retries_left;
82 __entry->retry = wr->retry;
83 __entry->timeout = wr->timeout;
84 __entry->length = wr->send_buf.hdr_len +
85 wr->send_buf.data_len;
86 __entry->base_version = ((struct ib_mad_hdr *)wr->send_buf.mad)->base_version;
87 __entry->mgmt_class = ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
88 __entry->class_version = ((struct ib_mad_hdr *)wr->send_buf.mad)->class_version;
89 __entry->method = ((struct ib_mad_hdr *)wr->send_buf.mad)->method;
90 __entry->status = ((struct ib_mad_hdr *)wr->send_buf.mad)->status;
91 __entry->class_specific = ((struct ib_mad_hdr *)wr->send_buf.mad)->class_specific;
92 __entry->tid = ((struct ib_mad_hdr *)wr->send_buf.mad)->tid;
93 __entry->attr_id = ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id;
94 __entry->attr_mod = ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_mod;
95 __entry->dlid = addr->dlid;
96 __entry->sl = addr->sl;
97 __entry->pkey = addr->pkey;
98 __entry->rqpn = addr->rqpn;
99 __entry->rqkey = addr->rqkey;
100 ),
101
102 TP_printk("%s:%d QP%d agent %p: " \
103 "atid 0x%llx; %d/%d retries(%d); timeout %lu length %d : " \
104 "base_ver 0x%x class 0x%x class_ver 0x%x method 0x%x " \
105 "status 0x%x class_specific 0x%x tid 0x%llx attr_id 0x%x attr_mod 0x%x " \
106 " => dlid 0x%x sl %d pkey 0x%x rpqn 0x%x rqpkey 0x%x",
107 __entry->dev_name, __entry->port_num, __entry->qp_num,
108 __entry->agent_priv, __entry->atid,
109 __entry->retries_left, __entry->max_retries,
110 __entry->retry, __entry->timeout, __entry->length,
111 __entry->base_version, __entry->mgmt_class, __entry->class_version,
112 __entry->method, be16_to_cpu(__entry->status),
113 be16_to_cpu(__entry->class_specific),
114 be64_to_cpu(__entry->tid), be16_to_cpu(__entry->attr_id),
115 be32_to_cpu(__entry->attr_mod),
116 be16_to_cpu(__entry->dlid), __entry->sl, __entry->pkey, __entry->rqpn,
117 __entry->rqkey
118 )
119 );
120
121 DEFINE_EVENT(ib_mad_send_template, ib_mad_mad_error_handler,
122 TP_PROTO(struct ib_mad_send_wr_private *wr, struct ib_mad_addr *addr),
123 TP_ARGS(wr, addr));
124 DEFINE_EVENT(ib_mad_send_template, ib_mad_ib_send_mad,
125 TP_PROTO(struct ib_mad_send_wr_private *wr, struct ib_mad_addr *addr),
126 TP_ARGS(wr, addr));
127 DEFINE_EVENT(ib_mad_send_template, ib_mad_send_done_resend,
128 TP_PROTO(struct ib_mad_send_wr_private *wr, struct ib_mad_addr *addr),
129 TP_ARGS(wr, addr));
130
> 131 TRACE_EVENT(ib_mad_send_done_handler, 132 TP_PROTO(struct ib_mad_send_wr_private *wr, struct ib_wc *wc),
133 TP_ARGS(wr, wc),
134
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: [PATCH 1/5 RFC] IB/MAD: add send path trace points
In reply to a message not in the archiveDo we have some auto checks running when we submit to Linux-rdma...
I hope it was clear that these patches are _half_ _baked_ and I only submitted them to let Hal, and the rest of you, know what I was thinking...
Ira
Quoted 269 lines
-----Original Message-----
From: lkp
Sent: Wednesday, September 30, 2015 11:34 PM
To: Weiny, Ira
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Hefty, Sean; jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org; [email protected]; [email protected]; Weiny, Ira
Subject: Re: [PATCH 1/5 RFC] IB/MAD: add send path trace pointsHi Ira,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
reproduce:
# apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__sparse warnings: (new ones prefixed by >>)
Quoted 24 lines
Quoted 24 lines
include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32Quoted 8 lines
Quoted 8 lines
include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be32include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:43:1: sparse: cast to restricted__be16
include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be64include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be16include/trace/events/ib_mad.h:131:1: sparse: cast to restricted__be16Quoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype] status
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype] statusQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype]class_specific
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype]class_specificQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned long long
[unsigned] [usertype] tid
include/trace/events/ib_mad.h:43:1: got restricted__be64[usertype] tidQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype]attr_id
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype]attr_idQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned int [unsigned]
[usertype]attr_mod
include/trace/events/ib_mad.h:43:1: got restricted__be32[usertype]attr_modQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned long long
[unsigned] [usertype] atid
include/trace/events/ib_mad.h:131:1: got restricted__be64[usertype] tid
include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment
(different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned short [unsigned]
[usertype] status
include/trace/events/ib_mad.h:131:1: got restricted__be16[usertype]
statusQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype] status
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype] statusQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype]class_specific
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype]class_specificQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned long long
[unsigned] [usertype] tid
include/trace/events/ib_mad.h:43:1: got restricted__be64[usertype] tidQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned short [unsigned]
[usertype]attr_id
include/trace/events/ib_mad.h:43:1: got restricted__be16[usertype]attr_idQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:43:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:43:1: expected unsigned int [unsigned]
[usertype]attr_mod
include/trace/events/ib_mad.h:43:1: got restricted__be32[usertype]attr_modQuoted 1 line
Quoted 1 line
include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment(different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned long long
[unsigned] [usertype] atid
include/trace/events/ib_mad.h:131:1: got restricted__be64[usertype] tid
include/trace/events/ib_mad.h:131:1: sparse: incorrect type in assignment
(different base types)
include/trace/events/ib_mad.h:131:1: expected unsigned short [unsigned]
[usertype] status
include/trace/events/ib_mad.h:131:1: got restricted__be16[usertype]
statusvim +43
include/trace/events/ib_mad.h37 #if !defined(_TRACE_IB_MAD_H) || defined(TRACE_HEADER_MULTI_READ) 38 #define _TRACE_IB_MAD_H 39 40 #include <linux/tracepoint.h> 41 #include <rdma/ib_mad.h> 42Quoted 1 line
43 DECLARE_EVENT_CLASS(ib_mad_send_template,
44 TP_PROTO(struct
ib_mad_send_wr_private*wr, structib_mad_addr*addr),45 TP_ARGS(wr, addr), 46 47 TP_STRUCT__entry( 48 __array(char, dev_name, IB_DEVICE_NAME_MAX ) 49 __field(u8, port_num ) 50 __field(u32, qp_num ) 51 __field(void *, agent_priv ) 52 __field(u64, atid ) 53 __field(int, retries_left ) 54 __field(int, max_retries ) 55 __field(int, retry ) 56 __field(unsigned long, timeout ) 57 __field(u32, length ) 58 __field(u8, base_version ) 59 __field(u8, mgmt_class ) 60 __field(u8, class_version ) 61 __field(u8, method ) 62 __field(u16, status ) 63 __field(u16, class_specific ) 64 __field(u64, tid ) 65 __field(u16, attr_id ) 66 __field(u32, attr_mod ) 67 __field(u16, dlid ) 68 __field(u8, sl ) 69 __field(u16, pkey ) 70 __field(u32, rqpn ) 71 __field(u32, rqkey ) 72 ), 73 74 TP_fast_assign( 75 memcpy(__entry->dev_name, wr->mad_agent_priv-Quoted 1 line
agent.device->name,IB_DEVICE_NAME_MAX);76 __entry->port_num = wr->mad_agent_priv-Quoted 1 line
agent.port_num;
77 __entry->qp_num = wr->mad_agent_priv->qp_info-Quoted 1 line
qp->qp_num;78 __entry->agent_priv = wr->mad_agent_priv; 79 __entry->atid = be64_to_cpu(wr->tid); 80 __entry->max_retries = wr->max_retries; 81 __entry->retries_left = wr->retries_left; 82 __entry->retry = wr->retry; 83 __entry->timeout = wr->timeout; 84 __entry->length = wr->send_buf.hdr_len + 85 wr->send_buf.data_len; 86 __entry->base_version = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->base_version;
87 __entry->mgmt_class = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->mgmt_class;
88 __entry->class_version = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->class_version;
89 __entry->method = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->method;
90 __entry->status = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->status;
91 __entry->class_specific = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->class_specific;
92 __entry->tid = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->tid;
93 __entry->attr_id = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->attr_id;
94 __entry->attr_mod = ((struct ib_mad_hdr *)wr-Quoted 1 line
send_buf.mad)->attr_mod;
95 __entry->dlid = addr->dlid; 96 __entry->sl = addr->sl; 97 __entry->pkey = addr->pkey; 98 __entry->rqpn = addr->rqpn; 99 __entry->rqkey = addr->rqkey; 100 ), 101 102 TP_printk("%s:%d QP%d agent %p: " \ 103 "atid 0x%llx; %d/%d retries(%d); timeout %lu length %d : " \ 104 "base_ver 0x%x class 0x%x class_ver 0x%x method 0x%x " \ 105 "status 0x%x class_specific 0x%x tid 0x%llx attr_id 0x%x attr_mod 0x%x " \ 106 " => dlid 0x%x sl %d pkey 0x%x rpqn 0x%x rqpkey0x%x",
107__entry->dev_name,__entry->port_num, __entry-Quoted 1 line
qp_num,108
__entry->agent_priv,__entry->atid,
109__entry->retries_left,__entry->max_retries,
110__entry->retry,__entry->timeout,__entry->length,
111__entry->base_version,__entry->mgmt_class, __entry-Quoted 1 line
class_version,112
__entry->method,be16_to_cpu(__entry->status),
113be16_to_cpu(__entry->class_specific),
114be64_to_cpu(__entry->tid), be16_to_cpu(__entry-Quoted 1 line
attr_id),115
be32_to_cpu(__entry->attr_mod),
116be16_to_cpu(__entry->dlid),__entry->sl, __entry-Quoted 1 line
pkey,
__entry->rqpn,117
__entry->rqkey
118 )
119 );
120
121 DEFINE_EVENT(ib_mad_send_template,ib_mad_mad_error_handler,
122 TP_PROTO(structib_mad_send_wr_private*wr, structib_mad_addr*addr),
123TP_ARGS(wr, addr));
124 DEFINE_EVENT(ib_mad_send_template,ib_mad_ib_send_mad,
125 TP_PROTO(structib_mad_send_wr_private*wr, structib_mad_addr*addr),
126TP_ARGS(wr, addr));
127 DEFINE_EVENT(ib_mad_send_template,ib_mad_send_done_resend,
128 TP_PROTO(structib_mad_send_wr_private*wr, structib_mad_addr*addr),129 TP_ARGS(wr, addr)); 130Quoted 1 line
131 TRACE_EVENT(ib_mad_send_done_handler,
Quoted 8 lines
132 TP_PROTO(struct
ib_mad_send_wr_private*wr, structib_wc
*wc),
133TP_ARGS(wr, wc),
134---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · On 10/1/2015 12:51 AM, [email protected] wrote:
From: Ira Weiny <[email protected]>
This has mild testing and still has some FIXMEs etc. I'm submitting to help decide if we wish to remove the MAD snooping infrastructure.
I think this has a ways to go before it has equivalent functionality to madeye.
I'm also not sure that this is a replacement for MAD snooping. There's some overlap but they are somewhat complementary right now.
IMO, at a minimum, the snooping interface should not be removed until this has equivalent functionality.
Quoted 2 lines
I believe this to be a more efficient debugging mechanism as it is most always available (if debugfs is available)
Snooping could be exposed to user space via user_mad and madeye could be ported to user space.
Quoted 1 line
and should have limited performance impact when off.
This is true for snooping too.
-- Hal
Quoted 8 lines
Ira Weiny (5):
IB/MAD: add send path trace points
IB/MAD: add recv path trace point
IB/MAD Add agent trace points
IB/mad: Add umad trace points
IB/mad: Add SMP tracing
Quoted 8 lines
drivers/infiniband/core/mad.c | 72 +++++++ drivers/infiniband/core/user_mad.c | 5 + include/trace/events/ib_mad.h | 385 +++++++++++++++++++++++++++++++++++++ include/trace/events/ib_umad.h | 312 ++++++++++++++++++++++++++++++ 4 files changed, 774 insertions(+) create mode 100644 include/trace/events/ib_mad.h create mode 100644 include/trace/events/ib_umad.h
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html