[Ltrace-devel] Quick question about conf file

Thierry Fauck@linux.vnet.ibm.com thierry at linux.vnet.ibm.com
Tue Apr 22 15:36:41 UTC 2014


Hello,

I get a corner case where a function returns a struct of string < 16
Bytes, I get an optimization.
 
What should be the conf file to have in the info structure the size of
the string ?
is
    struct(array(char,16)) struct_func_str16(struct(string[16]));

the best defintion, knowing that the output of the array won't be
truncated.... and I would check for the 16 chars ?

If I say struct(string[16]) struct_func_str16(struct(string[16]));
I don't have the proper size if the size is > 17

What did I miss ?

Thanks
Thierry

-- 
Thierry Fauck @ linux.vnet.ibm




More information about the Ltrace-devel mailing list