telemetry: linux telemetry with perf-stat
[csit.git] / resources / tools / telemetry / constants.py
index fda558b..5363dde 100644 (file)
@@ -17,6 +17,7 @@
 does not need to be hard coded here, but can be read from environment variables.
 """
 
 does not need to be hard coded here, but can be read from environment variables.
 """
 
+
 class Constants:
     """Constants used in telemetry.
     1-10: Telemetry errors
 class Constants:
     """Constants used in telemetry.
     1-10: Telemetry errors
@@ -26,6 +27,12 @@ class Constants:
     # Failed when processing data
     err_telemetry_process = 1
 
     # Failed when processing data
     err_telemetry_process = 1
 
+    # Failed to read YAML file
+    err_telemetry_yaml = 2
+
+    # Error executing bundle
+    err_telemetry_bundle = 3
+
     # Could not connect to VPP
     err_vpp_connect = 11
 
     # Could not connect to VPP
     err_vpp_connect = 11
 
@@ -35,3 +42,12 @@ class Constants:
     # Failed when executing command
     err_vpp_execute = 13
 
     # Failed when executing command
     err_vpp_execute = 13
 
+    # Could not attach BPF events
+    err_linux_attach = 51
+
+    # Could not detach BPF events
+    err_linux_detach = 52
+
+    # Could not successfuly run perf stat command
+    err_linux_perf_stat = 53
+