This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Interrupt occurrences count
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: "David Marqvar (DAM)" <DAM at tt dot dk>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 30 Apr 2003 21:33:11 +0100
- Subject: Re: [ECOS] Interrupt occurrences count
- References: <E70B4FA554FB6C44BC7FAC9A9CE0CBC436D517@NTEX.tt.dk>
David Marqvar (DAM) wrote:
Is there a built in function in eCos that counts how many times a certain
interrupt has happened?
There's no explicit counter as such.
I've been looking for it in the source, but it seems not to be there - not
in the Cyg_Interrupt class anyway, where I would expect it to be.
If I'm right, my next question is: is there any general interest in such a
(debug) function?
You can achieve the same by looking at the kernel instrumentation, and in
particular, analysing the contents of the instrumentation buffer. You can
get it to record just the interrupt raise events, and count them. The
buffer can be memset to 0 to clear all records (albeit with interrupts
disabled if you want to make sure you don't mix the memset with incoming
interrupts).
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss