Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3943609pxb; Tue, 7 Sep 2021 10:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQegCvftOMWyLUsFLXa2sayo8AM5LP/THO6LCTu5YmuhT1eJZNEi2RRSB2eRTruIEeN/Gb X-Received: by 2002:aa7:d986:: with SMTP id u6mr746516eds.156.1631037281485; Tue, 07 Sep 2021 10:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631037281; cv=none; d=google.com; s=arc-20160816; b=0CYIxXdErCiPhm/ct9GQJ4iSErJC2r1DSGfxP/L5WA+LICB5iawOpvC2pCfdiVAehI hRX7RhVcVMfjpsNsaOxlMHS8kVijBT6asa4F8lUyAS0spVydjwA/vHU9fKiXrp3MJHNX cn+yC/A9yW8sMPFXthg6d1xdbRtSAwAEUWtNNe59Ts6JXHgRQr1PH5xK5KA5DEYHQMMS 8cDmH133HKo6+Dp4qdE4KLdIeOdrWQ5vPKZj+zC2xPPeSVJwrDQw95zHgrFLLIENnne7 mbIL75KauiawHdZx0GiTnFXUVrtxfI0nHfgabnpHb/n22ZuCDObBCJ5bB4Y+K5yl+3rN 5I1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MxAErZhMJv2ec4yFu5fgU4RzwkTSCHDrK+HA3Tse67k=; b=IcTBzKNKFzgmP1PYU+u0lWCv9zKW3c240f1G9XZy2nKKwq/RDRfZ1NCqPQuuEEIC2+ on5HkYToHLGya5QTzO6dlZFOnBh+HD3/t4Pf9KrnB5Fg0vOL/hOTzIH/EX65FYErcixA mPqLhK2v3RGSsMoQWRG1ir5RrnyQOZ93gFHoq4l1zoUarVDFyXMnT/IBXceXnesaoAjc gjKy71TeIUv6VqVkTiZ/pfPX9hEBRuz0r5BCIQjzkmUJYqJAJEQXLCu2Snu1dpNBRvqx 6QRBF56cj34Gg43j1zU4JRxlF9QjwvPitVmMtXNzbCyKffFwV5OxEHOqr9rpZ1ChRfwJ 6toQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xn5TZIu9; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si10303177eje.704.2021.09.07.10.54.17; Tue, 07 Sep 2021 10:54:41 -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=@linuxfoundation.org header.s=korg header.b=xn5TZIu9; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233444AbhIGRxw (ORCPT + 99 others); Tue, 7 Sep 2021 13:53:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:45142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhIGRxv (ORCPT ); Tue, 7 Sep 2021 13:53:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6220461100; Tue, 7 Sep 2021 17:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631037165; bh=HoTCPvWh1JcRHv9ksbm1tgwNVMMgK0R96ieyDjdEISA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xn5TZIu9AdapdOP3wXNXSA2n2n1R/RsXvvB28P3Y9xH9iS7uUv//TqpHKuVjlGRAP HK4VykpjvBl900slDjflxDE98DCuy5mCuIn/9BExFMNKkMCRCruP5JcPBuiRPAgaOa 9O9UgyCWVhpxmryZaJmUnZ0zkktNROc0xbjehK10= Date: Tue, 7 Sep 2021 19:52:39 +0200 From: Greg KH To: Steven Rostedt Cc: Kalesh Singh , Suren Baghdasaryan , Hridya Valsaraju , John Reitan , =?iso-8859-1?Q?=D8rjan?= Eide , Mark Underwood , Gary Sweet , Stephen Mansfield , "Cc: Android Kernel" , Ingo Molnar , LKML Subject: Re: [RESEND v2] tracing/gpu: Add imported size to gpu_mem_imported tracepoint Message-ID: References: <20210831170233.1409537-1-kaleshsingh@google.com> <20210903163047.20e4f286@gandalf.local.home> <20210907134923.2dd41a8a@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210907134923.2dd41a8a@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 01:49:23PM -0400, Steven Rostedt wrote: > On Fri, 3 Sep 2021 15:36:03 -0700 > Kalesh Singh wrote: > > > 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. > > OK, so it was Greg that gave me the Ack to accept it. Me? Hah, I'm not a gpu developer, they are the ones that need to ack this thing... greg k-h