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
Hi Nodir
Nodir Kodirov wrote:
> Now I have two problems.
> 1) All of the events are "unknown event". instrument_buffer[i].type
> and instrument_desc[j].num does not match.
> 2) If you look to struct instrument_desc_s instrument_desc[] there are
> 125 instrumentation event types and for several event types, it has
> the same number. So, my print_instr() I am taking the first occurred
> one, while it is not always correct.
Take at look at the dump_instr.c example code which locates the
description string within instrument_desc[] in two stages:
http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/packages/kernel/current/host/instr/dump_instr.c?rev=1&content-type=text/x-cvsweb-markup&cvsroot=ecos
I hope this helps...
John Dallaway
eCos maintainer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss