|
From: Henrik A. <alg...@ho...> - 2004-03-30 20:49:07
Attachments:
tcdrain.patch
|
Hi! I am using Valgrind in a project and it is a very helpful tool and I really appreciate it. However, when I am calling the function tcdrain() from within a thread in my program, Valgrind stops and outputs: UNIMPLEMENTED FUNCTION: tcdrain There is a bug report for this in the bugzilla bug tracking system where it is set as resolved (bug id 70344). I am using the latest CVS version and the problem is still there. I looked a bit in the code and implemented the function in the same way as fsync() is implemented. I have tested it for myself and it is working for me (tm). A patch is attached with tcdrain implemented. The affected files are coregrind/vg_libpthread_unimp.c and coregrind/vg_libpthread.c I would be thankful if someone with more knowledge about the inner workings of Valgrind could take a look at this. Best regards, Henrik Algestam |
|
From: Tom H. <th...@cy...> - 2004-03-31 15:24:29
|
In message <200...@ho...>
Henrik Algestam <alg...@ho...> wrote:
> However, when I am calling the function tcdrain() from within a thread
> in my program, Valgrind stops and outputs:
>
> UNIMPLEMENTED FUNCTION: tcdrain
>
> There is a bug report for this in the bugzilla bug tracking system where
> it is set as resolved (bug id 70344). I am using the latest CVS version
> and the problem is still there.
It will still be there, as that function has never been implemented
in valgrind's libpthread. I'm not quite sure why the reporter of that
bug managed to fix his problem by using a different version of valgrind.
> A patch is attached with tcdrain implemented. The affected files are
> coregrind/vg_libpthread_unimp.c and coregrind/vg_libpthread.c
Looks good to me. I've committed it.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|