Re: [RFC 06/13] perf kwork: Implement perf kwork report

From: Namhyung Kim
Date: Tue Jun 14 2022 - 17:50:12 EST


On Mon, Jun 13, 2022 at 2:48 AM Yang Jihong <yangjihong1@xxxxxxxxxx> wrote:
>
> Implements framework of perf kwork report, which is used to report time
> properties such as run time and frequency:
>
> test case:
>
> Kwork Name | Cpu | Avg delay | Frequency | Max delay | Max delay start | Max delay end |
> ---------------------------------------------------------------------------------------------------------------------------
> ---------------------------------------------------------------------------------------------------------------------------
>
> Since there are no report supported events, the output is empty.
>
> Briefly describe the data structure:
> 1. "class" indicates event type. For example, irq and softiq correspond
> to different types.
> 2. "cluster" refers to a specific event corresponding to a type. For
> example, RCU and TIMER in softirq correspond to different clusters,
> which contains three types of events: raise, entry, and exit.

I'm not good at naming but how about calling it "work" instead?
It's all about kernel works anyway..

Thanks,
Namhyung


> 3. "atom" includes time of each sample and sample of the previous phase.
> (For example, exit corresponds to entry, which is used for timehist.)
>
> Signed-off-by: Yang Jihong <yangjihong1@xxxxxxxxxx>