Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp787993pxb; Fri, 3 Sep 2021 13:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFrGYCsmmd9ftbdSfplJNdpkutToZl8HIE879oGhQwq2X2AC7hNKHPkiiB1M5XgrKBv5A3 X-Received: by 2002:a17:906:c249:: with SMTP id bl9mr698070ejb.225.1630701153218; Fri, 03 Sep 2021 13:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630701153; cv=none; d=google.com; s=arc-20160816; b=KMfAPsKFECX4xGk9yOJeM34IkxyCEevdWlvAFiBdJO/5wzCh6HaWtx4mXyk/GZB7yT ZfEUoy3ZMks2sSPbS0jmLTErR872DvXn53VHW/PXkPH4wxr9wY3d8DN9kgieXclQnpdS Fz7n9O8dqjM4b4OO01sqetWwiM24/jI5uJEELmbwOwTuKA+Qc1z9wLGBSGd7+mJGFt0h tdADDn0JcNWahkHthpWoDYcm6G/ADVKsoffAP7C5X6LzUBaCXhEfAtDxfXzjZo0HsU0K QQLyYw/N2l+hAGnlZPk/ox7mtBip2qGPy9n3MCh3NjGrpX6Ivk62lYiFB68MijYLBx4i X5zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5K0VBSOnmtebXS01KERjxxSqF7Rpsv0DMmSX4najGnw=; b=0yMZYlck1jWPjYnpglODHvbH9Ul8TfOqHQe0q+wnw6FpYa6/J2ly4tgz4tel+4i21b luwVdk1HXYVcDsKl3bYAilKb4tZ4bdpK65cIXVc7DlD0jiTQr3qLWvXwTdIVMgIzAx/v UrrCDu0qBzqdD9CS7V960bEtkwIMqq7gBj0cmd6m3opGzQ+Kuh5uAL/jyP9LUlK5kaAX LEV4fDUsm/pFQ2AzJKaYv8+JStp4ej/55FlnQFq/sK1kUAjBafOl6mU9/0Kttk+vOB9Q TBD6kYCS2aNpzvkiOvjK6WZ76TEUzgUdhKQ/oogRpw1rjCW2h5JDoJqXjma4m9p/Plxe IeqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq3si360265ejc.142.2021.09.03.13.32.09; Fri, 03 Sep 2021 13:32:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350600AbhICUbv (ORCPT + 99 others); Fri, 3 Sep 2021 16:31:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:50604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350538AbhICUbu (ORCPT ); Fri, 3 Sep 2021 16:31:50 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 225FF610A1; Fri, 3 Sep 2021 20:30:49 +0000 (UTC) Date: Fri, 3 Sep 2021 16:30:47 -0400 From: Steven Rostedt To: Kalesh Singh Cc: surenb@google.com, hridya@google.com, gregkh@linuxfoundation.org, john.reitan@arm.com, orjan.eide@arm.com, mark.underwood@arm.com, gary.sweet@broadcom.com, stephen.mansfield@imgtec.com, kernel-team@android.com, Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [RESEND v2] tracing/gpu: Add imported size to gpu_mem_imported tracepoint Message-ID: <20210903163047.20e4f286@gandalf.local.home> In-Reply-To: <20210831170233.1409537-1-kaleshsingh@google.com> References: <20210831170233.1409537-1-kaleshsingh@google.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. -- Steve