Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6910381rwr; Tue, 25 Apr 2023 05:48:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZkTgryuzyQ57ONqU+Er+VJPhIXswD7SzFiY3YWCHQfW38wkOhO4hZ+7PYhprCOmiAeII4H X-Received: by 2002:a17:903:27c7:b0:1a6:a8e5:9240 with SMTP id km7-20020a17090327c700b001a6a8e59240mr15840119plb.4.1682426935235; Tue, 25 Apr 2023 05:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682426935; cv=none; d=google.com; s=arc-20160816; b=ydpSOd++PagEOX4mZ9OS5w4tXcADN81PByFhrqZGONn3hYJUTVdI8eUVN68aDCinAH f0o1mxKF/Y/TJPhRNz+xiFi+qO9Ef3QX00ySderQvzCL+EpMsKO/ny+r8ZgEUL14eyUi Wz+8thBXgrPhB/puj207tPE5pQpjv2Lpg6N1FeAfwBIvaTfsg5qFckRkFpzBQQc8cHFz Uqc5c64jNOMO82HfeiWlSeJERa/EJGd1ZwGYMcfmHSEhuJaWS/Hd1WEXbTTjIFzigNc6 KJHlqbX2KGJ8WWYQ+5ywL3K+krcnBEMO05nvlRGaDIMM8ltold2klEMS+E+1+/0j6y06 TyIw== 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=L0R1shJ74GFraG54ZrBarpqRCUuus8sKdN1oUXtaP84=; b=jFICNMr0vgWQAf4QkVJMtzFWuE7KD7VArQp+kCjS+7ma+rZOGWg3Ahb2vQ31qw28j9 i5FXJA6Q6LSFeEdrzPqpxw/5B5xiiguV4DAfs4N+MyJbhqYo3qmjezdBOI1aFLXBnrNb eeTbqbbKeUYXwVBEqJcwkLdR14gYjmwdYMv36FahMW7KZXmV3w9u0K2HPLC4EKRI6M+X thloxOx9zUYYBOEHHXJZ0Af7E2yxgfaPFePC+AG90+sb+DSbXcYK8gWARp+SSl08g27q lZJ1zTohAZL8tpMk6CHYjCTW8G/Xp0rY6nxb19vLv6HeOoeZlzkZ9imTPOgupxMT4291 QvjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Txr1tOrk; 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 p13-20020a170902e74d00b001a814f7db5fsi7475300plf.632.2023.04.25.05.48.41; Tue, 25 Apr 2023 05:48:55 -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=Txr1tOrk; 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 S233893AbjDYMmm (ORCPT + 99 others); Tue, 25 Apr 2023 08:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbjDYMmk (ORCPT ); Tue, 25 Apr 2023 08:42:40 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98355FDD for ; Tue, 25 Apr 2023 05:42:39 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-316d901b2ecso68415ab.0 for ; Tue, 25 Apr 2023 05:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682426559; x=1685018559; 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=L0R1shJ74GFraG54ZrBarpqRCUuus8sKdN1oUXtaP84=; b=Txr1tOrk3lncYAjQ+XMeFFNMCc+1J+OALg7JKpiQBoGjaklUAoF7naIJRGimpawtAT sBwfNg3ShbonS7fAYTnDKd8acfn0g/kxsYXUTGtlCL1Qy6BR5MBLMh0HlczwgLCPU2UM hxqOojx9hcV2PtMT9EIJLQ0BoQlNx1RJRftyusZek6lsTVIinhBDP/0Zxi1jPHE5QdnY QoEQNPmaJTOFlqVpP3501bAnYvcxZ2DD1GTLGJP/h5vMhnexw+5uaUIRpWAf51qdrBCJ 9aLV2IvA5Lwlnxp9mJM1IvB38YgGaO/bvvaTwj9D7rbiJpNsaOyKEFreNarahBZxQ7x9 KjiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682426559; x=1685018559; 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=L0R1shJ74GFraG54ZrBarpqRCUuus8sKdN1oUXtaP84=; b=BqEOXFpWazTE6pv0nUz753pqmWbPK7xO3ywR/xfDy7AZDV1ohemRxprej9J68VE9qV VbkH6kq7t+wIIgC6tMfIfpjBjlFkYlvVUnoCfnW6W+LDm9/jjRx37PzrQW4/gx0fk84/ n2muxSU4xFvtCi01G2Qm5gC7G8i797QW6RNeg0H6jqrd6knEgJ/bVo7VRMoULRretX29 6/Q670SM7l7roRTVhi6ea9wUyAgkyJZV3pO2wGcRF71hzkn/V+bhP0W4dJhARvyfqujj DuREdSeseYbeo1Lx2F7ARFDGURuLXdPNnc6n0Gl5DUlMurkneRDEiJ055HUKBhVMeWal Yuaw== X-Gm-Message-State: AC+VfDxccTaUDi/fx3JHde/2c6su+73uZO5Q0GJVuFiy+ccS5wG+nsq1 VulirFia0Q7lWlyYVvBWUOe0p9aFyae5Tc9Y0h494g== X-Received: by 2002:a05:6e02:1aaf:b0:313:93c8:e71f with SMTP id l15-20020a056e021aaf00b0031393c8e71fmr174325ilv.19.1682426558867; Tue, 25 Apr 2023 05:42:38 -0700 (PDT) MIME-Version: 1.0 References: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> <20230224-track_gt-v8-2-4b6517e61be6@intel.com> In-Reply-To: <20230224-track_gt-v8-2-4b6517e61be6@intel.com> From: Eric Dumazet Date: Tue, 25 Apr 2023 14:42:27 +0200 Message-ID: Subject: Re: [PATCH v8 2/7] lib/ref_tracker: improve printing stats 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: > > In case the library is tracking busy subsystem, simply > printing stack for every active reference will spam log > with long, hard to read, redundant stack traces. To improve > readabilty following changes have been made: > - reports are printed per stack_handle - log is more compact, > - added display name for ref_tracker_dir - it will differentiate > multiple subsystems, > - stack trace is printed indented, in the same printk call, > - info about dropped references is printed as well. > > Signed-off-by: Andrzej Hajda > Reviewed-by: Andi Shyti Reviewed-by: Eric Dumazet