Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp859977pxb; Fri, 3 Sep 2021 15:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydCsGP78v/HW/t+PipHuSkF8Le+kGmQhzVHAz7WBngx6IyK9yNDG0alVK2g9LLb3KKiZko X-Received: by 2002:a17:906:3f95:: with SMTP id b21mr1148400ejj.368.1630708673260; Fri, 03 Sep 2021 15:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630708673; cv=none; d=google.com; s=arc-20160816; b=OWrkwAWY/WDzJZ0yP/8Z/pKKxlFFq+qEw76I0cwZtd0iZy81xWBpwSvDDoR56C3aZn 77kCr+KzLx1KQe6D9ecNvbJwcfedYByecFyeDeXGKK1Y4apuW6mJbiAgoX+/FJduSI5D y7YFlt7LAYwjwlz71JoTJPM4YdZ4t55nkdlp6Gje7SG4LHD9BYn24KidjAeyoh2X1/Q4 ya2B8sgAOGE5j4WTtTb6Suov/Y/6HRM0DZDbUh89QkviE5er9Z87bevaIRfvz1tcxxSr MoKubX9Xg3aQEEAmYpOgIjsVUgWqBAFHw0akWeoCk+cIrB2vk4eJlhhQqvCNU98/ob7/ OABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4n4t1I0ds31rTOivM3zh0FqEEapcJtxXsNS36ICN76o=; b=kpVLAyI/lfGDq5/IqVq+sUbIpGN1Eer845/X0GKUrpe48W4q0ee2YhOsT+SPXQd+4V INEwiRHEbVJ1NTiT57KPmf6KOtrz6b9qJdmOb7KcsCPGwIJI+RlVsG4cpmiMAuMlk4NG eNKVTQAArK/FyEQyYYanWQP605rTQqxget2Thdg5WlU9/zkZRPAocbPaNT2vD/yOe0kD uA0kIqKx+gaE1xaIF9mOly0prEDqdVXifivSSsgYno09SQzW1l6RA/oIcn1FcYvX7uUv Si1phYrv2uxNlq2cF4+HD3kLGO6GNA9z/9gXDL9XxYMT3n3Sh5fKvR26YrbN54IYBbGP ZgoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QKjVkjAq; 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 j23si538774eje.501.2021.09.03.15.37.29; Fri, 03 Sep 2021 15:37:53 -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=20210112 header.b=QKjVkjAq; 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 S236815AbhICWhP (ORCPT + 99 others); Fri, 3 Sep 2021 18:37:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbhICWhP (ORCPT ); Fri, 3 Sep 2021 18:37:15 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6AC3C061575 for ; Fri, 3 Sep 2021 15:36:14 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id c6so511774pjv.1 for ; Fri, 03 Sep 2021 15:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4n4t1I0ds31rTOivM3zh0FqEEapcJtxXsNS36ICN76o=; b=QKjVkjAqZbrZL+HEfDDzK9eMl0sGZ/u4nVq3zK3+h1u4V/mSFYef1CY/V+aEvTl09U EOaZW4VhviL6B6Ctz/7RqzfWRiLUvphzT9lcClHeDoPka+RyM4x90D+rHMxVSnOZyVVX Nt4K7MfeZHZZ4YnmwPkCu5cTUa+KBYINtY83hbjBlL2AvnN9rSB3W4dnRuqyMpeCSkzB g+fXVEhkSP3GHe+ZV7dEPm2uQgpIUIvfhzSA4Lmt9ZbB8bLJjO7d6jgBEIvoTDoBEFK0 X9JD5Mw5WQ388AGBKSASMf+5LIzBuAwIqB4cXhtS92wwfYhjexmaMtsFH6teOzLj2KnA p/cQ== 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=4n4t1I0ds31rTOivM3zh0FqEEapcJtxXsNS36ICN76o=; b=eRnq81ROkjitirl6Ul5auUxRPhYf72Z5YSwhflcmevo7i+g8sTEKVRAJJU6cSkFD5/ dXah9Qyxvt5fpypZ8g6k8yYYVZTQ197hLWNNUjGqrVt5CukSXEJwXvlAT9F9Y3NoPCnF QsBadgVeCmH8+Nayf0dB2azn0yS2Ex7yO7SA/Au8ih159tFiUePHE/fnTBJD4/XlixLd 0OrxjPM9EUbBDOZyf11Kjlp7asgAal1PkDy2DWyvRb0aGacOEamPIbnEKooEl+mkO5Tx sJ/8IhuKSWG04nk6SCASfCdDX16Yc+5bXQ7qLWRmKLp84P6jz6fFWvAfWvw/s8b/BKuX baMA== X-Gm-Message-State: AOAM533kGXtaTO0c8cTHODgVWtUL6ICyXgbocrRqEIZZddu/Cus3gPJ4 nMztPLatlkIEA/I02KRc/zOuVLqM1ly5CCXa9WGOOA== X-Received: by 2002:a17:90b:3608:: with SMTP id ml8mr1123767pjb.124.1630708574150; Fri, 03 Sep 2021 15:36:14 -0700 (PDT) MIME-Version: 1.0 References: <20210831170233.1409537-1-kaleshsingh@google.com> <20210903163047.20e4f286@gandalf.local.home> In-Reply-To: <20210903163047.20e4f286@gandalf.local.home> From: Kalesh Singh Date: Fri, 3 Sep 2021 15:36:03 -0700 Message-ID: Subject: Re: [RESEND v2] tracing/gpu: Add imported size to gpu_mem_imported tracepoint To: Steven Rostedt Cc: Suren Baghdasaryan , Hridya Valsaraju , Greg KH , John Reitan , =?UTF-8?Q?=C3=98rjan_Eide?= , Mark Underwood , Gary Sweet , Stephen Mansfield , "Cc: Android Kernel" , Ingo Molnar , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 3, 2021 at 1:30 PM Steven Rostedt wrote: > > On Tue, 31 Aug 2021 17:02:29 +0000 > Kalesh Singh wrote: > > > The existing gpu_mem_total tracepoint provides GPU drivers a uniform way > > to report the per-process and system-wide GPU memory usage. This > > tracepoint reports a single total of the GPU private allocations and the > > imported memory. [1] > > > > To allow distinguishing GPU private vs imported memory, add an > > imported_size field to the gpu_mem_total tracepoint. GPU drivers can use > > this new field to report the per-process and global GPU-imported memory > > in a uniform way. > > > > User space tools can detect and handle the old vs new gpu_mem_total > > format via the gpu_mem/gpu_mem_total/format file. > > > > [1] https://lore.kernel.org/r/20200302234840.57188-1-zzyiwei@google.com/ > > > > Signed-off-by: Kalesh Singh > > --- > > include/trace/events/gpu_mem.h | 17 +++++++++++------ > > 1 file changed, 11 insertions(+), 6 deletions(-) > > > > This is that trace event that doesn't have any in tree callers, right? I > thought there was going to be some soon. The trace event is currently used by the Android GPU drivers, and there is some work ongoing to add this in drm core upstream but it's not yet ready. > > For the updates to the tracing side (besides not having any users), it > looks trivial to me. > > Acked-by: Steven Rostedt (VMware) > > But this needs to be pulled in by one of the GPU maintainers. Thanks for the review Steve. I'll resend adding the GPU maintainers. > > -- Steve