TRC tags modification

Overview

Declaration of API to modify TRC tags from prologues. More…

// global functions

te_errno tapi_tags_add_tag(const char* tag, const char* value);
te_errno tapi_tags_add_linux_mm(const char* ta, const char* prefix);
te_errno tapi_tags_add_net_pci_tags(const char* ta, const char* if_name);

// macros

#define TE_CFG_TRC_TAGS_FMT

Detailed Documentation

Declaration of API to modify TRC tags from prologues.

Copyright (C) 2022-2022 OKTET Labs Ltd. All rights reserved.

Global Functions

te_errno tapi_tags_add_tag(const char* tag, const char* value)

Modify the set of defined TRC tags for tests by adding a new tag to the configurator database. This function should be used to pass the TRC tag from the root prologue only to the tester.

Parameters:

tag

Tag name.

value

Tag value for TRC tags expressions (can be NULL).

Returns:

Status code.

te_errno tapi_tags_add_linux_mm(const char* ta, const char* prefix)

Add Linux kernel TRC tag with major and minor numbers suitable for comparison.

This function should be used to pass the TRC tag from the root prologue only to the tester.

Parameters:

ta

Test agent name.

prefix

Tag name prefix or NULL

Returns:

Status code.

te_errno tapi_tags_add_net_pci_tags(const char* ta, const char* if_name)

Add PCI device tags of the network interface.

This function should be used to pass the TRC tag from the root prologue only to the tester.

Parameters:

ta

Test agent name.

if_name

Network interface name.

Returns:

Status code.