Commit 81ae485c authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Hs2Py constants: opcodes



Add opcode related constants to the Haskell to Python constant generation.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent b6e2ff42
......@@ -1550,20 +1550,12 @@ BUILTIN_DATA_COLLECTOR_VERSION = _constants.BUILTIN_DATA_COLLECTOR_VERSION
OPCODE_REASON = _constants.OPCODE_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,
])
OPCODE_REASON_SRC_CLIENT = _constants.OPCODE_REASON_SRC_CLIENT
OPCODE_REASON_SRC_NODED = _constants.OPCODE_REASON_SRC_NODED
OPCODE_REASON_SRC_OPCODE = _constants.OPCODE_REASON_SRC_OPCODE
OPCODE_REASON_SRC_RLIB2 = _constants.OPCODE_REASON_SRC_RLIB2
OPCODE_REASON_SRC_USER = _constants.OPCODE_REASON_SRC_USER
OPCODE_REASON_SOURCES = _constants.OPCODE_REASON_SOURCES
DISKSTATS_FILE = _constants.DISKSTATS_FILE
......
......@@ -3747,6 +3747,31 @@ ndsSsconf = "ssconf"
ndsStartNodeDaemon :: String
ndsStartNodeDaemon = "start_node_daemon"
-- * The source reasons for the execution of an OpCode
opcodeReasonSrcClient :: String
opcodeReasonSrcClient = "gnt:client"
opcodeReasonSrcNoded :: String
opcodeReasonSrcNoded = "gnt:daemon:noded"
opcodeReasonSrcOpcode :: String
opcodeReasonSrcOpcode = "gnt:opcode"
opcodeReasonSrcRlib2 :: String
opcodeReasonSrcRlib2 = "gnt:library:rlib2"
opcodeReasonSrcUser :: String
opcodeReasonSrcUser = "gnt:user"
opcodeReasonSources :: FrozenSet String
opcodeReasonSources =
ConstantUtils.mkSet [opcodeReasonSrcClient,
opcodeReasonSrcNoded,
opcodeReasonSrcOpcode,
opcodeReasonSrcRlib2,
opcodeReasonSrcUser]
-- | Path generating random UUID
randomUuidFile :: String
randomUuidFile = ConstantUtils.randomUuidFile
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment