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

[ktap] Re: Issues on making with different env args (Jovi Zhangwei)

On Wed, Dec 11, 2013 at 9:43 AM, Qingping Hou dave2008713@xxxxxxxxx wrote: On Mon 09 Dec 2013 05:15:05 AM EST, Jovi Zhangwei wrote: On Mon, Dec 9, 2013 at 6:10 AM, Yicheng qycqycqycqycqyc@xxxxxxxxx...

View Article


[ktap] [PATCH 1/3] Support ffi.new syntax (Yicheng Qin)

From: Qingping Hou qingping.hou@xxxxxxxxx It parses ffi.new and does necessary interpretation. Example: ffi.new(int[5]) indicates to allocate space which could contain 5 ints, and is translated to base...

View Article


[ktap] [PATCH 2/3] Support ffi.new logic in vm (Yicheng Qin)

It would allocate the space to contain the array, and treat the return value as ktap_cdata in pointer type. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx Signed-off-by: Qingping Hou...

View Article

[ktap] [PATCH 3/3] New tests for ffi.new (Yicheng Qin)

Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx Signed-off-by: Qingping Hou qingping.hou@xxxxxxxxx --- test/ffi/cparser_test.c | 26 +++++++++++++------------- test/ffi/ffi_test.kp | 7 +++++++...

View Article

[ktap] Re: [PATCH 1/3] Support ffi.new syntax (Jovi Zhangwei)

On Wed, Dec 11, 2013 at 10:56 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx wrote: From: Qingping Hou qingping.hou@xxxxxxxxx It parses ffi.new and does necessary interpretation. Example: ffi.new(int[5])...

View Article


[ktap] Re: [PATCH 1/3] Support ffi.new syntax (Yicheng)

2013/12/10 Jovi Zhangwei jovi.zhangwei@xxxxxxxxx On Wed, Dec 11, 2013 at 10:56 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx wrote: From: Qingping Hou qingping.hou@xxxxxxxxx It parses ffi.new and does...

View Article

[ktap] Re: [PATCH 1/3] Support ffi.new syntax (Jovi Zhangwei)

On Wed, Dec 11, 2013 at 12:16 PM, Yicheng qycqycqycqycqyc@xxxxxxxxx wrote: 2013/12/10 Jovi Zhangwei jovi.zhangwei@xxxxxxxxx On Wed, Dec 11, 2013 at 10:56 AM, Yicheng Qin qycqycqycqycqyc@xxxxxxxxx...

View Article

[ktap] Re: [PATCH 1/3] Support ffi.new syntax (Qingping Hou)

On Wed 11 Dec 2013 12:04:45 AM EST, Jovi Zhangwei wrote: On Wed, Dec 11, 2013 at 12:16 PM, Yicheng qycqycqycqycqyc@xxxxxxxxx wrote: 2013/12/10 Jovi Zhangwei jovi.zhangwei@xxxxxxxxx On Wed, Dec 11, 2013...

View Article


[ktap] Re: [PATCH 1/3] Support ffi.new syntax (Jovi Zhangwei)

On Wed, Dec 11, 2013 at 1:50 PM, Qingping Hou dave2008713@xxxxxxxxx wrote: On Wed 11 Dec 2013 12:04:45 AM EST, Jovi Zhangwei wrote: On Wed, Dec 11, 2013 at 12:16 PM, Yicheng qycqycqycqycqyc@xxxxxxxxx...

View Article


[ktap] [PATCH v3 01/16] Support array subscription (Yicheng Qin)

Support to read from c array subscription and write to c array subscription, in which c array is the result of ffi.new call. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- include/ktap_ffi.h...

View Article

[ktap] [PATCH v3 02/16] Fix undefined-struct bug (Yicheng Qin)

Set ctype to be defined before inserting into ctype array. This patch is used to make 'ffi.new(struct a[1])' parsed successfully. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx ---...

View Article

[ktap] [PATCH v3 03/16] Add new part in ffi_test.kp (Yicheng Qin)

The new part is to test array subscription and struct reference. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- test/ffi/ffi_test.kp | 24 ++++++++++++++++++++++++ test/ffi/ktap_ffi_test.c |...

View Article

[ktap] [PATCH v3 04/16] Support struct reference (Yicheng Qin)

Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- include/ktap_ffi.h | 23 +++++++++----- runtime/ffi/cdata.c | 82 +++++++++++++++++++++++++++++++++++++++++++----- runtime/ffi/ffi_util.c | 19...

View Article


[ktap] [PATCH v3 05/16] List csymbols when using option -b (Yicheng Qin)

Debug utility for csymbols. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- userspace/dump.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ userspace/main.c | 3 +++ 2 files...

View Article

[ktap] [PATCH v3 06/16] Fix the bug when creating new c pointer (Yicheng Qin)

The size of space to be allocated for data that it points to is calculated wrong before, because we don't figure out the correct type of the data. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx...

View Article


[ktap] [PATCH v3 07/16] Fix the bug on wrong offset in struct (Yicheng Qin)

The align of target member should be considered when calculating its offset in struct. Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- runtime/ffi/cdata.c | 1 + runtime/ffi/ffi_util.c | 5...

View Article

[ktap] [PATCH v3 08/16] Refactor the way to parse c struct (Yicheng Qin)

Originally, when struct variable is used, the struct has to be defined before. Or it comes to the error that cannot find struct csymbol. Now, a fake struct csymbol is created at this time, and will be...

View Article


[ktap] [PATCH v3 09/16] Support union type (Yicheng Qin)

Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- include/ktap_ffi.h | 12 ++++---- runtime/ffi/cdata.c | 14 ++++++---- runtime/ffi/ffi_call.c | 5 ++-- runtime/ffi/ffi_symbol.c | 2 ++...

View Article

[ktap] [PATCH v3 10/16] Support array member in struct/union declaration...

Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- include/ktap_ffi.h | 2 ++ runtime/ffi/cdata.c | 3 ++- runtime/ffi/ffi_util.c | 41 ++++++++++++++++++++++++++++++----------- test/ffi/ffi_test.kp...

View Article

[ktap] [PATCH v3 11/16] Support unnamed member in record type (Yicheng Qin)

Signed-off-by: Yicheng Qin qycqycqycqycqyc@xxxxxxxxx --- include/ktap_ffi.h | 7 +++--- runtime/ffi/cdata.c | 22 +++++++++---------- runtime/ffi/ffi_util.c | 56...

View Article
Browsing all 345 articles
Browse latest View live