| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Replace _API_Mutex_Is_locked() with _API_Mutex_Is_owner().
|
|
|
|
|
|
|
|
|
|
| |
The Allocator Mutex should not be locked outside a tested
service call. In an SMP test or heavily multithreaded test,
this is possible since another thread could have the lock
for an extended period of time but this is not the norm
for the tests.
updates 2319.
|
| |
|
|
|
|
|
|
|
| |
posix_memalign() is prototyped to take a non-NULL parameter. But our
test is deliberately passing one in. With the -Wnon-null warning flag
enabled, we will always get warnings on this test unless we disable
that warning for this single test case.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.
I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
|
|
|
|
| |
Add locked_vprintf(). Return an int just like printf(), etc.
|
| |
|
|
|
|
|
|
| |
Provide support functions to print the begin/end of test message.
Provide a test fatal extension to print out profiling reports in the
future.
|
|
|
|
|
| |
Make it possible to use normal printf() if requested to allow output of
floating point numbers.
|
|
|
|
|
|
|
|
| |
Move implementation specific parts of thread.h and thread.inl into new
header file threadimpl.h. The thread.h contains now only the
application visible API.
Remove superfluous header file includes from various files.
|
| |
|
|
|
|
|
| |
Delete _Thread_Dispatch_in_critical_section() and
_Thread_Is_dispatching_enabled().
|
|
|
|
|
| |
In case the printf() blocks on a semaphore it was possible to end up in
a livelock.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
|
|
|
| |
* support/src/spin.c: Include "test_support.h".
|
|
|
|
|
|
| |
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
|
|
|
|
|
|
|
|
| |
* support/include/tmtests_empty_function.h: New.
* support/src/tmtests_empty_function.c,
support/src/tmtests_support.c:
Include "tmtests_empty_function.h".
Remove local decls (Missing prototypes).
|
|
|
|
| |
* support/src/test_support.c: Avoid magic numbers.
|
|
|
|
|
| |
* support/include/tmacros.h:
Remove fatal_posix_service_pointer_minus_one (unused).
|
|
|
|
|
| |
* support/include/primode.h: New.
* Makefile.am: Add support/include/primode.h
|
|
|
|
| |
* support/include/tmacros.h: Remove PRItime_t.
|
|
|
|
|
| |
* support/include/pritime.h: New.
* Makefile.am: Add support/include/pritime.h
|
|
|
|
| |
* support/include/test_support.h: Fixed incorrect name in prototype.
|
|
|
|
|
|
| |
* support/include/tmacros.h: Disable the check for dispatch disable
level for SMP tests. Another CPU may be inside RTEMS by the time
these checks are being done which would result in false failures.
|
|
|
|
|
| |
* configure.ac, support/include/test_support.h:
* support/src/locked_print.c: New file.
|
|
|
|
|
|
|
| |
PR 1777/cpukit
* support/include/tmacros.h, tmtests/tm26/task1.c,
tmtests/tm27/task1.c: Consolidated access to
_Thread_Dispatch_disable_level.
|
|
|
|
|
| |
* support/src/tmtests_support.c:
loop_overhead and end_time are uint32_t's.
|
| |
|
|
|
|
| |
* support/include/tmacros.h: Remove PRIxblksize_t, PRIxblkcnt_t.
|
|
|
|
|
| |
* support/include/test_support.h, support/src/test_support.c: Add
Allocate_majority_of_heap().
|
|
|
|
| |
* support/src/tmtests_support.c: Fix warning.
|
|
|
|
|
|
|
| |
* support/include/test_support.h, support/src/tmtests_empty_function.c:
Add helper so it is easier to write a basic repeated operation
tmtest.
* support/src/tmtests_support.c: New file.
|
|
|
|
| |
* support/include/tmacros.h: Remove PRIdoff_t.
|
|
|
|
|
| |
* support/include/tmacros.h: Changed check_dispatch_disable_level() to
treat all non-zero values of _Thread_Dispatch_disable_level equally.
|
|
|
|
|
|
|
| |
* support/include/test_support.h, support/include/tmacros.h,
support/src/test_support.c: Added support functions to spin for a
number of ticks and to spin until the next tick.
* support/src/spin.c: New file.
|
|
|
|
|
|
| |
* support/include/tmacros.h: Use rtems_test_assert() consistently
instead of system assert(). rtems_test_assert() is designed to
integrate into the RTEMS test suite infrastructure.
|
| |
|
|
|
|
|
|
| |
* support/include/tmacros.h: Add service to check status returned by
POSIX methods which return a pointer which is -1 on error. This
eliminated some casts.
|
|
|
|
|
| |
* support/include/tmacros.h: Include rtems/score/thread.h.
Remove _Thread_Dispatch_disable_level.
|
|
|
|
| |
Comment cleanups.
|
| |
|
| |
|
|
|
|
|
| |
* support/include/tmacros.h: Add PRIxrtems_event_set.
(fatal_posix_service_status_errno) Add local "long" var "statx".
|
|
|
|
| |
Add PRIdrtems_task_argument.
|
|
|
|
|
| |
* support/include/tmacros.h: Add PRIdWatchdog_Interval.
Add PRIdrtems_interval.
|
|
|
|
|
| |
* support/include/tmacros.h: Add PRIdPriority_Control.
Change PRIdrtems_task_priority to using PRIdPriority_Control.
|
| |
|
| |
|
|
|
|
| |
* support/include/tmacros.h: Add PRItime_t.
|