Forum Topic - System Profiler: bad event decoding for MMap Name: (7 Items)
   
System Profiler: bad event decoding for MMap Name  
While writing a reporting tool for MMap / MMUnmap I came across the 'MMap Name' events. They seem to get 
'misunderpreted'. Here is an example:
Key, Value
addr, 0xf6aab8200000
len, 7598523844058834276
name, x.so
pid, 32793
process, io-pkt-v6-hc
 
Q: What are these messages for? what kind of data are the supposed to show?
Apparently, MMap Name is the result of a debug_info call - whatever that is.
 
I'll disregard the MMap Name events for now, but I'd like to know about them.
Thanks,
Daniel
P.S.
Why is the unmap event called 'MMunmap'? why not just 'MUnmap'? If MM is for MemoryManager, than 'MMap' should be 
'MMMap'...
 
tracefile properties:
BOOT_DATE Thu Jan  1 00:00:00 1970
CPU_NUM 2
CYCLES_PER_SEC 1596357600
DATE Thu Jan  1 00:00:01 1970
ENCODING 16 byte events
FILE_NAME /dev/shmem/startup.kev
LITTLE_ENDIAN TRUE
MACHINE x86pc
NODENAME localhost
SYS_RELEASE 6.4.0
SYS_VERSION 2008/10/21-11:10:39EDT
SYSNAME QNX
SYSPAGE_LEN 2584
TRACELOGGER_ARGS /bin/tracelogger -f /dev/shmem/startup.kev -n0 -S90M -M -w
VER_MAJOR 1
VER_MINOR 01
 
 

DANIEL HÜNIG
Senior Manager Advanced Engineering 
Benchmarking & SPOT

Harman International
Harman Becker Automotive Systems GmbH
Raiffeisenstr. 34
70794 Filderstadt, Germany
Phone: +49 711 90770210
Email: Daniel.Huenig@Harman.com <mailto:Daniel.Huenig@Harman.com>; 
Web: www.harman.com <file:///D:/Documents%20and%20Settings/DHuenig/Application%20Data/Microsoft/Signatures/www.harman.
com> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: System Profiler: bad event decoding for MMap Name  
Hi Daniel,

> While writing a reporting tool for MMap / MMUnmap I came across the 'MMap 
> Name' events. They seem to get 'misunderpreted'. Here is an example:

> Q: What are these messages for? what kind of data are the supposed to show?
> Apparently, MMap Name is the result of a debug_info call - whatever that is.

I understand the 'MAPNAME' events happens when someone is loading a DLL that is not automatically loaded when starting 
the program. So MAPNAME shows up when dlopen() gets called to load a shared object.

As for the values, I *believe* the meanings are as follows:

> Key, Value
> addr, 0xf6aab8200000
This should be the virtual address where the shared object is being loaded to.

> len, 7598523844058834276
This should be the length of the shared object (seems a bit high number though...)

> name, x.so
The name of the shared object being loaded.

> pid, 32793
> process, io-pkt-v6-hc
The process that did the loading of the shared object.  

> P.S.
> Why is the unmap event called 'MMunmap'? why not just 'MUnmap'? If MM is for 
> MemoryManager, than 'MMap' should be 'MMMap'...

I guess you are referring to the designations they have in the System Profiler Event Filter dialog. I think there are 
some typos, it actually should be MUnamp, not MMUnmap.

Hope this helps,


- Malte
AW: System Profiler: bad event decoding for MMap Name  
Hi Malte,

I appreciate your empathy, though I find it hard to teach my program to rely on your believing...

The decoding for this event is crap, probably a copy&paste error...
The raw event data seems to contain the correct name, but the decoding messes it up.

Let's see what the IDE folks will say.

Regards,
Daniel 

>-----Ursprüngliche Nachricht-----
>Von: Malte Mundt [mailto:community-noreply@qnx.com] 
>Gesendet: Donnerstag, 30. Juli 2009 14:09
>An: general-ide
>Betreff: Re: System Profiler: bad event decoding for MMap Name
>
>Hi Daniel,
>
>> While writing a reporting tool for MMap / MMUnmap I came across the 
>> 'MMap Name' events. They seem to get 'misunderpreted'. Here 
>is an example:
>
>> Q: What are these messages for? what kind of data are the 
>supposed to show?
>> Apparently, MMap Name is the result of a debug_info call - 
>whatever that is.
>
>I understand the 'MAPNAME' events happens when someone is 
>loading a DLL that is not automatically loaded when starting 
>the program. So MAPNAME shows up when dlopen() gets called to 
>load a shared object.
>
>As for the values, I *believe* the meanings are as follows:
>
>> Key, Value
>> addr, 0xf6aab8200000
>This should be the virtual address where the shared object is 
>being loaded to.
>
>> len, 7598523844058834276
>This should be the length of the shared object (seems a bit 
>high number though...)
>
>> name, x.so
>The name of the shared object being loaded.
>
>> pid, 32793
>> process, io-pkt-v6-hc
>The process that did the loading of the shared object.  
>
>> P.S.
>> Why is the unmap event called 'MMunmap'? why not just 
>'MUnmap'? If MM 
>> is for MemoryManager, than 'MMap' should be 'MMMap'...
>
>I guess you are referring to the designations they have in the 
>System Profiler Event Filter dialog. I think there are some 
>typos, it actually should be MUnamp, not MMUnmap.
>
>Hope this helps,
>
>
>- Malte
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post34889
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: System Profiler: bad event decoding for MMap Name  
Hi Daniel,

