Commit Graph

3522 Commits

Author SHA1 Message Date
Joel Sherrill
979bda9587 tm07: Split some code into new spnotepad02.
Use of deprecated notepads in sp07 needs further work.

Updates #2305.
2015-03-17 10:05:04 -05:00
Joel Sherrill
0e6f915c8e testsuites/samples/minimum/init.c: Notepads no longer need to be disabled
They are disabled by default as they are deprecated.
2015-03-17 10:05:04 -05:00
Sebastian Huber
8c7eb0039c testsupport: Add worker setup handler
Add rtems_test_parallel_get_task_id().
2015-03-17 10:32:57 +01:00
Sebastian Huber
dc5e5f4448 tmtests/tmfine01: New test 2015-03-16 13:52:19 +01:00
Gedare Bloom
3ac681191e cpukit: deprecate notepads
Deprecate Classic API Notepads. Mark task_set/get_note() with
the deprecated attribute, and also mark the notepads field.

Replace disable with enable option for notepads in confdefs.h,
and make notepads disabled by default. The previous option
CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and
will emit a compile-time warning. A new option
CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn
on notepads, but it also will emit a compile-time warning
to indicate that notepads are deprecated.

Closes #2265
2015-03-10 12:53:07 -04:00
Sebastian Huber
1f671565ab libcsupport: Delete superfluous _gettimeofday() 2015-03-10 08:56:06 +01:00
Sebastian Huber
40ecd117b2 sysconf: Add _SC_NPROCESSORS_(CONF|ONLN) 2015-03-09 15:25:24 +01:00
Sebastian Huber
19799fb0f7 libtests/stringto01: Fix for GCC 5.0 2015-03-09 13:52:49 +01:00
Joel Sherrill
19a1f6b2cc Temporarily disable libdl for h8300
The h8300 gets a linking error for the dl0* tests. This temporarily
disables libdl until that can be investigated.

updates 2284.
2015-03-06 20:04:25 -06:00
Joel Sherrill
ee113c22f8 dltests-broken-on-this-bsp.tcfg: New file used for dl* tests work around 2015-03-06 20:04:24 -06:00
Joel Sherrill
a726ca6488 Temporarily disable libdl for lm32
There is a GCC ICE when building libdl. This temporarily disables
building libdl until that is resolved.

updates 2283.
2015-03-06 20:04:24 -06:00
Joel Sherrill
1d061ee37e Temporarily disable libdl for v850
There is an issue linking dl0* which has not been resolved.
This issue is being tracked but is not considered a release
blocker. This patch is a workaround which disables libdl
for the v850 until the ticket is resolved.

updates 2260.
2015-03-06 20:04:24 -06:00
Joel Sherrill
9bef63ea8e Temporarily disable libdl for bfin
There is an issue linking dl0* which has not been resolved.
This issue is being tracked but is not considered a release
blocker. This patch is a workaround which disables libdl
for the bfin until the ticket is resolved.

updates 2252.
2015-03-06 20:04:23 -06:00
Alexander Krutwig
33b72fde61 testsupport: Add cascade option to parallel test 2015-03-06 16:20:20 +01:00
Sebastian Huber
7d6e94b12a score: Implement fine-grained locking for events
Use the ISR lock of the thread object to protect the event state and
use the Giant lock only for the blocking operations.

Update #2273.
2015-03-05 11:36:45 +01:00
Sebastian Huber
222dc77583 score: Add and use _Thread_Do_dispatch()
The _Thread_Dispatch() function is quite complex and the time to set up
and tear down the stack frame is significant.  Split this function into
two parts.  The complex part is now in _Thread_Do_dispatch().  Call
_Thread_Do_dispatch() in _Thread_Enable_dispatch() only if necessary.
This increases the average case performance.

Simplify _Thread_Handler() for SMP configurations.

