service: add attribute for number of invocations
[dpdk.git] / lib / librte_eal / common / include / rte_service.h
index 460dbbf..85e964b 100644 (file)
@@ -399,6 +399,11 @@ int32_t rte_service_dump(FILE *f, uint32_t id);
  */
 #define RTE_SERVICE_ATTR_CYCLES 0
 
+/**
+ * Returns the count of invocations of this service function
+ */
+#define RTE_SERVICE_ATTR_CALL_COUNT 1
+
 /**
  * @warning
  * @b EXPERIMENTAL: this API may change without prior notice