All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiebin Sun" <jiebin.sun@intel.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v7 3/9] perf c2c: add column rendering for function view
Date: Thu, 06 Aug 2026 07:47:31 +0000	[thread overview]
Message-ID: <20260806074732.4B7D21F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260806074217.2846596-4-jiebin.sun@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The macro `C2C_FUNC_FOLD_WIDTH` is defined but never used.
--

--- Patch [3]: [PATCH v7 3/9] perf c2c: add column rendering for function view ---
commit a3883eb9f33b41bc5b4463fa0fd2cb2ff6a32559
Author: Jiebin Sun <jiebin.sun@intel.com>

perf c2c: add column rendering for function view

This commit adds the function view's column renderers for the perf c2c tool. It
introduces the necessary width and header helpers, the per-function estimated
cycles computation, and dimension tables to link columns to their renderers.

> diff --git a/tools/perf/ui/browsers/c2c-function.c b/tools/perf/ui/browsers/c2c-function.c
> index c0fd7799e4f85..89e4e65022b52 100644
> --- a/tools/perf/ui/browsers/c2c-function.c
> +++ b/tools/perf/ui/browsers/c2c-function.c
[ ... ]
> +/* Spaces of indent per hierarchy level, like the normal report view. */
> +#define C2C_FUNC_INDENT 2
> +
> +/* Width of the folded-sign prefix ("%c ") each identity cell emits. */
> +#define C2C_FUNC_FOLD_WIDTH 2

[Severity: Low]
This isn't a bug, but is this macro intended to be used? 

It looks like C2C_FUNC_FOLD_WIDTH is defined here, but the code later in 
symbol_view_entry() and cycles_percent_entry() hardcodes the "%c " format
string and calculates lengths without referencing this macro. 

Could the renderers use this macro when calculating the remaining buffer 
widths instead of manual adjustments?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260806074217.2846596-1-jiebin.sun@intel.com?part=3

  reply	other threads:[~2026-08-06  7:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06  7:42 [PATCH v7 0/9] perf c2c: add a function view Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 1/9] perf c2c: extract shared data structures into c2c.h Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 2/9] perf c2c: add function view browser skeleton Jiebin Sun
2026-08-07  6:13   ` Namhyung Kim
2026-08-10  5:34     ` Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 3/9] perf c2c: add column rendering for function view Jiebin Sun
2026-08-06  7:47   ` sashiko-bot [this message]
2026-08-06  7:42 ` [PATCH v7 4/9] perf c2c: add HPP list parsing for function view columns Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 5/9] perf c2c: add function view stats merge and memory management Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 6/9] perf c2c: add function view hierarchy entry creation Jiebin Sun
2026-08-06  7:54   ` sashiko-bot
2026-08-06  7:42 ` [PATCH v7 7/9] perf c2c: build and finalize the function view hierarchy Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 8/9] perf c2c: add function view browser UI and cacheline detail Jiebin Sun
2026-08-06  7:42 ` [PATCH v7 9/9] perf c2c: document function view in perf-c2c man page Jiebin Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260806074732.4B7D21F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jiebin.sun@intel.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.