Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2162368pxa; Mon, 3 Aug 2020 09:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr40R/r11G9ENRUqSJ87o8e9OjT8GcD8cCh7BZVtz8zwFG4NcpXSAFniSpcM4e6nbnkwpj X-Received: by 2002:a17:907:20b7:: with SMTP id pw23mr3014335ejb.148.1596470446519; Mon, 03 Aug 2020 09:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596470446; cv=none; d=google.com; s=arc-20160816; b=ufJEb5aDQrN8UpWdpqcSU72cX3S/UyCSPviM1xGAf8mOKl8C4SqJEvMBRAIkEb8lV8 WjFxd2xSgZCSZNQlGMRO/jaJ5TiW0dg+RQDuplFN70rmO8kzqkEgA9RubCrK7AOzIYVD sBbDge5oqrEdFQR2lV9e6ydZVhCnXUZLD+pLbd/B7KY/TQbgTshc0iVt6k8tR2bK+BfK xf3YgFGt+pw6OGwujOTElCTVIWnzFs8r2Q6zCnRuxYKjpoYM5iKPfaPfqqdBr9oo1DJk dFXSc+IQEOOcXDkk9n+JL/59/VHgrqSxesK1+TxpE7aIf2P+f6WFJ8UQ6q/5PC8+phoH QXhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AQC5OSI+ot4HICgMI1hBiF+Gos4KF9rtoTAXqBLWz5k=; b=GwOrae3IWAux7z/uTCBMmJL/MuoDm1iqDDOnYqqBLbX09bZrmiH9ZOm0WJvt+vSa9G lkUQO9sGGKltdGxbfdMbrJS1LjZbZOUqh6exIvHFrXibRw3bVILY6DvTQhJw9Nmalmh/ W+Qj8Lkiw553FtWKDzrBeVFwquyauLAnDpN5Nguu4XPfh9u25x5z+/JDKwwaVa50I5fi JjA+SX+V8FXmS5OUkVDFDuBs69ifqVS5ZWXvzZFDBSoRA20+tVeiV097epWez6Rrk0YN MXiMqUDuSMwj2/Qtg8bH/K9x6zf0T6Fh7f23tId57Nv5G+xPTZzZITlRcrzm5rTdzlVF exNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gP0hGxdZ; 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 ly18si3564698ejb.247.2020.08.03.09.00.23; Mon, 03 Aug 2020 09:00:46 -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=gP0hGxdZ; 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 S1728281AbgHCQAO (ORCPT + 99 others); Mon, 3 Aug 2020 12:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbgHCQAO (ORCPT ); Mon, 3 Aug 2020 12:00:14 -0400 Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 039BBC06179E for ; Mon, 3 Aug 2020 09:00:14 -0700 (PDT) Received: by mail-vk1-xa41.google.com with SMTP id i20so3335vkk.2 for ; Mon, 03 Aug 2020 09:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AQC5OSI+ot4HICgMI1hBiF+Gos4KF9rtoTAXqBLWz5k=; b=gP0hGxdZpv7oi/HJF0iairUbhXDSeECExkx/WUmvKbJIKYqRHFbhrSant0W/qarBAu pt2QS00SD0C3sScBrjjH8PuJSo/uiRusGI8NdinY72x5wOlbs+la767nkgtU1+AdO/4R sVgh/KH5EXT8KXDfD+VCxBTK4X1AEadmwBpBrMVvntYBujslfuoMPSdeAJPR+0zoXtmU az8f0YQ3IGNq2/+IKVQAVs5iYU/bcziJbdbgOWftXf0g+mybpPTS5/8EnV/nQwq4dSqm ZRV9gMwTdIcvKiJF/9J0XUaNMTR7Pm4yz/Nv7W/qKW98y0pV5r5ge3KKLHyEx2GZZhW8 O0Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AQC5OSI+ot4HICgMI1hBiF+Gos4KF9rtoTAXqBLWz5k=; b=GYnTm6lBWH8cTY6PZ59CmIIBa6ggKwQOXCpgWobzQGkZ8mPOkehtQuuXKgSveGrvj9 jBTW7VkAg+CcWGLAtIAwUTLkUEMfNI/UUbBHjgDmbrV+WBUmIuE1DOeMucYMTKsUzWaD bMRFInYZPYBFbTxUAOpeINsWvociUQZryxT/RWaAOT7DpP7/sDrzAskaRHxuRsEfXjfj XSWk/iosJnglaHPK5Rhc3OQ7xFuQbMx2flctnd6aZImy4KC7rdfLZ/sRG/fIWSCXslGW ivsKF5tTDmFj5uMBUjaMRyGhBduhSJxXoFTJyEG6HFQ10b7BZWZRY/dCXtEpW23cOcWY Kw1Q== X-Gm-Message-State: AOAM531XHAezZj16Ct9mif0I2/M/lUIBQDN/RP1I1LfKwH8hsL216tVf CtLNiXUGqvroAmX/Ztvbxq0nNPPAeZxkR9DAoXf7Mw== X-Received: by 2002:a1f:9651:: with SMTP id y78mr1828501vkd.5.1596470412618; Mon, 03 Aug 2020 09:00:12 -0700 (PDT) MIME-Version: 1.0 References: <20200803144719.3184138-1-kaleshsingh@google.com> <20200803144719.3184138-3-kaleshsingh@google.com> <20200803154125.GA23808@casper.infradead.org> In-Reply-To: <20200803154125.GA23808@casper.infradead.org> From: Suren Baghdasaryan Date: Mon, 3 Aug 2020 09:00:00 -0700 Message-ID: Subject: Re: [PATCH 2/2] dmabuf/tracing: Add dma-buf trace events To: Matthew Wilcox Cc: Kalesh Singh , Jonathan Corbet , Sumit Semwal , Alexander Viro , Steven Rostedt , Ingo Molnar , linux-doc@vger.kernel.org, LKML , linux-media@vger.kernel.org, DRI mailing list , linaro-mm-sig@lists.linaro.org, linux-fsdevel@vger.kernel.org, Hridya Valsaraju , Ioannis Ilkos , John Stultz , kernel-team 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 On Mon, Aug 3, 2020 at 8:41 AM Matthew Wilcox wrote: > > On Mon, Aug 03, 2020 at 02:47:19PM +0000, Kalesh Singh wrote: > > +static void dma_buf_fd_install(int fd, struct file *filp) > > +{ > > + trace_dma_buf_fd_ref_inc(current, filp); > > +} > > You're adding a new file_operation in order to just add a new tracepoint? > NACK. Hi Matthew, The plan is to attach a BPF to this tracepoint in order to track dma-buf users. If you feel this is an overkill, what would you suggest as an alternative?