RE: [PATCH] Common clock: ​​To list active consumers of clocks

From: Elliott, Robert (Servers)
Date: Tue Aug 02 2022 - 18:49:44 EST




> -----Original Message-----
> From: <Vishal Badole> <badolevishal1116@xxxxxxxxx>
> Sent: Sunday, June 26, 2022 1:25 PM
> To: Stephen Boyd <sboyd@xxxxxxxxxx>; mturquette@xxxxxxxxxxxx; inux-
> clk@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Cc: chinmoyghosh2001@xxxxxxxxx; mintupatel89@xxxxxxxxx;
> vimal.kumar32@xxxxxxxxx
> Subject: Re: [PATCH] Common clock: ​​To list active consumers of clocks
>
...
> We will remove above prints in the revised patch. We are facing
> indentation issue whle printing consumer in summary
> as given below
> enable prepare protect duty hardware per-user
> clock count count count rateccuracy phase cycle enable consumer count
> clk_mcasp0_fixed 0 0 0 24576000 0 50000 Y
> deviceless 0


Consider making the kernel output simple, greppable, and parseable (e.g.,
comma-separated fields, one entry per line, no multi-line column headers)
and let a userspace tool do the fancy formatting.