summaryrefslogtreecommitdiffstats
path: root/src/core/profile.c
diff options
context:
space:
mode:
authorMichael Brown2014-05-04 12:45:11 +0200
committerMichael Brown2014-05-04 14:39:42 +0200
commit6f410a16d946d7015eaa11c1b255c28debb0d8b5 (patch)
tree854316bd29bdc637ee09951452c1cb12c7b197a3 /src/core/profile.c
parent[undi] Place an upper limit on the number of PXENV_UNDI_ISR calls per poll (diff)
downloadipxe-6f410a16d946d7015eaa11c1b255c28debb0d8b5.tar.gz
ipxe-6f410a16d946d7015eaa11c1b255c28debb0d8b5.tar.xz
ipxe-6f410a16d946d7015eaa11c1b255c28debb0d8b5.zip
[profile] Allow interrupts to be excluded from profiling results
Interrupt processing adds noise to profiling results. Allow interrupts (from within protected mode) to be profiled separately, with time spent within the interrupt handler being excluded from any other profiling currently in progress. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/profile.c')
-rw-r--r--src/core/profile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/profile.c b/src/core/profile.c
index ceaadd6c..150e6b27 100644
--- a/src/core/profile.c
+++ b/src/core/profile.c
@@ -40,6 +40,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
* to avoid the use of floating-point instructions.
*/
+/** Accumulated time excluded from profiling */
+unsigned long profile_excluded;
+
/**
* Format a hex fraction (for debugging)
*