Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6910260rwr; Tue, 25 Apr 2023 05:48:48 -0700 (PDT) X-Google-Smtp-Source: AKy350YbkT4mOSC3sOjNrcSOMf67WQl76kKHqo47onO38Up7FrbU5IAW3uxobkduLWiPOhz0p2HO X-Received: by 2002:a05:6a20:6a28:b0:da:8917:bdc5 with SMTP id p40-20020a056a206a2800b000da8917bdc5mr22399995pzk.45.1682426928281; Tue, 25 Apr 2023 05:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682426928; cv=none; d=google.com; s=arc-20160816; b=GhprwZPFn++q+upl2S2C0aR7Iw7JFdZjLku2H/Ygc9nXynGzcsxsT2eFBINyMXLeB+ 3DUONMMj52ZJiXTuzk3TH4luAtS4+BmPAo8EZ2+wRQYMpc/489oNHqgK6ADDRQfqpTFS 0DCMeJOI6lYum0uUuuxL/JtlzoMFcx+AEwgR9wQU9f2WhKBl0O3Fx14qidQUlrGIScQM M4tm5RYgGDLk4LzvbC8OmgS78/aDjX1JmMNfkTjZx0zvaNF4gHIWMkz0a+U42GvLQenm HM/d6nQ0kjafx3Yg+OA9M3WS8ccky0O0OOEfDHKQZ6Qd5Su7P0ZfSr884keAcbM7LO9x jRRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=te/AU6YD3Nrp06W+/L24htOInvAS1q7FQ+X/iKWkuds=; b=npzsWDVmTITqH477q1NlmFWfh+LCbDoh6P0O8QYYbGnzCvrxng+N4QIiQ8s0YUqoML IZKREZF9k/Ube8JGdeESODeALqGPW+jkvlNmZdXruyaA0L9wCWIu6dILpKGWw5lmckiE zDGIH6YsZbiIMp/zw5DxNSTqUGOuVOFOx8r4m3Xrad1k3rpSscx/pqQtZ/J4Mlbujb32 eoAqhiHrSKYkHWGWf44Dm8OJ9uM/6PZt7fdTYJ/7vYUT9SXL+wuWo5RHLheUelIVI6DQ G2qB9cd35QuhFoKZWLvsKxb7Hf+Bm5Thg+tCrswkyvPGbJ/VgvNHm3lKxgK6INPnZ1EA +YJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=K1ZWUUch; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a630e10000000b0050bea56f69asi14351640pgl.735.2023.04.25.05.48.34; Tue, 25 Apr 2023 05:48:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=K1ZWUUch; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233898AbjDYMoU (ORCPT + 99 others); Tue, 25 Apr 2023 08:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbjDYMoT (ORCPT ); Tue, 25 Apr 2023 08:44:19 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C682A5FDD for ; Tue, 25 Apr 2023 05:44:18 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-316d901b2ecso68605ab.0 for ; Tue, 25 Apr 2023 05:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682426658; x=1685018658; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=te/AU6YD3Nrp06W+/L24htOInvAS1q7FQ+X/iKWkuds=; b=K1ZWUUchq0Erw5U3Nvwwr6Mo6pQI0pLwySLG1iZlTS2NlkiPcqJL6ZJGTahZwp2eQL /fH5bojhLzWVrV5CCJg0gCzeyrpiaOiezhLx5FwHPvf5uARnYifDwuR2i54acxR2k9hg nfpIzgS+HrrFFAdD6nCGFJQXjJp9C//n46xY6fUNcuh8TXGFbjHw+O1v9F8NGO1xdXtw rrqR50Cf3+cRIVwbCVQtuAKHYwlfdtvhwG7yHD8loc3QydQOS3HSokGELGvZ5RO2ijuq lvKUiasZ9Iei9+KGhP9vcZaopFFCpvWhg3RuFBfr12ca4l6sfB7Mq+seYpX2lm48sA+d eAmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682426658; x=1685018658; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=te/AU6YD3Nrp06W+/L24htOInvAS1q7FQ+X/iKWkuds=; b=C4QW3UDGD/3kVcGnAqumuWzdVmFj64ZqNvJsDJUC2s7erO5Pdyxael26nYqbi4Cpmi rUh3B1O4/t+5I+ycQ69+MwClJ94JDOgKv0qt3jMhlp2Cs+QIDOZdSHDuh/VrMbS5G82i 73L0CMtBs097xYrNlMRHKPX9FeQF8iaXqP7xi3z+UO/SwksddIvx+Pc7f6FrkvvLjngL V1XRvYcY6S4V5InuW6AyoU06dPo9aE1E4VGkTwFPigRxF/6D3kd8YkWYvFpFwvD6/SvS 3w7fi6Nn+xeUG1j0VLjoQ9HuZGlhPK/G6uJw7Yej7bxxDiOhnCWcnFidIuH69jcE+8db XsmQ== X-Gm-Message-State: AC+VfDxootG9oC9hmdvuOnF0JdhsYvcGLmEKhVQYSI8kH3PasA6OopEl WTJe/MPP/1KMIiPk7KYcRb6ZyTLsL3fTH7TgYsrXCQ== X-Received: by 2002:a05:6e02:1aaf:b0:313:93c8:e71f with SMTP id l15-20020a056e021aaf00b0031393c8e71fmr174663ilv.19.1682426657965; Tue, 25 Apr 2023 05:44:17 -0700 (PDT) MIME-Version: 1.0 References: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> <20230224-track_gt-v8-3-4b6517e61be6@intel.com> In-Reply-To: <20230224-track_gt-v8-3-4b6517e61be6@intel.com> From: Eric Dumazet Date: Tue, 25 Apr 2023 14:44:06 +0200 Message-ID: Subject: Re: [PATCH v8 3/7] lib/ref_tracker: add printing to memory buffer To: Andrzej Hajda Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , netdev@vger.kernel.org, Jakub Kicinski , Dmitry Vyukov , "David S. Miller" , Andi Shyti Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 25, 2023 at 12:06=E2=80=AFAM Andrzej Hajda wrote: > > Similar to stack_(depot|trace)_snprint the patch > adds helper to printing stats to memory buffer. > It will be helpful in case of debugfs. > > Signed-off-by: Andrzej Hajda > Reviewed-by: Andi Shyti Reviewed-by: Eric Dumazet