Update #2273.
2015-03-05 11:36:19 +01:00
Sebastian Huber
b8a5abf3fa score: Update _Thread_Heir only if necessary
Previously, the _Thread_Heir was updated unconditionally in case a new
heir was determined.  The _Thread_Dispatch_necessary was only updated in
case the executing thread was preemptible or an internal thread was
unblocked.  Change this to update the _Thread_Heir and
_Thread_Dispatch_necessary only in case the currently selected heir
thread is preemptible or a dispatch is forced.  Move the schedule
decision into the change priority operation and use the schedule
operation only in rtems_task_mode() in case preemption is enabled or an
ASR dispatch is necessary.  This is a behaviour change.  Previously, the
RTEMS_NO_PREEMPT also prevented signal delivery in certain cases (not
always).  Now, signal delivery is no longer influenced by
RTEMS_NO_PREEMPT.  Since the currently selected heir thread is used to
determine if a new heir is chosen, non-preemptible heir threads
currently not executing now prevent a new heir.  This may have an
application impact, see change test tm04.  Document this change in sp04.

Update #2273.
2015-03-05 11:36:19 +01:00
Sebastian Huber
d00612875b tests: Fix warnings 2015-03-05 11:23:10 +01:00
Alexander Krutwig
7f577d3a56 tests: Refactor parallel test execution 2015-03-05 09:12:14 +01:00
Joel Sherrill
461a9302bc capture01: Update screen file 2015-03-04 14:53:36 -06:00
Joel Sherrill
57a914a3fb Add simple test for scandir() on all file systems tested
updates 1394
2015-03-04 14:46:14 -06:00
Gedare Bloom
56c7192606 psxtests/psxclock01: use clock() and CLOCKS_PER_SEC
Closes #2182
2015-03-04 15:38:53 -05:00
Sebastian Huber
e50297e36c score: ISR lock C/C++ compatiblity issue
Empty structures are implementation-defined in C.  GCC gives them a size
of zero.  In C++ empty structures have a non-zero size.

Add ISR_LOCK_DEFINE() to define ISR locks for structures used by C and
C++.

Update #2273.
2015-03-04 12:03:04 +01:00
Sebastian Huber
c5436ff482 smptests/smpcapture01: Avoid livelock condition 2015-03-04 11:59:45 +01:00
Sebastian Huber
0324410836 smptests: Do not use Giant directly
This ensures that thread dispatching is disabled.  A Giant
acquire/release pair must take place in the same processor.
2015-03-04 07:46:16 +01:00
Sebastian Huber
6357e14aac psxtests/psx05: Adjust test case
Update #2170.
2015-02-26 12:55:43 +01:00
Sebastian Huber
bd1c92480a sptests/sp76: Check that the right task executes 2015-02-26 10:20:47 +01:00
Gedare Bloom
83fe4468bc psxtests: add string param to printf. closes #2241 2015-02-23 09:59:49 -05:00
Sebastian Huber
a45dfa1447 IMFS: Fix copy on write for linfiles 2015-02-20 09:42:15 +01:00
Sebastian Huber
a3316f4706 sptests: Add missing test extension 2015-02-19 11:12:01 +01:00
Sebastian Huber
4e3d9a4d6c score: Make <rtems/score/atomic.h> available
Make <rtems/score/atomic.h> available for all RTEMS configurations.  Use
inline functions instead of macros.  Use ISR disable/enable on
uni-processor configurations to ensure atomicity.

