AUTOSAR AP RS ExecutionManagement
AUTOSAR AP RS ExecutionManagement
AUTOSAR AP RS ExecutionManagement
AUTOSAR AP R23-11
Requirements on Execution
Document Title Management
Document Owner AUTOSAR
Document Responsibility AUTOSAR
Document Identification No 720
4
• Removed: RS_EM_00003,
AUTOSAR RS_EM_00004, RS_EM_00110 and
2018-10-31 18-10 Release RS_EM_00111.
Management
• Added: [RS_EM_00014].
AUTOSAR • Removed: RS_EM_00006,
Release RS_EM_00007 and RS_EM_00012
2018-03-29 18-03
Management • Minor changes and document clean up
AUTOSAR
2017-10-27 17-10 Release • Minor changes, document clean up
Management
AUTOSAR
2017-03-31 17-03 Release • Initial release
Management
Disclaimer
This work (specification and/or software implementation) and the material contained in
it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the
companies that have contributed to it shall not be liable for any use of the work.
The material contained in this work is protected by copyright and other types of intel-
lectual property rights. The commercial exploitation of the material contained in this
work requires a license to such intellectual property rights.
This work may be utilized or reproduced without any modification, in any form or by
any means, for informational purposes only. For any other purpose, no part of the work
may be utilized or reproduced, in any form or by any means, without permission in
writing from the publisher.
The work has been developed for automotive applications only. It has neither been
developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Contents
1 Scope of this document 6
2 Conventions to be used 7
2.1 Requirements Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.1 Requirements quality . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.2 Requirements identification . . . . . . . . . . . . . . . . . . . . 7
2.1.3 Requirements status . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Acronyms and abbreviations 9
4 Requirements Specification 11
4.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Functional Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2.1 Startup and Shutdown of Applications . . . . . . . . . . . . . . 12
4.2.2 Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2.3 State Management . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2.4 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2.5 Support for Diagnostics . . . . . . . . . . . . . . . . . . . . . . 19
4.3 Non-Functional Requirements . . . . . . . . . . . . . . . . . . . . . . . . 20
5 Requirements Tracing 21
5.1 Not applicable requirements . . . . . . . . . . . . . . . . . . . . . . . . . 22
6 References 23
2 Conventions to be used
The representation of requirements in AUTOSAR documents follows the table spec-
ified in [TPS_STDT_00078], see Standardization Template [1], chapter Support for
Traceability.
The verbal forms for the expression of obligation specified in [TPS_STDT_00053] shall
be used to indicate requirements, see Standardization Template [1], chapter Support
for Traceability.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as follows.
Note that the requirement level of the document in which they are used modifies the
force of these words.
• MUST: This word, or the adjective "LEGALLY REQUIRED", means that the defi-
nition is an absolute requirement of the specification due to legal issues.
• MUST NOT: This phrase, or the phrase "MUST NOT", means that the definition
is an absolute prohibition of the specification due to legal issues.
• SHALL: This phrase, or the adjective "REQUIRED", means that the definition is
an absolute requirement of the specification.
• SHALL NOT: This phrase means that the definition is an absolute prohibition of
the specification.
• SHOULD: This word, or the adjective "RECOMMENDED", means that there may
exist valid reasons in particular circumstances to ignore a particular item, but the
full implications must be understood and carefully weighed before choosing a
different course.
• SHOULD NOT: This phrase, or the phrase "NOT RECOMMENDED", means that
there may exist valid reasons in particular circumstances when the particular be-
havior is acceptable or even useful, but the full implications should be understood
and the case carefully weighed before implementing any behavior described with
this label.
• MAY: This word, or the adjective "OPTIONAL", means that an item is truly op-
tional. One vendor may choose to include the item because a particular market-
place requires it or because the vendor feels that it enhances the product while
another vendor may omit the same item.
An implementation, which does not include a particular option, SHALL be prepared
to interoperate with another implementation, which does include the option, though
perhaps with reduced functionality. In the same vein an implementation, which does
include a particular option, SHALL be prepared to interoperate with another implemen-
tation, which does not include the option (except, of course, for the feature the option
provides.)
The following requirements are described within this document but not otherwise con-
sidered in this release:
• [RS_EM_00111] – Identification of Processes
The functionality described above is subject to modification and will be considered for
inclusion in a future release of this document.
The following technical terms used throughout this document are defined in the official
[2] AUTOSAR Glossary or [3] TPS Manifest Specification – they are repeated here for
tracing purposes.
Description
Term
Adaptive Application see [2] AUTOSAR Glossary
Application see [2] AUTOSAR Glossary
AUTOSAR Adaptive Platform see [2] AUTOSAR Glossary
Adaptive Platform Foundation see [2] AUTOSAR Glossary
Manifest see [2] AUTOSAR Glossary
Executable see [2] AUTOSAR Glossary
Functional Cluster see [2] AUTOSAR Glossary
Adaptive Platform Service see [2] AUTOSAR Glossary
Machine see [2] AUTOSAR Glossary
Service see [2] AUTOSAR Glossary
Service Interface see [2] AUTOSAR Glossary
Service Discovery see [2] AUTOSAR Glossary
4 Requirements Specification
4
Supporting –
Material:
It shall be possible to start more than one Modelled Process from a single
Description: Executable. Instance specific information is described in Modelled
Process startup configuration.
Rationale: Avoid code duplication.
Dependencies: –
Use Case: Redundancy of an Executable by parallel execution of two instances.
Supporting –
Material:
c(RS_Main_00002, RS_Main_00049)
[RS_EM_00100] Execution Management shall support the ordered startup and
shutdown of processes. d
4.2.2 Execution
4
Usage of computation resources within the running processes shall be
managed in the Machine to ensure that activities can be coordinated across
Use Case:
processes. Registration enables Execution Management to form the
necessary Machine-wide view for the coordination.
Supporting –
Material:
c(RS_Main_00460, RS_SAF_10008)
[RS_EM_00051]{DRAFT} Execution Management shall provide APIs to the pro-
cess for configuring external trigger conditions for its activities. d
c(RS_Main_00050, RS_Main_00060)
[RS_EM_00052]{DRAFT} Execution Management shall provide APIs to the pro-
cess for configuring cyclic triggering of its activities. d
c(RS_Main_00050, RS_Main_00340)
[RS_EM_00053]{OBSOLETE} Execution Management shall provide APIs to the
process to support deterministic redundant execution of processes. d
4
Supporting –
Material:
c(RS_Main_01026)
c(RS_Main_00460)
c(RS_Main_00011)
Support for Diagnostics is handled by State Management and therefore the require-
ments are replaced by the ones from [5].
c(RS_SAF_10001)
5 Requirements Tracing
The following tables reference the requirements specified in [6] and links to the fulfill-
ment of these.
Please note that if column “Satisfied by” is empty for a specific requirement this
means that this requirement is not fulfilled by this document. Likewise, an entry of
[RS_EM_NA] indicates that the source requirement has been evaluated as “not appli-
cable” to Execution Management.
Requirement Description Satisfied by
[RS_Main_00002] AUTOSAR shall provide a software [RS_EM_00005] [RS_EM_00010] [RS_EM_00011]
platform for high performance [RS_EM_00100]
computing platforms
[RS_Main_00010] Safety Mechanisms [RS_EM_00002] [RS_EM_00005] [RS_EM_00008]
[RS_EM_00009] [RS_EM_00053] [RS_EM_00113]
[RS_Main_00011] Mechanisms for Reliable Systems [RS_EM_00009] [RS_EM_00150]
[RS_Main_00049] AUTOSAR shall provide an Execution [RS_EM_00002] [RS_EM_00009] [RS_EM_00010]
Management for running multiple [RS_EM_00011] [RS_EM_00100] [RS_EM_00103]
applications
[RS_Main_00050] AUTOSAR shall provide an Execution [RS_EM_00008] [RS_EM_00051] [RS_EM_00052]
Framework towards applications to [RS_EM_00103]
implement concurrent application
internal control flows
[RS_Main_00060] Standardized Application [RS_EM_00051]
Communication Interface
[RS_Main_00080] Formal Description Language [RS_EM_00002]
[RS_Main_00106] AUTOSAR shall provide the [RS_EM_00005] [RS_EM_00008] [RS_EM_00010]
possibility to extend the software with [RS_EM_00103]
new SWCs without recompiling the
platform foundation
[RS_Main_00150] AUTOSAR shall support the [RS_EM_00002] [RS_EM_00005] [RS_EM_00008]
deployment and reallocation of [RS_EM_00009]
AUTOSAR Application Software
[RS_Main_00170] AUTOSAR shall provide secure [RS_EM_00014] [RS_EM_00015] [RS_EM_00111]
access to ECU data and services
[RS_Main_00180] Intellectual Property Protection [RS_EM_00014] [RS_EM_00015]
[RS_Main_00320] AUTOSAR shall provide formats to [RS_EM_00002] [RS_EM_00008]
specify system development
[RS_Main_00340] AUTOSAR shall support the [RS_EM_00005] [RS_EM_00052] [RS_EM_00100]
continuous timing requirement
analysis
[RS_Main_00420] AUTOSAR shall use established [RS_EM_00002] [RS_EM_00111]
software standards and consolidate
de-facto standards for basic software
functionality
[RS_Main_00460] AUTOSAR shall standardize methods [RS_EM_00050] [RS_EM_00100] [RS_EM_00101]
to organize mode management on [RS_EM_00103]
Application, ECU and System level
[RS_Main_00501] AUTOSAR shall support redundancy [RS_EM_00008] [RS_EM_00010] [RS_EM_00053]
concepts [RS_EM_00113]
[RS_Main_00514] System Security Support [RS_EM_00014] [RS_EM_00015] [RS_EM_00111]
[RS_Main_01026] AUTOSAR shall support tracing and [RS_EM_00152]
profiling on the target and onboard
5
4
Requirement Description Satisfied by
[RS_SAF_10001] AUTOSAR shall provide mechanisms [RS_EM_00009] [RS_EM_00151]
to support safe initialization of
software components.
[RS_SAF_10008] AUTOSAR shall provide mechanisms [RS_EM_00005] [RS_EM_00008] [RS_EM_00009]
to support safe resource [RS_EM_00050]
management for the AUTOSAR
Adaptive Platform functional-clusters,
applications and services and
AUTOSAR Classic Platform basic
software modules and software
components.
[RS_SAF_10028] AUTOSAR shall provide mechanisms [RS_EM_00053] [RS_EM_00113]
to support dependable scheduling of
AUTOSAR Adaptive Platform
functional-clusters, applications and
services and AUTOSAR Classic
Platform basic software modules and
software components.
[RS_SAF_10037] AUTOSAR shall provide mechanisms [RS_EM_00002]
to prevent unintended alteration of
data.
Table 5.1: RequirementsTracing
6 References
Number Heading
[RS_EM_00001] The Execution Management shall load Executables
The Execution Management shall set-up one process for the execution of
[RS_EM_00002]
each Executable instance
The Execution Management shall support the checking of the integrity of
[RS_EM_00003]
Executables at startup of Executable
The Execution Management shall support the authentication and
[RS_EM_00004]
authorization of Executables at startup of Executable
The Execution Management shall support the configuration of OS resource
[RS_EM_00005]
budgets for Executable and groups of Executables
The Execution Management shall support the analysis of available and
[RS_EM_00006] required OS resource budgets for Executables and groups of Executables
during installation and run-time
The Execution Management shall support of the allocation of dedicated
[RS_EM_00007]
resources for the Executable (e.g GPU)
The Execution Management shall support the binding of Executable threads
[RS_EM_00008]
to a specified set of processor cores.
[RS_EM_00009] Only Execution Management shall start Executables
The Execution Management shall support multiple instantiation of
[RS_EM_00010]
Executables
Execution Management shall support self-initiated graceful shutdown of
[RS_EM_00011]
Executable instances
Application Manifest shall support unambiguous identification of Executable
[RS_EM_00012]
instances
[RS_EM_00013] Execution Management shall support configurable recovery actions
The Execution Management shall support the ordered startup and shutdown
[RS_EM_00100]
of Executables
The Execution Management shall do a system-wide coordination of
[RS_EM_00050]
activities.
The Execution Management shall provide functions to the Executable for
[RS_EM_00051]
configuring external trigger conditions for its activities
5
4
Number Heading
The Execution Management shall provide functions to the Executable for
[RS_EM_00052]
configuring cyclic triggering of its activities
The Execution Management shall provide Machine State Management
[RS_EM_00101]
functionality
[RS_EM_00103] Execution Management shall support application lifecycle management
Table 7.1: Added Requirements in 17-03
none
none
Number Heading
The Execution Management shall provide functions to support redundant
[RS_EM_00053]
execution of Executables
[RS_EM_00110] Execution Management shall support diagnostic reset cause
Table 7.2: Added Requirements in 17-10
none
Number Heading
[RS_EM_00001] The Execution Management shall load Executables
[RS_EM_00103] Execution Management shall support application lifecycle management
Table 7.3: Deleted Requirements in 17-10
Number Heading
Execution Management shall be implemented at least according the highest
[RS_EM_00151]
safety integrity level from any process that is supported on the platform.
Table 7.4: Added Requirements in 18-03
Number Heading
[RS_EM_00009] Only Execution Management shall start Executables
The Execution Management shall provide Machine State Management
[RS_EM_00101]
functionality
[RS_EM_00103] Execution Management shall support application lifecycle management
[RS_EM_00110] Execution Management shall support diagnostic reset cause
Table 7.5: Changed Requirements in 18-03
Number Heading
The Execution Management shall support the analysis of available and
[RS_EM_00006] required OS resource budgets for Executables and groups of Executables
during installation and run-time
5
4
Number Heading
The Execution Management shall support of the allocation of dedicated
[RS_EM_00007]
resources for the Executable (e.g GPU)
Application Manifest shall support unambiguous identification of Executable
[RS_EM_00012]
instances
Table 7.6: Deleted Requirements in 18-03
Number Heading
[RS_EM_00014] Execution Management shall support a Trusted Platform
Execution Management shall assist identification of Processes during
[RS_EM_00111]
Machine runtime
Table 7.7: Added Requirements in 18-10
Number Heading
The Execution Management shall set-up one process for the execution of
[RS_EM_00002]
each Executable instance
The Execution Management shall support the configuration of OS resource
[RS_EM_00005]
budgets for Executable and groups of Executables
Execution Management shall support self-initiated graceful shutdown of
[RS_EM_00011]
Executable instances
[RS_EM_00013] Execution Management shall support configurable recovery actions
The Execution Management shall provide Machine State Management
[RS_EM_00101]
functionality
Table 7.8: Changed Requirements in 18-10
Number Heading
The Execution Management shall support the checking of the integrity of
[RS_EM_00003]
Executables at startup of Executable
The Execution Management shall support the authentication and
[RS_EM_00004]
authorization of Executables at startup of Executable
Table 7.9: Deleted Requirements in 18-10
none
Number Heading
The Execution Management shall support the binding of Executable threads
[RS_EM_00008]
to a specified set of processor cores.
Table 7.10: Changed Requirements in 19-03
none
none
Number Heading
[RS_EM_00009] Only Execution Management shall start Executables
Table 7.11: Changed Requirements in 19-11
none
Number Heading
[RS_EM_00113] Execution Management shall support time-triggered execution
[RS_EM_00150] Error Handling
Table 7.12: Added Requirements in R20-11
none
Number Heading
[RS_EM_00013] Execution Management shall support configurable recovery actions
Table 7.13: Deleted Requirements in R20-11
Number Heading
[RS_EM_00015] Execution Management shall support integrity and authenticity monitoring
Table 7.14: Added Requirements in R21-11
none
none
Number Heading
Execution Management shall be implemented at least according the highest
[RS_EM_00151]
safety integrity level from any process that is supported on the platform.
Table 7.15: Added Requirements in R22-11
Number Heading
Execution Management shall set-up one process for the execution of
[RS_EM_00002]
each Modelled Process.
Execution Management shall support the configuration of OS resource
[RS_EM_00005]
budgets for process and groups of processes.
5
4
Number Heading
Execution Management shall support the binding of all threads of a given
[RS_EM_00008]
process to a specified set of processor cores.
Execution Management shall ensure it is the sole entity starting
[RS_EM_00009]
processes.
Execution Management shall perform Machine-wide coordination of
[RS_EM_00050]
processes.
Execution Management shall provide APIs to the process to support
[RS_EM_00053]
deterministic redundant execution of processes.
[RS_EM_00103] Execution Management shall support process lifecycle management.
[RS_EM_00113] Execution Management shall support time-triggered execution.
[RS_EM_NA]
Table 7.16: Changed Requirements in R22-11
none
Number Heading
Execution Management shall support standardized trace points
[RS_EM_00152]
throughout the state transitions.
Table 7.17: Added Requirements in R23-11
Number Heading
Execution Management shall support the binding of all threads of a given
[RS_EM_00008]
process to a specified set of processor cores.
Execution Management shall control the right to create child processes
[RS_EM_00009]
for each process it starts.
5
4
Number Heading
Execution Management shall provide APIs to the process to support
[RS_EM_00053]
deterministic redundant execution of processes.
Execution Management shall be implemented at least according the highest
[RS_EM_00151]
safety integrity level from any process that is supported on the platform.
Table 7.18: Changed Requirements in R23-11
none