|
From: Ayodele T. <em...@st...> - 2003-10-22 05:54:01
|
I have seen the functions to print UCode instructions, but are there also functions to print the x86 instructions that can be used from a skin? Ayo -- --------------------------------------------------------------- Ayodele Bolaji Thomas "Joy in the Morning" Ph.D. Candidate Electrical Engineering Computer Systems Laboratory Stanford University Ayo...@st... --------------------------------------------------------------- |
|
From: Ayodele T. <em...@st...> - 2003-10-28 07:43:02
|
I am trying to print out some stats from my skin using VG_(printf) that
include floats. But when I try to use %f, %e, or %g, nothing prints. Is
Valgrind capable of printing floats using the included VG_(...) functions?
(i.e.)
float val = 0.5;
VG_(printf)("P: %f ", val);
outputs ---> P:
expected ---> P: 0.5
Also, has anyone tried implementing VG_(fprintf)? I need the ability to
print different stats to different files.
Ayo
--
---------------------------------------------------------------
Ayodele Bolaji Thomas "Joy in the Morning"
Ph.D. Candidate Electrical Engineering
Computer Systems Laboratory
Stanford University
Ayo...@st...
Support our troops. Support our country. Pray for Peace. \o/
"We succeed, not because of Affirmative Action, but in spite of
the conditions that make it necessary" (ABE '98)
"War may sometimes be a necessary evil. But no matter how necessary,
it is always an evil, never a good. We will not learn to live
together in peace by killing each other's children." Jimmy Carter '02
---------------------------------------------------------------
|
|
From: Tom H. <th...@cy...> - 2003-10-28 08:05:26
|
In message <200...@ca...>
Ayodele Thomas <em...@st...> wrote:
> I am trying to print out some stats from my skin using VG_(printf) that
> include floats. But when I try to use %f, %e, or %g, nothing prints. Is
> Valgrind capable of printing floats using the included VG_(...)
> functions?
Not at the moment no - the core routine is VG_(vprintf) in vg_mylibc.c
which doesn't handle any of those format characters at present.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: Nicholas N. <nj...@ca...> - 2003-10-28 08:32:13
|
On Mon, 27 Oct 2003, Ayodele Thomas wrote: > I am trying to print out some stats from my skin using VG_(printf) that > include floats. But when I try to use %f, %e, or %g, nothing prints. Is > Valgrind capable of printing floats using the included VG_(...) functions? No, but you can fake it, with a bit of effort: see percentify() in Cachegrind for an example. > Also, has anyone tried implementing VG_(fprintf)? I need the ability to > print different stats to different files. You can use VG_(sprintf)() and VG_(write)() to achieve this. See Cachegrind for some examples. This primitiveness can be annoying. Some work is being done towards allowing Valgrind to use the standard libraries, but it's still a long way from completion. N |
|
From: Nicholas N. <nj...@ca...> - 2003-10-23 05:34:57
|
On Tue, 21 Oct 2003, Ayodele Thomas wrote: > I have seen the functions to print UCode instructions, but are there also > functions to print the x86 instructions that can be used from a skin? Not as such, unfortunately. If you use --trace-codegen=10001 you will see the initial x86 and final x86 instructions printed, though. N |