Update #2273.
2015-02-19 10:05:48 +01:00
Sebastian Huber
c34f94f72d score: Add _CPU_SMP_Prepare_start_multitasking()
Update #2268.
2015-02-17 09:41:27 +01:00
Sebastian Huber
a43a34666e IMFS: Implement variable length node names
This reduces the average node size and adds more flexibility.
2015-02-15 11:26:39 +01:00
Sebastian Huber
f78549221b IMFS: Add CONFIGURE_IMFS_DISABLE_READDIR 2015-02-14 21:34:42 +01:00
Sebastian Huber
249766c53f IMFS: Rename CONFIGURE_IMFS_DISABLE_FCHMOD
Rename CONFIGURE_IMFS_DISABLE_FCHMOD to CONFIGURE_IMFS_DISABLE_CHMOD.
2015-02-13 21:26:17 +01:00
Sebastian Huber
40a18d7f9a IMFS: Add CONFIGURE_IMFS_DISABLE_MKNOD_FILE 2015-02-13 21:11:55 +01:00
Sebastian Huber
12eee4fdb5 IMFS: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
Resurrect CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM.
2015-02-13 20:53:41 +01:00
Joel Sherrill
b57a6a711a psxhdrs: Reorganize into subdirectories per .h file and rename files
This is a better organization and makes it clearer which file
is testing which method from which header file.
2015-02-12 15:30:44 -06:00
Joel Sherrill
86076f3f12 psxhdrs: Remove test of pthread_attr_[gs]et_cputime
These methods are no longer in the tree and the API tests should
have been removed.

closes 1981
2015-02-12 15:23:33 -06:00
Joel Sherrill
eedaf9baba psxhdrs: Add tests for <sys/socket.h> API compliance 2015-02-12 15:23:33 -06:00
Sebastian Huber
a9df916988 IMFS: Add fine grained configuration
Remove miniIMFS.  Statically initialize the root IMFS.

Add configuration options to disable individual
features of the root IMFS, e.g.
  o CONFIGURE_IMFS_DISABLE_CHOWN,
  o CONFIGURE_IMFS_DISABLE_FCHMOD,
  o CONFIGURE_IMFS_DISABLE_LINK,
  o CONFIGURE_IMFS_DISABLE_MKNOD,
  o CONFIGURE_IMFS_DISABLE_MOUNT,
  o CONFIGURE_IMFS_DISABLE_READLINK,
  o CONFIGURE_IMFS_DISABLE_RENAME,
  o CONFIGURE_IMFS_DISABLE_RMNOD,
  o CONFIGURE_IMFS_DISABLE_SYMLINK,
  o CONFIGURE_IMFS_DISABLE_UNMOUNT, and
  o CONFIGURE_IMFS_DISABLE_UTIME.
2015-02-12 20:53:36 +01:00
Sebastian Huber
60cf8a5c16 IMFS: Add root directory to FS info
Fix memory leak in IMFS_fsunmount().
2015-02-12 20:53:35 +01:00
Sebastian Huber
24ec25d2ae IMFS: Introduce IMFS_mknod_control
Drop IMFS_node_control::node_size field and add node_size parameter to
IMFS_allocate_node() and IMFS_create_node().  This reduces the size of
generic nodes.
2015-02-12 20:53:34 +01:00
Daniel Cederman
8d8573acc8 smpcapture02: Add test of functionality to add custom entries to capture trace 2015-02-11 15:35:26 +01:00
Sebastian Huber
16939b1876 Filesystem: Simplify FIFO and pipe configuration 2015-02-09 19:09:23 +01:00
Sebastian Huber
b4e52ce90f fstests/fsrename: Avoid double initialization 2015-02-09 15:38:04 +01:00
Sebastian Huber
efd2965abf Filesystem: Statically initialize rtems_libio_iops 2015-02-04 14:03:49 +01:00
Sebastian Huber
cf36b70e8d IMFS: Replace node union with individual struct
This reduces the average node size.

Add and use IMFS_GENERIC_INITIALIZER().
2015-01-27 06:54:22 +01:00
Joel Sherrill
80bfd3abee psx07: Add missing parameter to printf() call
Close 2241.

Conflicts:
	testsuites/psxtests/psx07/init.c
2015-01-23 09:46:48 -06:00
Sebastian Huber
ffb1a45e9c psxtests/psx07: Fix printf() statement
Close #2240.
2015-01-23 12:49:44 +01:00