From patchwork Mon Feb 11 15:14:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 10806087 Return-Path: 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 90ACE922 for ; Mon, 11 Feb 2019 15:15:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A3552A98A for ; Mon, 11 Feb 2019 15:15:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 694892A97C; Mon, 11 Feb 2019 15:15:25 +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=-7.9 required=2.0 tests=BAYES_00,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 081E92A97C for ; Mon, 11 Feb 2019 15:15:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730406AbfBKPPX (ORCPT ); Mon, 11 Feb 2019 10:15:23 -0500 Received: from mga01.intel.com ([192.55.52.88]:38268 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391117AbfBKPPW (ORCPT ); Mon, 11 Feb 2019 10:15:22 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 07:15:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,359,1544515200"; d="scan'208";a="123595470" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga008.fm.intel.com with ESMTP; 11 Feb 2019 07:15:22 -0800 From: ira.weiny@intel.com To: linux-rdma@vger.kernel.org Cc: Hal Rosenstock , Doug Ledford , Jason Gunthorpe , Steven Rostedt , Ingo Molnar , Alexei Starovoitov , Daniel Borkmann , Leon Romanovsky , Ira Weiny Subject: [RDMA for-next V4 0/6] Add MAD stack trace points Date: Mon, 11 Feb 2019 07:14:57 -0800 Message-Id: <20190211151503.16434-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1545074124-18185-1-git-send-email-ira.weiny@intel.com> References: <1545074124-18185-1-git-send-email-ira.weiny@intel.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ira Weiny I've been pretty busy with some personal issues but I finally got some time to rework a V4 of this series. V4 converts dev_name to dev_index to ensure traces are consistently tagged with the same "device identifier". I believe with this change I have addressed all the comments. 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 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 [1] https://www.spinics.net/lists/linux-rdma/msg29109.html 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 | 95 +++++++- drivers/infiniband/core/user_mad.c | 7 + include/trace/events/ib_mad.h | 362 +++++++++++++++++++++++++++++ include/trace/events/ib_umad.h | 112 +++++++++ samples/bpf/Makefile | 3 + samples/bpf/ibumad_kern.c | 123 ++++++++++ samples/bpf/ibumad_user.c | 120 ++++++++++ 8 files changed, 825 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