Email List: Xaustin-review-lX
[All Lists]

Defect in XBD posix_trace_event_info structure

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XBD posix_trace_event_info structure
From: yyyyyyyy@xxxxxxxxxx
Date: Mon, 20 Feb 2006 21:07:44 GMT
Resent-date: Tue, 21 Feb 2006 09:26:20 +0000
Resent-from: Andrew Josey <yyyyyy@xxxxxxxxxxxxxxxxx>
Resent-message-id: <1060221092621.ZM1022@xxxxxx>
Resent-to: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
        Defect report from : William Toth , IBM Austin

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 397 line 13891 section posix_trace_event_info structure objection 
{WLT-VSRTC-2}

Problem:

Edition of Specification (Year): 2004

Defect code :  1. Error


The <trace.h> header shall define the posix_trace_event_info structure that 
includes at least the following members:

trace_event_id_t posix_event_id
pid_t posix_pid
void *posix_prog_address
int posix_truncation_status
struct timespec posix_timestamp
THR pthread_t posix_thread_id

A problem arises if the controller process is 32 bit and attempts to trace a 64 
bit process. posix_prog_process is defined as void *, so only 32 bits of the 64 
bit trace process address will be returned to the 32 bit controller process. 
Thus, leaving the process untrace-able by the controller process.

Action:

Change to an array type, possibly uint32_t[4], which would allow for further 
growth, i.e. 128 bit processes.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XBD posix_trace_event_info structure, mstrbill <=