This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Type of event in eCos instrumentation record
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Nodir Kodirov <nodir dot qodirov at gmail dot com>
- Cc: Yuriy Coureelo <coureelo at micran dot ru>, eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 28 Mar 2010 10:37:06 +0200
- Subject: Re: [ECOS] Type of event in eCos instrumentation record
- References: <186ad4051003272348j78632da5y347abb31f50029cc@mail.gmail.com>
On Sun, Mar 28, 2010 at 03:48:50PM +0900, Nodir Kodirov wrote:
> Hello Mr. Yuriy!
>
> I was using eCos kernel instrumentation feature to analyze behavior of
> my application. I tried the sample given at
> http://ecos.sourceware.org/docs-latest/user-guide/kernel-instrumentation.html
> where with these lines of the code:
>
> [...]
> for (i = 0; i < instrument_buffer_size; ++i) {
> printf("Record %02d: type 0x%04x, thread %d, ",
> i, instrument_buffer[i].type, instrument_buffer[i].thread);
> printf("time %5d, arg1 0x%08x, arg2 0x%08x\n",
> instrument_buffer[i].timestamp, instrument_buffer[i].arg1,
> instrument_buffer[i].arg2);
> }
> I have got instrumentation info in this format:
>
> Record 00: type 0x0207, thread 2, time 6057, arg1 0x48001cd8, arg2 0x00000002
> Record 01: type 0x0202, thread 2, time 6153, arg1 0x48001cd8, arg2 0x00000000
> Record 02: type 0x0904, thread 2, time 6358, arg1 0x48001d24, arg2 0x00000000
> Record 03: type 0x0905, thread 2, time 6424, arg1 0x00000002, arg2 0x00000000
> Record 04: type 0x0906, thread 2, time 6490, arg1 0x00000000, arg2 0x00000000
> [...]
>
> My question to you (or to all who might know) is how to get the type
> of the event in each instrumentation record.
http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/packages/kernel/current/host/instr/readme.txt?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=ecos
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss