[libctf and DDB improvements] report #3 and #4

Daniel Lovasko daniel.lovasko at gmail.com
Mon Jun 23 02:12:57 UTC 2014


Hello,

Right now this things are done:
 - reading of the whole CTF format (labels, types, ...)
 - parent reference solving
 - decompressing
 - public API to query the CTF data
 - error reporting from public API functions
 - ctfdump rewrite (still in beta stage)
 - everything seems to be working for the /boot/kernel/kernel file

The public API should not change very much, but the implementation may get
some polishing. I have done some basic performance and memory utilisation
tests and currently it takes ~0.2 seconds for the ctfdump to print all
information to a file (basic stdout redirection) and the maximal resident
set is ~20MB. Both tests were done with the kernel file /boot/kernel/kernel
(which is zipped).

Near future updates may include using valgrind to find some memleaks or
lint to check for potential bugs and to make the code more straight. Also,
the documentation seems to be few steps behind the code and algorithms, I
should fix that ASAP.

After that, I need to consult with George whether to continue with the
library to provide writing API or leave it for now and work on the DDB part
of the project.

The ctfdump code can be found here [1]
Any requests or questions are, of course, highly welcome.

Best,
Daniel

[1] https://github.com/lovasko/ctfdump


More information about the soc-status mailing list