Home
last modified time | relevance | path

Searched +full:- +full:- +full:no +full:- +full:function +full:- +full:coverage (Results 1 – 25 of 46) sorted by relevance

12

/Zephyr-latest/subsys/testsuite/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
18 int "Test function extra thread stack size"
30 The code coverage report generation is only available on boards
31 with enough spare RAM to buffer the coverage data, or on boards
34 config COVERAGE config
35 bool "Create coverage data"
38 This option will build your application with the -coverage option
39 which will generate data that can be used to create coverage reports.
41 https://docs.zephyrproject.org/latest/guides/coverage.html
44 prompt "Coverage mode"
[all …]
/Zephyr-latest/cmake/compiler/clang/
Dcompiler_flags.cmake6 # No property flag, clang doesn't understand fortify at all
10 # No printf-return-value optimizations in clang
13 # No property flag, this is used by the POSIX arch based targets when building with the host libC,
14 # But clang has problems compiling these with -fno-freestanding.
17 # clang flags for coverage generation
19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
21 set_compiler_property(PROPERTY coverage --coverage -fno-inline)
25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics)
28 set_compiler_property(PROPERTY save_temps -save-temps)
30 # clang doesn't handle the -T flag
[all …]
/Zephyr-latest/.github/workflows/
Ddoc-build.yml2 # SPDX-License-Identifier: Apache-2.0
8 - cron: '0 */3 * * *'
11 - v*
22 # and each sphinx-build process may use more than 2GiB of RAM.
26 doc-file-check:
28 runs-on: ubuntu-22.04
30 github.repository_owner == 'zephyrproject-rtos'
32 file_check: ${{ steps.check-doc-files.outputs.any_modified }}
34 - name: checkout
38 fetch-depth: 0
[all …]
/Zephyr-latest/subsys/testsuite/ztest/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
14 int "Test function thread stack size"
43 value. Please be aware that increasing it for long-running test cases
59 1 Write file, line number, function and reason for failed assertions
64 default -2 if !PREEMPT_ENABLED
65 default -1
67 Set priority of the testing thread. Default is -1 (cooperative).
87 bool "Using a pre-defined fatal handler and hook function"
89 Use the pre-defined common fatal error handler and a post hook to
95 bool "Using a pre-defined assert handler and hook function"
[all …]
/Zephyr-latest/scripts/west_commands/completion/
Dwest-completion.bash1 # Bash auto-completion for west subcommands and flags. To initialize, run
3 # source west-completion.bash
7 __west_previous_extglob_setting=$(shopt -p extglob)
8 shopt -s extglob
10 # The following function is based on code from:
12 # bash_completion - programmable completion functions for bash 3.2+
14 # Copyright © 2006-2008, Ian Macdonald <ian@caliban.org>
15 # © 2009-2010, Bash Completion Maintainers
16 # <bash-completion-devel@lists.alioth.debian.org>
33 # http://bash-completion.alioth.debian.org/
[all …]
/Zephyr-latest/cmake/compiler/arcmwdt/
Dcompiler_flags.cmake3 -Werror=implicit-int
4 -Wold-style-definition
14 set_compiler_property(PROPERTY no_optimization -O0)
15 set_compiler_property(PROPERTY optimization_debug -O0)
16 set_compiler_property(PROPERTY optimization_speed -O2)
17 set_compiler_property(PROPERTY optimization_size -Os)
26 -Wformat
27 -Wformat-security
28 -Wno-format-zero-length
29 -Wno-unaligned-pointer-conversion
[all …]
/Zephyr-latest/doc/safety/
Dsafety_overview.rst9 This document is the safety documentation providing an overview over the safety-relevant activities
43 code base is pre-existing, we use the route 3s/1s approach defined by the IEC 61508 standard.
46 *Assessment of non-compliant development. Which is basically the route 1s with existing
57 electrical, electronic, and programmable electronic safety-related systems. Here's an overview of
65 (SIL) to classify the level of risk reduction required for each safety function. The higher the
74 safety-related system to ensure that it meets the specified SIL and other safety requirements.
79 documentation process to ensure that all aspects of the safety-related system are fully
84 implementation of safety-related systems that aims to reduce the risk of accidents and improve
85 overall safety. By following the standard, organizations can ensure that their safety-related
99 .. figure:: images/IEC-61508-basis.svg
[all …]
/Zephyr-latest/include/zephyr/toolchain/
Dcommon.h2 * Copyright (c) 2010-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
11 #error Please do not include toolchain-specific headers directly, use <zephyr/toolchain.h> instead
49 * No memory is allocated, and the local symbol does not appear in
109 /* force inlining a function */
114 * The always_inline attribute forces a function to be inlined,
115 * even ignoring -fno-inline. So for code coverage, do not
121 * used for coverage. ALWAYS_INLINE cannot be empty as compiler
144 * until https://github.com/zephyrproject-rtos/zephyr/issues/5006 is
145 * fixed via possibly #4174, we introduce this hack -- which will
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-2.0.rst12 * The kernel now supports both 32- and 64-bit architectures.
17 * We added support for :ref:`Point-to-Point Protocol (PPP) <ppp>`. PPP is a
20 * We added support for UpdateHub, an end-to-end solution for large scale
21 over-the-air device updates.
22 * We added support for ARM Cortex-R Architecture (Experimental).
32 * Fixes CVE-2019-9506: The Bluetooth BR/EDR specification up to and
35 negotiation. This allows practical brute-force attacks (aka "KNOB")
42 * New kernel API for per-thread disabling of Floating Point Services for
43 ARC, ARM Cortex-M, and x86 architectures.
45 * Additional support for compatibility with 64-bit architectures.
[all …]
Drelease-notes-1.11.rst12 * Thread-level memory protection on x86, ARC and Arm, userspace and memory
15 * Initial Armv8-M architecture support.
20 * Firmware over-the-air (FOTA) updates over BLE using MCUmgr.
32 * SMP-aware scheduler
47 * Armv8-M initial architecture support, including the following cores:
49 * Arm Cortex-M23
50 * Arm Cortex-M33
74 * Refactored dts.fixup so common SoC-related fixes are in arch/<*>/soc
75 and board dts.fixup is only used for board-specific items.
82 * Added I2C master, QSPI flash, and GPIO drivers for nios-II
[all …]
Drelease-notes-1.14.rst17 * CVE-2020-10066
18 * CVE-2020-10069
19 * CVE-2020-13601
20 * CVE-2020-13602
32 * :github:`issuenumber` - issue title
34 * :github:`18334` - DNS resolution is broken for some addresses in master/2.0-pre
35 * :github:`19917` - Bluetooth: Controller: Missing LL_ENC_RSP after HCI LTK Negative Reply
36 * :github:`21107` - LL_ASSERT and 'Imprecise data bus error' in LL Controller
37 * :github:`21257` - tests/net/net_pkt failed on mimxrt1050_evk board.
38 * :github:`21299` - bluetooth: Controller does not release buffer on central side after peripheral …
[all …]
Drelease-notes-3.4.rst20 * Added Power Delivery Source Support to the USB-C Stack.
22 * Cache API functions are now fully in-lined by compilers.
23 * Added an API for real-time clocks (RTC).
29 - Introduction of 3 new test harnesses into twister supporting pyTest,
31 - Transitioning to new Ztest API was completed and legacy Ztest was deprecated.
46 * CVE-2023-1901: Under embargo until 2023-07-04
48 * CVE-2023-1902: Under embargo until 2023-07-04
67 +--------------------------------------------------+
69 +--------------------------------------------------+
71 +--------------------------------------------------+
[all …]
Drelease-notes-2.2.rst18 * Fix CVE-2020-10028
19 * Fix CVE-2020-10060
20 * Fix CVE-2020-10063
21 * Fix CVE-2020-10066
32 * :github:`23494` - Bluetooth: LL/PAC/SLA/BV-01-C fails if Slave-initiated Feature Exchange is disa…
33 * :github:`23485` - BT: host: Service Change indication sent regardless of whether it is needed or …
34 * :github:`23482` - 2M PHY + DLE and timing calculations on an encrypted link are wrong
35 * :github:`23070` - Bluetooth: controller: Fix ticker implementation to avoid catch up
36 * :github:`22967` - Bluetooth: controller: ASSERTION FAIL on invalid packet sequence
37 * :github:`24183` - [v2.2] Bluetooth: controller: split: Regression slave latency during connection…
[all …]
Drelease-notes-2.5.rst27 * CVE-2021-3323: Under embargo until 2021-04-14
28 * CVE-2021-3321: Under embargo until 2021-04-14
29 * CVE-2021-3320: Under embargo until 2021-04-14
39 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
47 * The :c:func:`lwm2m_rd_client_start` function now accepts an additional
56 * Changed vcnl4040 dts binding default for property 'proximity-trigger'.
59 * The :c:func:`clock_control_async_on` function will now take ``callback`` and
63 * The :c:func:`mqtt_keepalive_time_left` function now returns -1 if keep alive
67 timeout usage must use the new-style k_timeout_t type and not the
70 * The :c:func:`coap_pending_init` function now accepts an additional ``retries``
[all …]
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
55 * :zephyr_file:`include/zephyr/zephyr.h` no longer defines ``__ZEPHYR__``.
56 This definition can be used by third-party code to compile code conditional
58 Therefore, any third-party code integrated using the Zephyr build system will
59 require no changes. External build systems will need to inject the definition
63 :zephyr_file:`include/zephyr/kernel.h`, since it only included that header. No
91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates
[all …]
Drelease-notes-3.0.rst22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf
23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_
25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj
26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_
28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m
29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_
36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
51 * Added function for getting status of USB device remote wakeup feature.
53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN()
58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been
[all …]
Drelease-notes-2.4.rst33 * CVE-2020-10060: UpdateHub Might Dereference An Uninitialized Pointer
34 * CVE-2020-10064: Improper Input Frame Validation in ieee802154 Processing
35 * CVE-2020-10066: Incorrect Error Handling in Bluetooth HCI core
36 * CVE-2020-10072: all threads can access all socket file descriptors
37 * CVE-2020-13598: FS: Buffer Overflow when enabling Long File Names in FAT_FS and calling fs_stat
38 * CVE-2020-13599: Security problem with settings and littlefs
39 * CVE-2020-13601: Under embargo until 2020/11/18
40 * CVE-2020-13602: Remote Denial of Service in LwM2M do_write_op_tlv
50 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
62 * The :c:func:`wdt_feed` function will now return ``-EAGAIN`` if
[all …]
/Zephyr-latest/cmake/compiler/gcc/
Dcompiler_flags.cmake3 -Werror=implicit-int
4 -Wold-style-definition
5 -Wno-pointer-sign
15 set_compiler_property(PROPERTY no_optimization -O0)
17 set_compiler_property(PROPERTY optimization_debug -O0)
19 set_compiler_property(PROPERTY optimization_debug -Og)
21 set_compiler_property(PROPERTY optimization_speed -O2)
22 set_compiler_property(PROPERTY optimization_size -Os)
23 set_compiler_property(PROPERTY optimization_size_aggressive -Oz)
26 set_compiler_property(PROPERTY optimization_lto -flto=auto)
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py4 # Copyright (c) 2018-2024 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
25 from twisterlib.coverage import supported_coverage_formats
45 def _get_installed_packages() -> Generator[str, None, None]:
63 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages
71 def add_parse_arguments(parser = None) -> argparse.ArgumentParser:
82 $ ./scripts/twister -v \\
83 --testsuite-root tests/ztest/base \\
84 --testsuite-root tests/kernel \\
85 --test tests/ztest/base/testing.ztest.verbose_0 \\
[all …]
/Zephyr-latest/subsys/testsuite/coverage/
Dcoverage.c4 * SPDX-License-Identifier: Apache-2.0
12 #include "coverage.h"
19 * Is called by gcc-generated constructor code for each object file compiled
20 * with -fprofile-arcs.
24 info->next = gcov_info_head; in __gcov_init()
39 * print_u8 - Print 8 bit of gcov data
47 * print_u32 - Print 32 bit of gcov data
60 * write_u64 - Store 64 bit data on a buffer and return the size
75 * write_u32 - Store 32 bit data on a buffer and return the size
102 for (iter = 0U; iter < info->n_functions; iter++) { in gcov_calculate_buff_size()
[all …]
/Zephyr-latest/scripts/native_simulator/common/src/
Dnct.c5 * SPDX-License-Identifier: Apache-2.0
26 * For SOCs with several micro-controllers (AMP) one instance of this module
115 /* Pointer to the hosted OS function to be called when a thread is started */
133 * Helper function, run by a thread which is being aborted
140 tt_el->thead_cnt, in abort_tail()
144 tt_el->running = false; in abort_tail()
145 tt_el->state = ABORTED; in abort_tail()
150 * Helper function to block this thread until it is allowed again
152 * Note that we go out of this function (the while loop below)
161 tt_el->running = false; in nct_wait_until_allowed()
[all …]
/Zephyr-latest/doc/hardware/emulator/
Dbus_emulators.rst20 been completed. This allows for testing that high-level code can
21 handle these situations correctly. Test coverage can therefore
27 The diagram below shows application code / high-level tests at the top.
49 Controller) on native_sim using emulators for all non-chip drivers.
56 * Ensure 100% test coverage for drivers (green)
63 native_sim. We can develop on a host, use source-level debugging, etc.
79 .. code-block:: C
87 The ``EMUL_DT_DEFINE()`` function accepts two API types:
89 #. ``bus_api`` - This points to the API for the upstream bus that the emulator
92 #. ``_backend_api`` - This points to the device-class specific backend API for
[all …]
/Zephyr-latest/arch/arm/core/mpu/
Darm_core_mpu.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/linker/linker-defs.h>
24 * driver for programming during run-time. Note that the actual number of the
26 * static MPU regions currently being programmed, and the total number of HW-
27 * available MPU regions. This macro is only used internally in function
41 * memory area, where dynamic memory regions may be programmed at run-time.
48 #define _MPU_DYNAMIC_REGIONS_AREA_SIZE ((uint32_t)&__kernel_ram_end - \
68 /* GCOV code coverage accounting area. Needs User permissions
69 * to function
78 /* Special non-cacheable RAM area */
[all …]
/Zephyr-latest/kernel/
Dinit.c2 * Copyright (c) 2010-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/linker/linker-defs.h>
68 thread_data->init_thread, in z_init_static_threads()
69 thread_data->init_stack, in z_init_static_threads()
70 thread_data->init_stack_size, in z_init_static_threads()
71 thread_data->init_entry, in z_init_static_threads()
72 thread_data->init_p1, in z_init_static_threads()
73 thread_data->init_p2, in z_init_static_threads()
74 thread_data->init_p3, in z_init_static_threads()
[all …]
/Zephyr-latest/doc/develop/test/
Dtwister.rst14 Because of the limited test execution coverage, twister
20 When using (at least) one ``-v`` option, twister's console output
27 - The test is marked as ``build_only: true`` in its ``.yaml``
29 - The test configuration has defined a ``harness`` but you don't have
31 - The target device is not connected and not available for flashing
32 - You or some higher level automation invoked twister with
33 ``--build-only``.
39 .. group-tab:: Linux
41 .. code-block:: bash
43 $ source zephyr-env.sh
[all …]

12