lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46AE86C7.3060702@googlemail.com>
Date:	Tue, 31 Jul 2007 02:48:07 +0200
From:	Gabriel C <nix.or.die@...glemail.com>
To:	Joe Korty <joe.korty@...r.com>
CC:	Andrew Morton <akpm@...ux-foundation.org>,
	Sven-Thorsten Dietrich <sdietrich@...ell.com>,
	"H. Peter Anvin" <hpa@...or.com>, mingo@...e.hu,
	tglx@...utronix.de, linux-rt-users@...r.kernel.org,
	linux-kernel@...r.kernel.org, jason.baietto@...r.com
Subject: Re: [PATCH] expand /proc/interrupts to include missing vectors, v2

Joe Korty wrote:
> +#ifdef CONFIG_SMP
> +		seq_printf(p, "RES: ");
> +		for_each_online_cpu(j)
> +			seq_printf(p, "%10u ",
> +				per_cpu(irq_stat,j).irq_resched_counts);
> +		seq_printf(p, "  Rescheduling interrupts\n");
> +#endif
> +#ifdef CONFIG_SMP
> +		seq_printf(p, "CAL: ");
> +		for_each_online_cpu(j)
> +			seq_printf(p, "%10u ",
> +				per_cpu(irq_stat,j).irq_call_counts);
> +		seq_printf(p, "  function call interrupts\n");
> +#endif
> +#ifdef CONFIG_SMP
> +		seq_printf(p, "TLB: ");
> +		for_each_online_cpu(j)
> +			seq_printf(p, "%10u ",
> +				per_cpu(irq_stat,j).irq_tlb_counts);
> +		seq_printf(p, "  TLB shootdowns\n");
> +#endif


How about :

#ifdef CONFIG_SMP
		seq_printf(p, "RES: ");
		for_each_online_cpu(j)
			seq_printf(p, "%10u ",
				per_cpu(irq_stat,j).irq_resched_counts);
		seq_printf(p, "  Rescheduling interrupts\n");

		seq_printf(p, "CAL: ");
		for_each_online_cpu(j)
			seq_printf(p, "%10u ",
				per_cpu(irq_stat,j).irq_call_counts);
		seq_printf(p, "  function call interrupts\n");

		seq_printf(p, "TLB: ");
		for_each_online_cpu(j)
			seq_printf(p, "%10u ",
				per_cpu(irq_stat,j).irq_tlb_counts);
		seq_printf(p, "  TLB shootdowns\n");
#endif


should to the same.


Regards,

Gabriel C
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