[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Question about xentrace to trace s_time_t type of data

. snip..
> > > Thank you very much for your time!
> >
> > I have to be honest I hadn't actually dug in what was underneath
> > the macro. Just been using the macro and it had worked for me.
> >
> >
> âThank you for your time, anyway! :-)
> I think the issue is when I tried to trace a type of data larger than
> 32bits, such as the type s_time_t, the trace_var() result  becomes
> uninterpretable. Maybe I should never simply pass a type of data larger
> than 32bit to trace macro, but  I don't know (and I hope to know) why.  :-(

Oh, probably because of not packing. I would split all your
data types to be within a 32-bit unsigned int member. You can use
bit shiffting to pack data.

I presume the macros "fix" this for me as they will warn me when I try
to use an 64-bit value and I've had always to play the << game to "fit"
an 64-bit value in (by using two 32-bit arguments).
> âBest,
> Mengâ
> -----------
> Meng Xu
> PhD Student in Computer and Information Science
> University of Pennsylvania

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.