TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
audit_tests_common.h File Reference
#include <stddef.h>
Include dependency graph for audit_tests_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STR(a)   _STR(a)
 A standard stringify macro. More...
 
#define _STR(a)   #a
 
#define LOCAL_BUFFER_SIZE   (80)
 Size in bytes of the local buffer. Size accomodates two standard size (no payload) log items, at maximum. More...
 
#define LOCAL_BUFFER_ITEMS   (2)
 Number of items which can be held within a buffer of size LOCAL_BUFFER_SIZE. More...
 
#define STANDARD_LOG_ENTRY_SIZE   (28)
 A log item with no payload (standard size) has the following size. More details can be found observing psa_audit_record log_tlr and log_hdr. More...
 
#define INITIAL_LOGGING_REQUESTS   (36)
 Number of initial consecutive logging requests to perform. More...
 
#define INITIAL_LOGGING_SIZE   (1008)
 Size of the initial consecutive logging requests. More...
 
#define FINAL_LOGGING_REQUESTS   (2)
 Number of final consecutive logging requests to perform. More...
 
#define FINAL_LOGGING_SIZE   (56)
 Size of the final consecutive logging requests. More...
 
#define DUMMY_TEST_RECORD_ID_BASE   (0xABCD0000)
 The log record is initialized with a dummy ID which uses this value as base value. More...
 
#define SECOND_ELEMENT_EXPECTED_CONTENT
 Content of the log record in the second log item in the final request. More...
 
#define MAX_LOG_SIZE   (1024)
 The maximum possible log size in the current implementation. More...
 
#define MAX_LOG_RECORD_SIZE   (1000)
 The maximum possible log line size to fill a MAX_LOG_SIZE bytes log. More...
 
#define INITIAL_LOG_SIZE   (FINAL_LOGGING_SIZE)
 Initial state of the log size in bytes. More...
 
#define INITIAL_LOG_RECORDS   (FINAL_LOGGING_REQUESTS)
 Initial state of the log number of records. More...
 

Macro Definition Documentation

#define _STR (   a)    #a

Definition at line 23 of file audit_tests_common.h.

#define DUMMY_TEST_RECORD_ID_BASE   (0xABCD0000)

The log record is initialized with a dummy ID which uses this value as base value.

Definition at line 90 of file audit_tests_common.h.

#define FINAL_LOGGING_REQUESTS   (2)

Number of final consecutive logging requests to perform.

Note
This defines the state of the log when secure interface tests are terminated

Definition at line 72 of file audit_tests_common.h.

#define FINAL_LOGGING_SIZE   (56)

Size of the final consecutive logging requests.

Note
This defines the state of the log when secure interface tests are terminated

Definition at line 82 of file audit_tests_common.h.

#define INITIAL_LOG_RECORDS   (FINAL_LOGGING_REQUESTS)

Initial state of the log number of records.

Note
This defines the state of the log when non-secure interface tests start

Definition at line 136 of file audit_tests_common.h.

#define INITIAL_LOG_SIZE   (FINAL_LOGGING_SIZE)

Initial state of the log size in bytes.

Note
This defines the state of the log when non-secure interface tests start

Definition at line 127 of file audit_tests_common.h.

#define INITIAL_LOGGING_REQUESTS   (36)

Number of initial consecutive logging requests to perform.

Definition at line 55 of file audit_tests_common.h.

#define INITIAL_LOGGING_SIZE   (1008)

Size of the initial consecutive logging requests.

Definition at line 62 of file audit_tests_common.h.

#define LOCAL_BUFFER_ITEMS   (2)

Number of items which can be held within a buffer of size LOCAL_BUFFER_SIZE.

Definition at line 39 of file audit_tests_common.h.

#define LOCAL_BUFFER_SIZE   (80)

Size in bytes of the local buffer. Size accomodates two standard size (no payload) log items, at maximum.

Definition at line 31 of file audit_tests_common.h.

#define MAX_LOG_RECORD_SIZE   (1000)

The maximum possible log line size to fill a MAX_LOG_SIZE bytes log.

Note
This takes into account additional fields that are concatenated to the record in the header and trailer

Definition at line 118 of file audit_tests_common.h.

#define MAX_LOG_SIZE   (1024)

The maximum possible log size in the current implementation.

This parameter for tests has to be changed for the tests in case the implementation is modified

Definition at line 108 of file audit_tests_common.h.

#define SECOND_ELEMENT_EXPECTED_CONTENT
Value:
#define DUMMY_TEST_RECORD_ID_BASE
The log record is initialized with a dummy ID which uses this value as base value.
#define FINAL_LOGGING_REQUESTS
Number of final consecutive logging requests to perform.
#define INITIAL_LOGGING_REQUESTS
Number of initial consecutive logging requests to perform.

Content of the log record in the second log item in the final request.

Definition at line 98 of file audit_tests_common.h.

#define STANDARD_LOG_ENTRY_SIZE   (28)

A log item with no payload (standard size) has the following size. More details can be found observing psa_audit_record log_tlr and log_hdr.

Definition at line 48 of file audit_tests_common.h.

#define STR (   a)    _STR(a)

A standard stringify macro.

Definition at line 22 of file audit_tests_common.h.