Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2115464pxa; Mon, 3 Aug 2020 07:53:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQYakpg1zcl+CSW5e2IT/hccQngODit9pnna7rDCqX8djcLhsAm9CSM1oPXTqla6eT68qU X-Received: by 2002:a17:906:27d7:: with SMTP id k23mr16624767ejc.74.1596466412985; Mon, 03 Aug 2020 07:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596466412; cv=none; d=google.com; s=arc-20160816; b=o5nABuOIufcNApfJYj3FNOS5R/idZClCdjCmneVAdUsvmj92d1gonCCWf5eGtIJibn /j7cFmWp54TkZiFykw2rTMjk682nx/HmpsMIkSrsGDQSs9Rhyxz2InzLx8Cf6ZrXEcLy qnx7IkgUKmEslDJhbL0EiezBY2HcgEGd9Z7kjcKvEHVRRQccWd3Nuqsy5ZZPXZV8yj8H srj+Q6Ol093TsoP++WfRG9r0iMfbV5QGWzyxmCRkLbYNz8H8TUoRBoNiO0GOPyx1xEZW AMrMe+HESJjB8GWJhKc2XHXzspU5bymVf0EANLTXgvMoUycrf3xFFOLRnv3CpspoTcxS mVJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=jSEcpjJOquc529ZwoycPhflNQKRcL97Z3GUPK/MTFhg=; b=nDNCkNoLMP7p9klMQoQvs0zqO4ojjhcblr+IaB2zPbmsWe+BKMIZNKSbFPeblEzdLH lffqr2HSLNe4SPNwOrRIZhZInF4T6RPEhnumvrD5hp0v82Jq2ykELjjGXZvVJglecyrB mLJRpMB0Y7u7XaUPa5+zItGM60k7blhN86iLEdf8pe7ifWSx6FkDaw6mKAnvO/NmVamC cwQRUuUkRzef+POcpe8AJIEKSkSds2kGruwLE1NMhsHOCUt/s58DXa18PgWL2T2nWwFy zzMwTI9J85ea785H26W9bfkY0qAsVWBPXhfjcZyJHXc04PrLGydoc4oB6v0ZWwXmF6Vb 79/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="NGJ+cGs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si11415738edl.141.2020.08.03.07.53.10; Mon, 03 Aug 2020 07:53:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="NGJ+cGs/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727791AbgHCOrp (ORCPT + 99 others); Mon, 3 Aug 2020 10:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgHCOrp (ORCPT ); Mon, 3 Aug 2020 10:47:45 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBCAFC06174A for ; Mon, 3 Aug 2020 07:47:44 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id r12so2190303qvx.20 for ; Mon, 03 Aug 2020 07:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=jSEcpjJOquc529ZwoycPhflNQKRcL97Z3GUPK/MTFhg=; b=NGJ+cGs/7Y5yanvxauvBQNlpaQtun8x5OXswBR95fjESI+Q1GyxIm26mBIJiQZlchx DnHpQPnaiAYiQeJ7fbILu6QdY5Rd11V8/qKJe4l/2w1iWVLomfjMRhY7F1HbDB+a88/v OxW7fJVYu/9qupGnZQbIDl8RQ39QYHWJjpj6Y7eEVD2A8NOnmSLcJvTqsh8RSUHTZPrm iB78LpIkLOgboZguy+rRN/6HLRUkZASiQtIdBkfmKC7u09IfxeH6wtHsiiiO6m7p/yy5 JixVWy5wqO/esbMdb7V3i86xLFulz50ivT2vhoOcOZ+NFnlgeqV1YkGRMJJ5EjFVX0il hJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=jSEcpjJOquc529ZwoycPhflNQKRcL97Z3GUPK/MTFhg=; b=seGN8mqQn+BmqVaLnL5vQaZjrJ/w8eUCG/wRy9gsNBc8ZFI2AoSi5hMqsAwNTaNXBM OlhZxcO99jQuHidPo3yjE+r7v2vP4Ge8wIlUbHvdLbHWl2imz4Qmzu0N4+qdo0JN5Wn1 RDbJCQ+P3E3poLzuPYIjSVcgdyOp1GO9Qw0RSkd7r1b+2UKmb3zDGF1nnux3FQV1mPTd dQ9h7lV+D7L1DHleZAoxX5K1lFdCRGuCRnogr2QFm64p3ubYvoHiNvmacpM8/cmB/I7L fJ97H7tQneRqyMKke+vL1aIQ8HTBfTpaD7AEf/pN0FohR217zZu11Oe/oPwC7pjSRTxP EIfw== X-Gm-Message-State: AOAM53111xWi1g/TvaKFYhrkij9j8Ovg8VZeMWjkBGefk2qfMN/XIRzs 6/psXXb50x+3CqnOZAiI4ckxe2dEUPeWt5HEpA== X-Received: by 2002:ad4:4482:: with SMTP id m2mr15332118qvt.102.1596466063346; Mon, 03 Aug 2020 07:47:43 -0700 (PDT) Date: Mon, 3 Aug 2020 14:47:17 +0000 Message-Id: <20200803144719.3184138-1-kaleshsingh@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog Subject: [PATCH 0/2] Per process tracking of dma buffers From: Kalesh Singh To: Jonathan Corbet , Sumit Semwal , Alexander Viro , Steven Rostedt , Ingo Molnar Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-fsdevel@vger.kernel.org, Suren Baghdasaryan , Hridya Valsaraju , Ioannis Ilkos , John Stultz , kernel-team@android.com, Kalesh Singh Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since debugfs doesn't have stable abi. This patch series enables per process accounting of dma buffers using trace events. Kalesh Singh (2): fs: Add fd_install file operation dmabuf/tracing: Add dma-buf trace events Documentation/filesystems/vfs.rst | 5 ++ drivers/dma-buf/dma-buf.c | 29 ++++++++++++ fs/file.c | 3 ++ include/linux/fs.h | 1 + include/trace/events/dma_buf.h | 77 +++++++++++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 include/trace/events/dma_buf.h -- 2.28.0.163.g6104cc2f0b6-goog