Commit Graph

11439 Commits

Author SHA1 Message Date
Sebastian Huber
d0b704b09c libtest: Change expected pass state string
Use separator character '_' for all test states.
2019-12-05 07:10:59 +01:00
Sebastian Huber
9c29cb56ad libtest: Change expected fail state string
Use the value expected by the RTEMS Tester.  There are two separator
characters used ('-' and '_') for the states.  This is a bit
inconsistent.
2019-12-04 07:40:31 +01:00
Sebastian Huber
f4fda72f65 Regenerate headers.am 2019-11-29 19:01:48 +01:00
Sebastian Huber
4551f5f0db untar: Properly make parent path
Close #3823.
2019-11-26 08:10:27 +01:00
Sebastian Huber
2de05dd588 untar: Make path also for symbolic links
Close #3823.
2019-11-25 11:32:19 +01:00
Sebastian Huber
b6f66d9345 untar: Unify untar support
Update #3823.
2019-11-25 11:32:19 +01:00
Sebastian Huber
a0304e8d62 libtest: Output basename of source files
Output only the basename of source files to be independent of the build
system source paths.

In the future it may be better to use the GCC -fmacro-prefix-map option.
This option is available in GCC 8 and later.  It is not yet available in
clang.

Update #3818.
2019-11-25 11:32:19 +01:00
Sebastian Huber
234d155e87 linkersets: Revert to zero-length arrays
This partially reverts commit 7ec08391fe.

Since the RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() cannot control the
alignment of the symbol it cannot be used to define the begin of a
linker set.  File scope basic __asm__ statements cannot have operands,
so there is no way to specify the desired alignment.
2019-11-25 11:32:18 +01:00
Sebastian Huber
4fcc53a069 Document RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() 2019-11-25 11:32:18 +01:00
Sebastian Huber
11455b2e6d imfs: Fix IMFS_make_linearfile()
Fix prototype.

Fix node size.  Linfiles are dynamically turned into memfiles.

Update #3823.
2019-11-21 09:06:56 +01:00
Sebastian Huber
f377998568 imfs: Add IMFS_make_linfile()
Update #3818.
2019-11-19 16:22:00 +01:00
Sebastian Huber
38207a31e4 Move feature macro before "config.h" include
This allows to use header includes in "config.h" to reduce the build
configuration checks.

Update #3818.
2019-11-19 16:05:54 +01:00
rrs
c6d8589bb0 Synchronize kernel <sys/time.h> with FreeBSD
Integrate parts of this commit:

This commit brings in a new refactored TCP stack
called Rack. Rack includes the following features: - A different SACK
processing scheme (the old sack structures are not used). - RACK (Recent
acknowledgment) where counting dup-acks is no longer done instead time
is used to knwo when to retransmit. (see the I-D) - TLP (Tail Loss
Probe) where we will probe for tail-losses to attempt to try not to take
a retransmit time-out. (see the I-D) - Burst mitigation using TCPHTPS -
PRR (partial rate reduction) see the RFC.

Once built into your kernel, you can select this stack by either
socket option with the name of the stack is "rack" or by setting
the global sysctl so the default is rack.

Note that any connection that does not support SACK will be kicked
back to the "default" base  FreeBSD stack (currently known as "default").

To build this into your kernel you will need to enable in your
kernel:
   makeoptions WITH_EXTRA_TCP_STACKS=1
   options TCPHPTS

Sponsored by:	Netflix Inc.
Differential Revision:		https://reviews.freebsd.org/D15525
2019-11-18 07:16:30 +01:00
Hesham Almatary
a4c5da686d riscv: preliminarily support for libdl
Support for targets compiled with -fno-pic and -mno-relax
2019-11-12 10:21:40 +00:00
Sebastian Huber
94584f17ab heap: Simplify _Heap_Block_allocate()
Determine the next block only once and use it throughout.
2019-11-05 12:58:09 +01:00
Sebastian Huber
5630008257 kill: Fix warning
Include right header file for kill().
2019-11-05 07:29:01 +01:00
sebastian.huber
3859cd63af rtems-5: Improve heap fatal error information
Update #3806.
2019-11-05 07:29:00 +01:00
Sebastian Huber
3fb72b0f1e arm: Add defines for small pages MMU 2019-10-31 09:45:46 +01:00
Sebastian Huber
7ec08391fe linkersets: Avoid use of zero-length array
Use RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() instead.
2019-10-28 10:00:31 +01:00
Sebastian Huber
a7c86ccb25 config: Avoid zero-length array
Use RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION() instead.

Close #3799.
2019-10-28 10:00:31 +01:00
Sebastian Huber
795b167545 score: Add RTEMS_DEFINE_GLOBAL_SYMBOL_IN_SECTION()
Update #3799.
2019-10-28 10:00:31 +01:00
Chris Johns
32c9b83109 libdebugger/arm: Clean up the building on arm variants. 2019-10-19 15:54:40 +11:00
Sebastian Huber
b5e61f95ac libtest: Add more action events
This allows more control over the initialization and finalization run.

Update #3199.
2019-10-11 08:55:53 +02:00
Sebastian Huber
b406d071ec libtest: Do all output in test runner
This ensures that lines are output atomically if they are produced by
different other contexts, e.g. interrupts, other processors, other
threads.

Update #3199.
2019-10-11 08:55:49 +02:00
Joel Sherrill
667501a314 termios: Add Capability to Generate SIGINTR and SIGQUIT
This patch adds the ability for termios to send SIGINTR on receipt
of VINTR and SIGQUIT for VKILL and return -1/EINTR from read() on
a termios channel. Importantly, this patch does not alter the default
behavior or force POSIX signal code in just because termios is used.
The application must explicitly enable the POSIX behavior of generating
a signal upon receipt of these characters. This is discussed in the
POSIX standard:

   https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html

