From patchwork Mon Dec 17 19:15:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 10734161 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 DD9571399 for ; Mon, 17 Dec 2018 19:15:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFD982A419 for ; Mon, 17 Dec 2018 19:15:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3B9E2A420; Mon, 17 Dec 2018 19:15:45 +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 6C8A92A419 for ; Mon, 17 Dec 2018 19:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732996AbeLQTPp (ORCPT ); Mon, 17 Dec 2018 14:15:45 -0500 Received: from mga11.intel.com ([192.55.52.93]:59036 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726914AbeLQTPo (ORCPT ); Mon, 17 Dec 2018 14:15:44 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2018 11:15:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,366,1539673200"; d="scan'208";a="102226392" Received: from phlsvsds.ph.intel.com ([10.228.164.149]) by orsmga008.jf.intel.com with ESMTP; 17 Dec 2018 11:15:43 -0800 Received: from phlsvsds.ph.intel.com (localhost.localdomain [127.0.0.1]) by phlsvsds.ph.intel.com (8.13.8/8.13.8) with ESMTP id wBHJFXsr018238; Mon, 17 Dec 2018 14:15:33 -0500 Received: (from iweiny@localhost) by phlsvsds.ph.intel.com (8.13.8/8.13.8/Submit) id wBHJFQS6018230; Mon, 17 Dec 2018 14:15:26 -0500 X-Authentication-Warning: phlsvsds.ph.intel.com: iweiny set sender to ira.weiny@intel.com using -f From: ira.weiny@intel.com To: linux-rdma@vger.kernel.org Cc: Doug Ledford , Jason Gunthorpe , Alexei Starovoitov , Daniel Borkmann , Hal Rosenstock , Ira Weiny Subject: [RDMA for-next 0/6] Add MAD stack trace points Date: Mon, 17 Dec 2018 14:15:18 -0500 Message-Id: <1545074124-18185-1-git-send-email-ira.weiny@intel.com> X-Mailer: git-send-email 1.8.2.3 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 A while ago I wrote these patches for MAD stack tracing. At the time I was proposing to remove the snoop interface.[1] For this submission I'd like to propose adding the tracing and leave the snoop interface in. While I still don't see a need for the snoop interface, I'm no longer advocating getting rid of it as the functionality of these patches is different. In addition I wrote a sample eBPF which shows how one can further filter at the tracepoints to distill the information being traced. I don't know if this should be submitted through another tree or if it is ok to take though linux-rdma? Ira [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 drivers/infiniband/core/mad.c | 95 ++++++++- drivers/infiniband/core/user_mad.c | 7 + include/trace/events/ib_mad.h | 391 +++++++++++++++++++++++++++++++++++++ include/trace/events/ib_umad.h | 140 +++++++++++++ samples/bpf/Makefile | 3 + samples/bpf/ibumad_kern.c | 123 ++++++++++++ samples/bpf/ibumad_user.c | 120 ++++++++++++ 7 files changed, 878 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