From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18AD1C433ED for ; Tue, 20 Apr 2021 08:22:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D74D36113C for ; Tue, 20 Apr 2021 08:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbhDTIXN convert rfc822-to-8bit (ORCPT ); Tue, 20 Apr 2021 04:23:13 -0400 Received: from jptosegrel01.sonyericsson.com ([124.215.201.71]:7221 "EHLO JPTOSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbhDTIXN (ORCPT ); Tue, 20 Apr 2021 04:23:13 -0400 From: Peter Enderborg To: , , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alexey Dobriyan , Andrew Morton , Muchun Song , Roman Gushchin , Shakeel Butt , Michal Hocko , NeilBrown , Sami Tolvanen , Mike Rapoport , , , , Matthew Wilcox , Jonathan Corbet , Randy Dunlap , Kees Cook , Mauro Carvalho Chehab , Alexey Gladkov , Feng Tang , Subject: [PATCH 0/2 V6]Add dma-buf counter Date: Tue, 20 Apr 2021 10:22:18 +0200 Message-ID: <20210420082220.7402-1-peter.enderborg@sony.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-SEG-SpamProfiler-Analysis: v=2.3 cv=DLnxHBFb c=1 sm=1 tr=0 a=9drRLWArJOlETflmpfiyCA==:117 a=IkcTkHD0fZMA:10 a=3YhXtTcJ-WEA:10 a=QyXUC8HyAAAA:8 a=6icRsfec0oETIK1Ck8AA:9 a=QEXdDO2ut3YA:10 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 X-SEG-SpamProfiler-Score: 0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The dma-buf counter is a metric for mapped memory used by it's clients. It is a shared buffer that is typically used for interprocess communication or process to hardware communication. In android we used to have ION,. but it is now replaced with dma-buf. ION had some overview metrics that was similar. V1 initial version. Add dma-buf counter V2 Fix build depencendy error suggested by Matthew Wilcox Extent commit message sugged by Köning V3 Change variable and function names. V4 Fix function name in code doc Reported-by: kernel test robot V5 Removed EXPORT_SYMBOL_GPL suggested by Muchun Song V6 Made it a patch set, Adding a addional patch for printing dma-buf counter in show_mem. Suggested by Michal Hocko.