Quantcast
Channel: ktap
Browsing all 345 articles
Browse latest View live
↧

[ktap] [PATCH v5 0/9] FFI support for ktap (Yicheng Qin)

This patch set implements basic FFI support for ktap. A brief overview of current design: * user define needed C symbols in ktap script (functions, structs, etc) * C symbols get compiled through...

View Article


[ktap] [PATCH v5 1/9] Introduce ffi_type, csymbol and ktap_cdata (Yicheng Qin)

ffi type is the basic type used in ffi module, which has fixed size and alignment. csymbol means symbol for c type, which is designed to represent all possible c types in its format. It doesn't contain...

View Article


[ktap] [PATCH v5 2/9] Cparser to parse C declareation (Yicheng Qin)

Cparser is able to interpret C declareation, including basic types, aggregate types, type definition and so on. C declareations are converted into csymbol type, which provides type information for...

View Article

[ktap] [PATCH v5 3/9] Integrate cparser into ktap compiler (Yicheng Qin)

When ktapc finds a 'cdef' token, it passes the C code to cparser module, which then generates c symbols accordingly. This patch also handles how to dump c symbols into vm chunk. Signed-off-by: Yicheng...

View Article

[ktap] [PATCH v5 4/9] Introduce ffi call module in vm (Yicheng Qin)

kp_ffi_call function calls into C functions according to arguments passed in ktap vm stack. Only support x86_64 platform now, but it is rather easy to add support for new platforms. Signed-off-by:...

View Article


[ktap] [PATCH v5 5/9] Integrate ffi call module into vm (Yicheng Qin)

From: Qingping Hou qingping.hou@xxxxxxxxx This patch adds following features to vm: * load csymbols from vm chunk file * call C functions using ffi call module * ffi library with functions that are...

View Article

[ktap] [PATCH v5 6/9] update gitignore file for FFI related files (Yicheng Qin)

* dont ignore .s file * ignore cparser_test binary Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx Signed-off-by: Qingping Hou qingping.hou@xxxxxxxxx --- .gitignore | 1 - test/ffi/.gitignore | 2...

View Article

[ktap] [PATCH v5 7/9] Modify makefile to build ffi module (Yicheng Qin)

This patch adds rule to build ffi module into ktap. Also, it introduces FFI flag to enable/disable FFI funtionality. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx Signed-off-by: Qingping Hou...

View Article


[ktap] [PATCH v5 8/9] Add ffi test cases and sample script (Yicheng Qin)

Test cases include: * cparser ability * C function call on user-defined kernel functions * C function call on native kernel functions FFI sample scripts include: * sched_clock * halt * printk ...

View Article


[ktap] [PATCH v5 9/9] add CONFIG_KTAP_FFI option to Kconfig (Yicheng Qin)

From: Qingping Hou qingping.hou@xxxxxxxxx Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx Signed-off-by: Qingping Hou qingping.hou@xxxxxxxxx --- Kconfig | 11 +++++++++++ 1 file changed, 11...

View Article

[ktap] Re: [PATCHv4 0/9] FFI support for ktap (Yicheng)

I have pushed it here: Feel free to try it and provide feedback to us! Thanks. 2013/12/4 Azat Khuzhin a3at.mail@xxxxxxxxx On Mon, Dec 2, 2013 at 10:48 AM, Qingping Hou dave2008713@xxxxxxxxx ...

View Article

[ktap] Tutorial improvements (Grzegorz Milos)

Hello, I started going through the tutorial and fixing the language a little. I'm sending my patches in the next few emails. Please let me know what you think of this work, plus let me know about any...

View Article

[ktap] Re: Tutorial improvements (Azat Khuzhin)

On Thu, Dec 5, 2013 at 2:05 AM, Grzegorz Milos grzegorz.milos@xxxxxxxxx wrote: Hello, I started going through the tutorial and fixing the language a little. I'm sending my patches in the next few...

View Article


[ktap] Re: [PATCHv4 0/9] FFI support for ktap (Azat Khuzhin)

On Wed, Dec 4, 2013 at 11:40 PM, Yicheng qycqycqycqycqyc@xxxxxxxxx wrote: I have pushed it here: Thanks! Feel free to try it and provide feedback to us! Thanks. ...

View Article

[ktap] Re: Tutorial improvements (Jovi Zhangwei)

On Thu, Dec 5, 2013 at 6:05 AM, Grzegorz Milos grzegorz.milos@xxxxxxxxx wrote: Hello, I started going through the tutorial and fixing the language a little. I'm sending my patches in the next few...

View Article


[ktap] Re: [PATCH v5 2/9] Cparser to parse C declareation (Jovi Zhangwei)

On Thu, Dec 5, 2013 at 3:36 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx wrote: Cparser is able to interpret C declareation, including basic types, aggregate types, type definition and so on. C...

View Article

[ktap] Re: [PATCH v5 7/9] Modify makefile to build ffi module (Jovi Zhangwei)

On Thu, Dec 5, 2013 at 3:36 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx wrote: This patch adds rule to build ffi module into ktap. Also, it introduces FFI flag to enable/disable FFI funtionality....

View Article


[ktap] Re: [PATCH v5 7/9] Modify makefile to build ffi module (Jovi Zhangwei)

On Fri, Dec 6, 2013 at 2:45 AM, Qingping Hou qingpinghou@xxxxxxxxx wrote: On Thu 05 Dec 2013 04:45:42 AM EST, Jovi Zhangwei wrote: On Thu, Dec 5, 2013 at 3:36 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx...

View Article

[ktap] Re: [PATCH v5 7/9] Modify makefile to build ffi module (Qingping Hou)

On Thu 05 Dec 2013 09:50:05 PM EST, Jovi Zhangwei wrote: On Fri, Dec 6, 2013 at 2:45 AM, Qingping Hou qingpinghou@xxxxxxxxx wrote: On Thu 05 Dec 2013 04:45:42 AM EST, Jovi Zhangwei wrote: On Thu, Dec...

View Article

[ktap] A syntax error when executing helloworld.kp (wyang)

Hi Jovi, I am newie on ktap, and tried to play ktap, but i ran into a issue after pulling the latest git repo, and then rebuild ktap. ktap hints that there is a syntax error when executing...

View Article
Browsing all 345 articles
Browse latest View live