So that modules can consume perf counter data
intelligently without having to hunt around
in C land for these constants and redefine them.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
39ab28ed47e869e1466cb3a316a2cb11bdedd23a)
PRIO_UNINTERESTING = 2
PRIO_DEBUGONLY = 0
+# counter value types
+PERFCOUNTER_TIME = 1
+PERFCOUNTER_U64 = 2
+
+# counter types
+PERFCOUNTER_LONGRUNAVG = 4
+PERFCOUNTER_COUNTER = 8
+PERFCOUNTER_HISTOGRAM = 0x10
+PERFCOUNTER_TYPE_MASK = ~2
+
+
class CommandResult(object):
"""
Use with MgrModule.send_command