blob: b8da4d5f53aaedab7695f2251cf6cb90b920f3eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: RTEMS_SMP
links:
- role: requirement-refinement
uid: perf-runtime
- role: runtime-measurement-request
uid: ../val/perf
non-functional-type: performance-runtime
params: {}
rationale: null
references: []
requirement-type: non-functional
test-body:
brief: |
Move the worker to scheduler A.
code: |
ctx->status = rtems_task_set_scheduler(
ctx->worker_id,
SCHEDULER_A_ID,
PRIO_LOW
);
description: null
test-cleanup:
brief: |
Delete the worker task.
code: |
DeleteTask( ctx->worker_id );
description: null
test-prepare:
brief: |
Create and start a worker task for scheduler B.
code: |
ctx->worker_id = CreateTask( "WORK", PRIO_NORMAL );
SetScheduler( ctx->worker_id, SCHEDULER_B_ID, PRIO_NORMAL );
StartTask( ctx->worker_id, Worker, ctx );
description: null
test-setup: null
test-teardown:
brief: |
Move the worker back to scheduler B. Discard samples interrupted by a
clock tick.
code: |
T_quiet_rsc_success( ctx->status );
SetScheduler( ctx->worker_id, SCHEDULER_B_ID, PRIO_NORMAL );
return tic == toc;
description: null
text: |
While the execution environment is ${.:/environment}, while the measurement
sample is the runtime of exactly one successful call to
${../if/set-scheduler:/name} which moves the task to the home scheduler of
the caller which does not preempt the caller, when exactly
${../val/perf:/params/sample-count} samples are collected, the
${.:/limit-kind} shall be ${.:/limit-condition}.
type: requirement
|