This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Type of event in eCos instrumentation record


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]