This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001253] New: Kernel tests on small memory targets


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001253

           Summary: Kernel tests on small memory targets
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: low
         Component: Other
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: ilijak@siva.com.mk
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1269)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1269)
tm_basic.cxx

Some kernel tests have execution or compilation problems when applied on
targets with small RAM (example 32Kib LPC-1766-STK). Submitted patches provide
for application of these tests on devices with 32 KiB RAM. They have been
tested on LPC-1766-STK with kernel template.

Dependent on behavior and proposed solution (patch) I have sorted the problems
in 3 groups:

1. tm_basic

   behaviour: Compiles, but hangs during execution.

   cause: dependent on system RAM amount, array is defined for NTEST_THREADS
threads. If RAM is small enough (such as 32KiB) this can be 1 which is in
conflict with some tests that employ 2 threads.

   proposal: At least 2 thread members are enforced. Compiles and executes
complete test on target with 32KiB. For lower memory devices ld should report
error.

2. bin_sem2.cxx kmutex4 timeslice2 mutex3 timeslice kmutex3 thread_gdb

   behavior: ld complains for not enough memory.

   proposal: Dependent on system RAM tests are generated with less threads. For
"large" systems number of threads remains as before.

2. fptests 

   behavior: Linker complains for not enough memory.

   proposal (workaround): In order to enable error free compilation of kernel
tests this program is modified so it is compiled wihout threads. On execution a
message is printed: "This platform doesn't have enough RAM to run fptest.".

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]