On Thu, 2008-12-18 at 17:00 +0530, gowrishankar wrote: > Hi Subrata, > It seems, these tests have become obsolete. > > We no longer can test module creation/deletion as it does or atleast in > equivalent way, > as modularization is completely simplified than 2.5 days; we can not > spawn a system call > check if return value is ok. > Having a walk on module creation in 2.6 can better explain than my words. >
Thanks. We may then need to completely remove these tests and try to find out some replacement for them. Regards-- Subrata > afaik, it is nothing to do with any assembler part. > > Thanks, > Gowri > Subrata Modak wrote: > > Gowri, > > > > I reported the following failures sometimes back. Can you see if they > > also has something to do with ASSEMBLER code issue(s) ? > > > > Regards-- > > Subrata > > > > -------- Forwarded Message -------- > > From: Garrett Cooper <[email protected]> > > To: [email protected] > > Cc: ltp-list <[email protected]>, Jin Bing Guo > > <[email protected]>, Daniel Gollub <[email protected]>, Cai Qian > > <[email protected]>, Mike Frysinger <[email protected]>, elder.costa > > <[email protected]> > > Subject: Re: [COMPILATION ERROR] for testcases/kernel/module/* > > Date: Wed, 29 Oct 2008 10:14:41 -0700 > > > > On Wed, Oct 29, 2008 at 3:21 AM, Subrata Modak > > <[email protected]> wrote: > > > >> Hi, > >> > >> I was investigating and found that: ltp/testcases/kernel/module/* test > >> cases are not built/installed and run. However the ltp/runtest/ > >> directory tells that ltp/runtest/modules have the provision to run the > >> following tests: > >> > >> delete_module01, > >> delete_module02, > >> delete_module03, > >> > >> But no clue why ltp/testcases/kernel/Makefile does not build the module > >> directory. And no mention of why: > >> > >> create_module01, > >> query_module01, > >> query_module02, & > >> query_module03 > >> > >> does not run. > >> > >> On trying to build them, i got the first error: > >> > >> cc -Wall -O -g -I../../../../include create_module01.c > >> -L../../../../lib -lltp -o create_module01 > >> create_module01.c:68:24: error: asm/atomic.h: No such file or directory > >> create_module01.c:69:26: error: linux/module.h: No such file or > >> directory > >> create_module01.c: In function 'main': > >> create_module01.c:108: warning: implicit declaration of function > >> 'create_module' > >> create_module01.c:117: warning: implicit declaration of function > >> 'delete_module' > >> > >> On removing the inclusion of "asm/atomic.h" & "linux/module.h", i was > >> able to build just "create_module01". And the remaining gave me the > >> following error: > >> > >> cc -Wall -O -g -I../../../../include create_module02.c > >> -L../../../../lib -lltp -o create_module02 > >> create_module02.c:124: error: variably modified 'longmodname' at file > >> scope > >> create_module02.c:155: warning: integer constant is too large for 'long' > >> type > >> create_module02.c:155: warning: large integer implicitly truncated to > >> unsigned type > >> create_module02.c: In function 'main': > >> create_module02.c:186: warning: implicit declaration of function > >> 'create_module' > >> create_module02.c: In function 'cleanup2': > >> create_module02.c:250: warning: implicit declaration of function > >> 'delete_module' > >> make: *** [create_module02] Error 1 > >> > >> > >> > >> cc -I../../../../include -Wall delete_module01.c -L../../../../lib -lltp > >> -o delete_module01 > >> delete_module01.c: In function 'main': > >> delete_module01.c:117: warning: implicit declaration of function > >> 'delete_module' > >> cc -I../../../../include -Wall delete_module02.c -L../../../../lib -lltp > >> -o delete_module02 > >> delete_module02.c:116: error: variably modified 'longmodname' at file > >> scope > >> delete_module02.c: In function 'main': > >> delete_module02.c:168: warning: implicit declaration of function > >> 'delete_module' > >> delete_module02.c:170: warning: format '%d' expects type 'int', but > >> argument 2 has type 'long int' > >> delete_module02.c:170: warning: format '%d' expects type 'int', but > >> argument 3 has type 'long int' > >> make: *** [delete_module02] Error 1 > >> > >> > >> > >> cc -I../../../../include -Wall query_module01.c -L../../../../lib -lltp > >> -o query_module01 > >> query_module01.c:93:24: error: asm/atomic.h: No such file or directory > >> query_module01.c:94:26: error: linux/module.h: No such file or directory > >> query_module01.c:123: error: variably modified 'longmodname' at file > >> scope > >> query_module01.c:125: error: variably modified 'out_buf' at file scope > >> query_module01.c:139: error: 'QM_MODULES' undeclared here (not in a > >> function) > >> query_module01.c:142: error: 'QM_DEPS' undeclared here (not in a > >> function) > >> query_module01.c:145: error: 'QM_REFS' undeclared here (not in a > >> function) > >> query_module01.c:148: error: 'QM_INFO' undeclared here (not in a > >> function) > >> query_module01.c:151: error: 'QM_SYMBOLS' undeclared here (not in a > >> function) > >> query_module01.c: In function 'main': > >> query_module01.c:191: warning: implicit declaration of function > >> 'query_module' > >> query_module01.c: In function 'test_functionality': > >> query_module01.c:254: error: dereferencing pointer to incomplete type > >> query_module01.c:254: error: request for member 'flags' in something not > >> a structure or union > >> query_module01.c:255: error: 'MOD_RUNNING' undeclared (first use in this > >> function) > >> query_module01.c:255: error: (Each undeclared identifier is reported > >> only once > >> query_module01.c:255: error: for each function it appears in.) > >> query_module01.c:255: error: invalid operands to binary & > >> > >> > >> And when i ran the successfully compiled "create_module01", i got the > >> following output: > >> > >> # ./create_module01 > >> create_module01 1 CONF : This test will not work on kernels after > >> 2.5.48 > >> > >> > >> Now i have the following questions: > >> > >> 1) Has anybody tried to compile them before, > >> 2) Is there any necessity to execute these tests now ? > >> > >> If yes, how do we solve this and integrate them ? > >> > >> Regards-- > >> Subrata > >> > > > > Shoot -- that's an outstanding issue that I noticed a while ago that > > needs to be fixed (forgot about it until now). > > > > query_module doesn't compile for me because of a #error reported issue > > and there was something weird with delete_module where it wasn't > > finding the Makefile.inc file, so I gave up... probably an accidental > > error on my part. > > > > -Garrett > > > > > > > ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