Closes #3800.
2019-10-08 14:25:41 -05:00
Joel Sherrill
7685b48f40 cpukit/headers.am: Regenerate 2019-10-04 09:12:55 -05:00
Sebastian Huber
8d989c56ff score: Install timecounter according to quality
This makes it possible to install higher quality timecounter in
plug-and-play systems and helps to override the clock driver provided
timecounter in some test scenarios.
2019-10-02 07:01:36 +02:00
Sebastian Huber
47e5c1d7cd score: Remove strange timecounter init step
The double call of the timecounter get method was added to FreeBSD in
2002 without a comment.  It is not clear why this is needed.
2019-10-02 07:01:36 +02:00
Sebastian Huber
2763f530d3 score: Remove superfluous timecounter members 2019-10-02 07:01:36 +02:00
Sebastian Huber
6ae25220d6 Revert "record: Add wrappers for malloc() functions"
It was accidentally committed.

This reverts commit a314544a27.
2019-10-02 06:40:30 +02:00
Sebastian Huber
a314544a27 record: Add wrappers for malloc() functions
Introduce new library librtemsrecordwrap.a which contains wrappers for
operating system functions which produce entry/exit events.

The wrappers can be selected during link time via the GNU ld --wrap
option.

Update #3665.
2019-10-01 09:55:07 +02:00
Sebastian Huber
d488050953 dosfs: Fix format with media block sizes > 512 2019-10-01 09:55:07 +02:00
Sebastian Huber
de6348a9f1 _kernel_time.h: Compatibility to future Newlib 2019-10-01 08:13:56 +02:00
Joel Sherrill
8798372261 Correct initial POSIX signals mask
+ Modify POSIX thread create extension to ensure expected
	  initial signal mask is provided to system threads, initial
	  tasks and threads, and inheritied by tasks and threads.
	+ Adds psxsignal07 to verify functionality when using a POSIX
	  Initialization thread and POSIX threads.
	+ Adds psxsignal08 to verify functionality when using a Classic API
	  Initialization task and Classic API tasks.

Closes #3794.
2019-09-24 16:27:57 -05:00
Sebastian Huber
33ed4123c0 rtems: Add rtems_interrupt_server_entry_move()
The use case for this function is the libbsd.  In FreeBSD, the interrupt
setup and binding to a processor is done in two steps.  Message
based interrupts like PCIe MSI and MSI-X interrupts can be implemented
through interrupt server entries.  They are setup at the default
interrupt server and may optionally move to an interrupt server bound to
a specific processor.
2019-09-20 09:22:46 +02:00
Sebastian Huber
c1a1f2c8da Add rtems_version_control_key_is_valid() 2019-09-11 07:28:34 +02:00
Sebastian Huber
eaa415b2c7 rtems: Make rtems_version_control_key() safer
Return the empty string instead of a NULL pointer if no version key is
available.
2019-09-09 07:04:53 +02:00
Sebastian Huber
0b3dcb3b37 arm: Fix default exception handler
Keep the stack pointer properly 8-byte aligned.
2019-09-03 10:34:13 +02:00
Sebastian Huber
e41e9961df record: Add system events
Update #3665.
2019-09-02 07:47:48 +02:00
Sebastian Huber
1c72ad73ae record: Add system events
Add system events for memory allocation/free.

Update #3665.
2019-08-30 15:03:14 +02:00
Sebastian Huber
8ace7eada4 record: Add system events
Add system events to identify the target system.  Add system events to
transfer blocks of memory and register sets.

Update #3665.
2019-08-30 11:18:47 +02:00
Sebastian Huber
1e18f645f3 record: Initialize records earlier
The _Record_Initialize() function depends only initialized read-only
data.  Call it as the first initialization step to allow tracing of the
complete system initialization.

Update #3665.
2019-08-30 08:57:31 +02:00
Sebastian Huber
11f196d646 record: Simplify configuration
Update #3665.
2019-08-30 08:57:28 +02:00
Sebastian Huber
d78082ce76 record: Introduce _Record_Drain()
This allows its use in crash dump procedures.

Update #3665.
2019-08-30 08:46:17 +02:00
Sebastian Huber
58bd67bb35 record: Add more system events
Reduce the system dependencies to allow tracing of very low level
functions, for example the interrupt disable/enable.

Introduce general purpose RTEMS_RECORD_CALLER and RTEMS_RECORD_LINE
events.

Update #3665.
2019-08-29 10:07:02 +02:00
Sebastian Huber
807ea677b2 score: Add RTEMS_RETURN_ADDRESS() 2019-08-28 15:22:27 +02:00
Sebastian Huber
956a2ef78d record: Add variants for critical sections
Update #3665.
2019-08-28 15:22:27 +02:00
Sebastian Huber
3eb8d78369 record: Introduce <rtems/recordserver.h>
This helps to get rid of the <rtems/rtems/tasks.h> dependency in
<rtems/record.h>.

Update #3665.
2019-08-28 15:22:06 +02:00
Sebastian Huber
a2684c2b8d record: Use BSS section instead of per-CPU data
The .rtemsrwset section is used for the per-CPU data.  This section has
loadable content.  Place the ring buffers in the BSS section to avoid
large executable image sizes.

Not using the per-CPU data makes it possible to initialize the record
support earlier.

Update #3665.
2019-08-28 08:58:14 +02:00
Sebastian Huber
e273e7a9a8 record: Add data size to client
This is necessary to get the thread names properly on 32-bit and 64-bit
targets.

Update #3665.
2019-08-27 08:46:38 +02:00