[PATCH] irqbalance: add IRQ count into irq_info debug log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 24, 2015 at 09:49:14PM +0900, Seiichi Ikarashi wrote:
> IRQ count is missing in the current irq_info debug log.
> It needs to be printed for debugging.
> 
> Also, it's better to print (uint64_t)(irq_info->load) as %llu, instead of %u.
> 
> Signed-off-by: Seiichi Ikarashi <s.ikarashi at jp.fujitsu.com>
> 
> ---
>  cputree.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cputree.c b/cputree.c
> index d861dc7..efb3fcb 100644
> --- a/cputree.c
> +++ b/cputree.c
> @@ -345,8 +345,8 @@ static void dump_irq(struct irq_info *info, void *data)
>  		indent[i] = log_indent[0];
>  
>  	indent[i] = '\0';
> -	log(TO_CONSOLE, LOG_INFO, "%sInterrupt %i node_num is %d (%s/%u) \n", indent,
> -	    info->irq, irq_numa_node(info)->number, classes[info->class], (unsigned int)info->load);
> +	log(TO_CONSOLE, LOG_INFO, "%sInterrupt %i node_num is %d (%s/%llu:%llu) \n", indent,
> +	    info->irq, irq_numa_node(info)->number, classes[info->class], info->load, (info->irq_count - info->last_irq_count));
>  	free(indent);
>  }
>  
> 

Applied
Thanks!
Neil




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux