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>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0802171929480.5572@pianoman.cluster.toy>
Date:	Sun, 17 Feb 2008 20:15:09 -0500 (EST)
From:	Vince Weaver <vince@...ter.net>
To:	linux-kernel@...r.kernel.org
Subject: finding per-process hw interrupt counts

Hello

is there a way to find out how many times a userspace program is forced to 
context switch due to a hardware interrupt?

The reason for this:
I am measuring the retired instruction count of programs using performance 
counters (perfmon2 patchset), and trying to find out where the 
descrepancies compe from.

On x86, it seems to be:

   reported_count = expected_count + 1*major_pagefaults + \
                    1*hardware_interrupts + known_errata + 1

I can get the pagefault info from getrusage().  The hardware_interrupts 
count is my best guess at what is causing the rest, based on the LOC
field in /proc/interrupts.  That's not per-process though.

Is this info available?  If not, is it possible to patch the kernel to 
make it so?

Thanks for any help

Vince
vince@...ter.net
--
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