> The decoding for this event is crap, probably a copy&paste error...
I've tested a couple of kevs with mmap name events and they are all appearing properly decoded in the IDE. Which version of IDE are you using? What is traceprinter outputting for your mmap name events? Could you send me a copy of your kev to investigate?

Yes, there is is a typo with the MUnmap events in the IDE. They appear correctly in traceprinter's output. I've raised a PR to fix this spelling.

Thanks,
David

> The raw event data seems to contain the correct name, but the 
decoding messes 
> it up. ?
> 
> Let's see what the IDE folks will say.
> 
> Regards,
> Daniel 
> 
> >-----Ursprüngliche Nachricht-----
> >Von: Malte Mundt [mailto:community-noreply@qnx.com] 
> >Gesendet: Donnerstag, 30. Juli 2009 14:09
> >An: general-ide
> >Betreff: Re: System Profiler: bad event decoding for MMap Name
> >
> >Hi Daniel,
> >
> >> While writing a reporting tool for MMap / MMUnmap I came across the 
> >> 'MMap Name' events. They seem to get 'misunderpreted'. Here 
> >is an example:
> >
> >> Q: What are these messages for? what kind of data are the 
> >supposed to show?
> >> Apparently, MMap Name is the result of a debug_info call - 
> >whatever that is.
> >
> >I understand the 'MAPNAME' events happens when someone is 
> >loading a DLL that is not automatically loaded when starting 
> >the program. So MAPNAME shows up when dlopen() gets called to 
> >load a shared object.
> >
> >As for the values, I *believe* the meanings are as follows:
> >
> >> Key, Value
> >> addr, 0xf6aab8200000
> >This should be the virtual address where the shared object is 
> >being loaded to.
> >
> >> len, 7598523844058834276
> >This should be the length of the shared object (seems a bit 
> >high number though...)
> >
> >> name, x.so
> >The name of the shared object being loaded.
> >
> >> pid, 32793
> >> process, io-pkt-v6-hc
> >The process that did the loading of the shared object.  
> >
> >> P.S.
> >> Why is the unmap event called 'MMunmap'? why not just 
> >'MUnmap'? If MM 
> >> is for MemoryManager, than 'MMap' should be 'MMMap'...
> >
> >I guess you are referring to the designations they have in the 
> >System Profiler Event Filter dialog. I think there are some 
> >typos, it actually should be MUnamp, not MMUnmap.
> >
> >Hope this helps,
> >
> >
> >- Malte
> >
> >
> >
> >_______________________________________________
> >
> >General
> >http://community.qnx.com/sf/go/post34889
> >
> > 
>  
> *******************************************
> Harman Becker Automotive Systems GmbH
> Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
> Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
> Local Court Mannheim: Register No. 361395
> 
>  
> *******************************************
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
> loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If you are
>  not the intended recipient (or have received this e-mail in error) please 
> notify the sender immediately and delete this e-mail. Any unauthorized copying
> ,...
AW: AW: System Profiler: bad event decoding for MMap Name  
Hi David,

I'm using
Version: 4.5.1
Build id: I20090224

The decoder seems to use 8 bytes for addr and len, so addr swallows the dword for len, and len mistakes the first 8 
bytes of the name.

This is the raw data (from the raw data view in IDE):
                       My guess:
0x05 0x20 0x00 0x00   pid (0x2005 = 8197)
0x00 0x10 0x30 0x70   addr (0x70301000)
0x88 0x31 0x06 0x00   len (0x63188 = 405896)
0x6C 0x64 0x71 0x6E   name 'ldqn'
0x78 0x2E 0x73 0x6F        'x.so'
0x2E 0x32 0x00 0x00        '.2'

This is the decoded data:
Key, 	Value
addr, 	0x6318870301000
len, 	8030813655315604588
name, 	.2
pid, 	8197
process, slogger 

