Skip to content
Snippets Groups Projects
Commit 1cc55342 authored by Michele Tartara's avatar Michele Tartara
Browse files

Add constants for the reason trail implementation


A few constants are required, describing the source reason of the opcode.

Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent aa922d64
No related branches found
No related tags found
No related merge requests found
...@@ -2435,5 +2435,23 @@ AUTO_REPAIR_ALL_RESULTS = frozenset([ ...@@ -2435,5 +2435,23 @@ AUTO_REPAIR_ALL_RESULTS = frozenset([
# The version identifier for builtin data collectors # The version identifier for builtin data collectors
BUILTIN_DATA_COLLECTOR_VERSION = "B" BUILTIN_DATA_COLLECTOR_VERSION = "B"
# The reason trail opcode parameter name
OPCODE_REASON = "reason"
# The source reasons for the execution of an OpCode
OPCODE_REASON_SRC_CLIENT = "gnt:client"
OPCODE_REASON_SRC_NODED = "gnt:daemon:noded"
OPCODE_REASON_SRC_OPCODE = "gnt:opcode"
OPCODE_REASON_SRC_RLIB2 = "gnt:library:rlib2"
OPCODE_REASON_SRC_USER = "gnt:user"
OPCODE_REASON_SOURCES = compat.UniqueFrozenset([
OPCODE_REASON_SRC_CLIENT,
OPCODE_REASON_SRC_NODED,
OPCODE_REASON_SRC_OPCODE,
OPCODE_REASON_SRC_RLIB2,
OPCODE_REASON_SRC_USER,
])
# Do not re-export imported modules # Do not re-export imported modules
del re, _vcsversion, _autoconf, socket, pathutils, compat del re, _vcsversion, _autoconf, socket, pathutils, compat
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment