nicholas cianfrocco
|
Trace Event Log User Event data field empty in TAU 4.5 build 20080717
|
nicholas cianfrocco
07/29/2008 10:04 AM
post11191
|
Trace Event Log User Event data field empty in TAU 4.5 build 20080717
I'm using the latest build of TAU 4.5 dated 20080717.
When viewing the Trace Event Log or custom search, the IDE does not display the 'Data' field for any User Events (see
attached).
User events are inserted using both of the following, where int event is USREVENT 0:
TraceEvent(_NTO_TRACE_INSERTSUSEREVENT, int event, int data0, int data1)
TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT, int event, const char * str)
If I analyze the .kev file with traceprinter, the user data is in the .kev:
t:0x38d7306b CPU:00 USREVENT:EVENT:0, d0:0x7473736d d1:0x00747261
t:0x38d73140 CPU:00 USREVENT:EVENT:0, d0:0x00000028 d1:0x0000004f
Also, when creating a new search, the "Event Details" under the search dialog is surprisingly empty (which normally has
fields for STR, d0 and d1). See attached.
If the same .kev file is opened on another PC with the exact same configuration, the user event data is displayed
properly in Tau. Is there a configuration that is hiding the user data in the IDE?
thanks
|
|
|
Thomas Fletcher
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build
20080717
|
Thomas Fletcher
07/29/2008 5:09 PM
post11208
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build
20080717
nicholas cianfrocco wrote:
> I'm using the latest build of TAU 4.5 dated 20080717.
>
> When viewing the Trace Event Log or custom search, the IDE does not display the 'Data' field for any User Events (see
attached).
>
> User events are inserted using both of the following, where int event is USREVENT 0:
>
> TraceEvent(_NTO_TRACE_INSERTSUSEREVENT, int event, int data0, int data1)
> TraceEvent(_NTO_TRACE_INSERTUSRSTREVENT, int event, const char * str)
>
> If I analyze the .kev file with traceprinter, the user data is in the .kev:
>
> t:0x38d7306b CPU:00 USREVENT:EVENT:0, d0:0x7473736d d1:0x00747261
> t:0x38d73140 CPU:00 USREVENT:EVENT:0, d0:0x00000028 d1:0x0000004f
>
> Also, when creating a new search, the "Event Details" under the search dialog is surprisingly empty (which normally
has fields for STR, d0 and d1). See attached.
>
> If the same .kev file is opened on another PC with the exact same configuration, the user event data is displayed
properly in Tau. Is there a configuration that is hiding the user data in the IDE?
>
Nope, but you may have ended up triggering a bug of some sort. Is there
anything in the .log file for the workspace
that indicates a silent error has passed through?
You can also try manually specifying the formatting for your user
event. This can be done via the properties of a
single log file (Right click > Properties > System Profiler ...) or on a
more global level for all log files (Window >
Preferences > System Profiler ...)
The format of the file you are supposed to select here is not documented
(it is in the documentation food chain
somewhere, but not yet in the released documentation) so for the time
being I've included a sample configuration
file that is heavily documented and should be able to get you going.
Thomas
--- Sample event definition file ---
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Root tag for the event definition file format
-->
<eventdefinitions>
<!--
Events definitions are broken down by the event class.
The user event class is '6' (from <trace.h>), all event codes
in this section are part of this event class.
-->
<eventclass id="6" name="User Events">
<!--
The user event we want to describe is coded as event #12 within
the user event class (6). It is composed of a single 4 byte
(32 bit) unsigned integer that is followed by a null terminated
string. In C the structure might look something like:
struct event_twelve {
uint32_t myvalue;
char mystring[28]; /* Null Terminated */
};
And be emitted using code:
stuct event_twelve event;
... /* Fill event */
TraceEvent(_NTO_TRACE_INSERTCUSEREVENT, 12, &event, sizeof(event));
-->
<event id="12" sformat="%4u1x myvalue %1s0 mystring" />
<!--
In general an event is described as a serial series of event
payload definitions:
%<size><signed><count><format> <label>
Where:
<size>
Is the size in bytes (1,2,4,8)
<signed>
Is the signed/unsigned attribute of the value (s,u)
<count>
Is the number of items to read (ie an array). There is a
special case where if the <size> is 1 and there is _NO_
format then the <count> can be 0 to accomodate NULL
terminated strings.
<format> (optional)
Is a hint as to how to format this value: d=decimal,
x=hexadecimal, o=octal, c=character
<label>
Is a string label that can't contain the % character
-->
</eventclass>
</eventdefinitions>
|
|
|
nicholas cianfrocco
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
|
nicholas cianfrocco
07/30/2008 9:38 AM
post11232
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
> Nope, but you may have ended up triggering a bug of some sort. Is there
> anything in the .log file for the workspace
> that indicates a silent error has passed through?
No, the log is empty. I don't know if I should attempt a full reinstall of QNX as a last resort. I've had this problem
since IDE 3.x with QNX630.
> You can also try manually specifying the formatting for your user
> event. This can be done via the properties of a
> single log file (Right click > Properties > System Profiler ...) or on a
> more global level for all log files (Window >
> Preferences > System Profiler ...)
>
> The format of the file you are supposed to select here is not documented
> (it is in the documentation food chain
> somewhere, but not yet in the released documentation) so for the time
> being I've included a sample configuration
> file that is heavily documented and should be able to get you going.
>
> Thomas
Thanks! Although this did not work on my environment, I was able to successfully test this on other QNX installations
(using the same log file). The sample configuration documentation was sufficient and it works as expected.
Thanks again,
--nick
|
|
|
nicholas cianfrocco
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
|
nicholas cianfrocco
07/30/2008 10:00 AM
post11236
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
> Nope, but you may have ended up triggering a bug of some sort. Is there
> anything in the .log file for the workspace
> that indicates a silent error has passed through?
Here's the actual log for the workspace after starting Tau and opening the .kev log:
!SESSION 2008-07-30 09:57:28.015 -----------------------------------------------
eclipse.buildId=I20080717
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.update.configurator 2008-07-30 09:57:28.796
!MESSAGE C:\QNX630\target\qnx6\usr\help\eclipse\plugins is not a valid plugins directory.
!ENTRY org.eclipse.update.configurator 2008-07-30 09:57:28.812
!MESSAGE C:\QNX630\target\qnx6\docs\eclipse\plugins is not a valid plugins directory.
!ENTRY org.eclipse.ui.workbench 2 0 2008-07-30 09:57:33.406
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-07-30 09:57:33.406
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@f19d6e),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@f19d6e)),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@f19d6e),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@f19d6e)),sourcePriority=16640)
|
|
|
Thomas Fletcher
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build
20080717
|
Thomas Fletcher
07/31/2008 1:47 PM
post11292
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build
20080717
nicholas cianfrocco wrote:
>> Nope, but you may have ended up triggering a bug of some sort. Is there
>> anything in the .log file for the workspace
>> that indicates a silent error has passed through?
>>
>
> Here's the actual log for the workspace after starting Tau and opening the .kev log:
>
>
[ Log file snipped ]
Yeah ... that log file doesn't have anything of interest to this problem
I don't think.
Thomas
|
|
|
nicholas cianfrocco
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
|
nicholas cianfrocco
08/04/2008 11:26 AM
post11403
|
Re: Trace Event Log User Event data field empty in TAU 4.5 build 20080717
Reinstalled QNX632 and the same problem still exists.
There must be some other setup with this PC that is conflicting with eclipse and it's display of certain windows/fields.
Specifically in this case, the user event data information.
Thanks for your help anyway...
|
|
|
|