Trace properties:
       TRACE_FILE_NAME:: /dev/shmem/tracebuffer.kev
            TRACE_DATE:: Thu Jan  1 00:00:00 1970
       TRACE_VER_MAJOR:: 1
       TRACE_VER_MINOR:: 01
   TRACE_LITTLE_ENDIAN:: TRUE
        TRACE_ENCODING:: 16 byte events
       TRACE_BOOT_DATE:: Thu Jan  1 00:00:00 1970
  TRACE_CYCLES_PER_SEC:: 12375000
         TRACE_CPU_NUM:: 1
         TRACE_SYSNAME:: QNX
        TRACE_NODENAME:: dcw221mopftarget
     TRACE_SYS_RELEASE:: 6.3.2
     TRACE_SYS_VERSION:: 2009/02/11-15:53:32EST
         TRACE_MACHINE:: HB_SH7785
     TRACE_SYSPAGE_LEN:: 1776

traceprinter decodes the event correctly.

I suppose it is a bug in my IDE decoder.

Thanks,
Daniel

>-----Ursprüngliche Nachricht-----
>Von: David Cummings [mailto:community-noreply@qnx.com] 
>Gesendet: Donnerstag, 30. Juli 2009 15:51
>An: general-ide
>Betreff: Re: AW: System Profiler: bad event decoding for MMap Name
>
>Hi Daniel,
>
>> The decoding for this event is crap, probably a copy&paste error...
>I've tested a couple of kevs with mmap name events and they 
>are all appearing properly decoded in the IDE. Which version 
>of IDE are you using? What is traceprinter outputting for your 
>mmap name events? Could you send me a copy of your kev to investigate?
>
>Yes, there is is a typo with the MUnmap events in the IDE. 
>They appear correctly in traceprinter's output. I've raised a 
>PR to fix this spelling.
>
>Thanks,
>David
>
>> The raw event data seems to contain the correct name, but 
>the decoding 
>> messes it up. ?
>> 
>> Let's see what the IDE folks will say.
>> 
>> Regards,
>> Daniel
>> 
>> >-----Ursprüngliche Nachricht-----
>> >Von: Malte Mundt [mailto:community-noreply@qnx.com]
>> >Gesendet: Donnerstag, 30. Juli 2009 14:09
>> >An: general-ide
>> >Betreff: Re: System Profiler: bad event decoding for MMap Name
>> >
>> >Hi Daniel,
>> >
>> >> While writing a reporting tool for MMap / MMUnmap I came 
>across the 
>> >> 'MMap Name' events. They seem to get 'misunderpreted'. Here
>> >is an example:
>> >
>> >> Q: What are these messages for? what kind of data are the
>> >supposed to show?
>> >> Apparently, MMap Name is the result of a debug_info call -
>> >whatever that is.
>> >
>> >I understand the 'MAPNAME' events happens when someone is loading a 
>> >DLL that is not automatically loaded when starting the program. So 
>> >MAPNAME shows up when dlopen() gets called to load a shared object.
>> >
>> >As for the values, I *believe* the meanings are as follows:
>> >
>> >> Key, Value
>> >> addr, 0xf6aab8200000
>> >This should be the virtual address where the shared object is being 
>> >loaded to.
>> >
>> >> len, 7598523844058834276
>> >This should be the length of the shared object (seems a bit high 
>> >number though...)
>> >
>> >> name, x.so
>> >The name of the shared object being...
View Full Message
Re: AW: AW: System Profiler: bad event decoding for MMap Name  
> I'm using
> Version: 4.5.1
> Build id: I20090224
> 
> The decoder seems to use 8 bytes for addr and len, so addr swallows the dword 
> for len, and len mistakes the first 8 bytes of the name.
I looked back through our resolved defect list and it looks like this was an issue in with 4.5.1 and prior versions. The
 decoding was fixed in IDE 4.6.

AW: AW: AW: System Profiler: bad event decoding for MMap Name  
thanks! 

>-----Ursprüngliche Nachricht-----
>Von: David Cummings [mailto:community-noreply@qnx.com] 
>Gesendet: Donnerstag, 30. Juli 2009 16:49
>An: general-ide
>Betreff: Re: AW: AW: System Profiler: bad event decoding for MMap Name
>
>> I'm using
>> Version: 4.5.1
>> Build id: I20090224
>> 
>> The decoder seems to use 8 bytes for addr and len, so addr swallows 
>> the dword for len, and len mistakes the first 8 bytes of the name.
>I looked back through our resolved defect list and it looks 
>like this was an issue in with 4.5.1 and prior versions. The 
>decoding was fixed in IDE 4.6.
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post34918
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************