Message ID | 20190317195950.2991-1-ira.weiny@intel.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6AE326C2 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 18 Mar 2019 04:01:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44C6B28A2E for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 18 Mar 2019 04:01:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37F6D28A7C; Mon, 18 Mar 2019 04:01:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DATE_IN_PAST_06_12, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C66F428A2E for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 18 Mar 2019 04:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725918AbfCREBO (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 18 Mar 2019 00:01:14 -0400 Received: from mga04.intel.com ([192.55.52.120]:60030 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbfCREBO (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Mon, 18 Mar 2019 00:01:14 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Mar 2019 21:01:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,492,1544515200"; d="scan'208";a="135163806" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga007.fm.intel.com with ESMTP; 17 Mar 2019 21:01:13 -0700 From: ira.weiny@intel.com To: Jason Gunthorpe <jgg@ziepe.ca>, Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@redhat.com>, linux-rdma@vger.kernel.org, Ira Weiny <ira.weiny@intel.com> Subject: [PATCH V6 0/6] Add MAD stack trace points Date: Sun, 17 Mar 2019 12:59:44 -0700 Message-Id: <20190317195950.2991-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add MAD stack trace points
|
expand
|
From: Ira Weiny <ira.weiny@intel.com> Latest version merged comments from Steven Rostedt. Again we are leaving the snoop interface in and there is a sample eBPF which shows how one can further filter at the tracepoints to distill the information being traced. Changes for V6: Merge using the trace structe in create_mad_addr_info() Fixed version for TRACEPOINTS off Changes for V5: checkpatch cleanup Remove if statements and use calls in TP_fast_assign for cleaner trace code Changes for V4: Change dev_name to dev_index Changes for V3: Rebased on current RDMA for next Change license text to SPDX tag Change dev_name to string from array Reorder fields for more compact ring buffer utilization Use a defined roce address type for safer memcpy/memset Adjust BPF to new umad format Changes for v2: Update MAINTAINERS as indicated from Doug Now CC'ing the Tracing maintainers so they are aware of the additions Ira Weiny (6): IB/MAD: Add send path trace points IB/MAD: Add recv path trace point IB/MAD: Add agent trace points IB/UMAD: Add umad trace points IB/MAD: Add SMP details to MAD tracing BPF: Add sample code for new ib_umad tracepoint MAINTAINERS | 4 + drivers/infiniband/core/mad.c | 61 ++++- drivers/infiniband/core/user_mad.c | 7 + include/trace/events/ib_mad.h | 390 +++++++++++++++++++++++++++++ include/trace/events/ib_umad.h | 122 +++++++++ samples/bpf/Makefile | 3 + samples/bpf/ibumad_kern.c | 125 +++++++++ samples/bpf/ibumad_user.c | 122 +++++++++ 8 files changed, 833 insertions(+), 1 deletion(-) create mode 100644 include/trace/events/ib_mad.h create mode 100644 include/trace/events/ib_umad.h create mode 100644 samples/bpf/ibumad_kern.c create mode 100644 samples/bpf/ibumad_user.c