On 2013/10/1 2:39, Yicheng wrote:
Hi all, We, Yicheng and Qingping, are woking on implementing ktap FFI module. We have done some research on the topic, and have come up with a rough design for the project. The attachement is our proposal slides, which introduces what the module is for and our attack plan. As our final goal, users should be able to call C functions and access C structs easily in ktap scripts. Please feel free to comment or ask any question about our design. We will wait for feedback and start coding next week.
Very nice work. I fully agree "Make it work first and optimize/beautify it later" which you claimed in slide, so in first step we can ignore vmlinux debuginfo related stuff, only focus on C definition parse and ffi calling, you already planed this in step 1 and step 2. :) "keep VM as simple as possible", absolutely right, this is also the coding rule I followed, and there still have big space to improve in ktapvm. Two FFI sample scripts in slide seems too simple, and not fully demonstrated the attractive great usage of kernel FFI, I will try to think out moresample script to demonstrate FFI kernel, to make peoples love this feature :) (Linux kernel FFI is a cool thing, and maybe so useful beyond our imagination) of course this doesn't relevant with your design work, so don't need mind this.
ktap project already have wiki page in there, I'm thinking we can put the contents into wiki page, to let people know your work. I can take this wiki documentation job firstly if you don't mind. Thank you. jovi